ContentRunner Campaign Upsert
AI-generatedSummary
Finds the latest user–bot interaction and updates its linked campaign with any provided Strapi campaign, segment, welcome template, or main template IDs. Select either Telegram chat and bot IDs or user and bot UUIDs to identify the interaction.
Inputs
- Identify By (required) — Choose Telegram chat ID + Telegram bot ID (default), or user ID + bot ID (UUID), to find the latest matching interaction.
- Telegram Chat ID (required) — Used with Telegram Bot ID when identifying by Telegram IDs.
- Telegram Bot ID (required) — Used with Telegram Chat ID when identifying by Telegram IDs.
- User ID (required) — Used with Bot ID when identifying by UUIDs.
- Bot ID (required) — Used with User ID when identifying by UUIDs.
- Strapi Campaign ID — Campaign identifier to save on the linked campaign. Leave blank to keep its current value.
- Strapi Segment ID — Segment identifier to save. Leave blank to keep its current value.
- Welcome Template ID — Welcome template identifier to save. Leave blank to keep its current value.
- Main Template ID — Main template identifier to save. Leave blank to keep its current value.
Output shape
One item per input item, containing the campaign database row.
If all four update fields are blank, returns the existing campaign row without changing it. Requires ContentRunner Postgres credentials and a matching interaction (typically created by running Link first). With Continue On Fail enabled, errors are returned as items with an error field; otherwise errors stop execution.
Examples
Example 1: Example
IDs can be mapped from the input item to locate the matching interaction and save selected Strapi identifiers on its campaign row.