ContentRunner Interaction icon

ContentRunner Interaction

Link user+bot (creates empty campaign), Get state, or Update state

Update State

AI-generated

Summary

Updates selected state fields on an existing user–bot interaction in PostgreSQL. Identify the interaction by Telegram chat and bot IDs or by user and bot UUIDs, optionally narrowing the match to a campaign.

Inputs

  • Identify By (required) — Choose Telegram chat ID + Telegram bot ID or user ID + bot ID (UUID). The selected pair is required.
  • Campaign ID — Optional campaign UUID to narrow the interaction lookup. If omitted, the first matching interaction is used.
  • State fields — Optionally set welcome and main branch cursors; last-pushed, next-push, and ended timestamps; chat-left and bot-blocked timestamps; last Telegram message IDs; and Strapi push document IDs. Empty values leave fields unchanged. Use “null” or “set_null” to clear a field. Timestamp fields accept an ISO timestamp or NOW(). Invalid numeric values are ignored, and numeric values are truncated to integers.

Output shape

A list of items, one per input item.

Each successful item contains the updated interaction row, or the existing row if no fields were provided. If the interaction is not found, the node returns an error item when Continue On Fail is enabled; otherwise execution fails.

Links

Discussion