ContentRunner Bot Upsert (Stage)
AI-generatedSummary
Upsert Telegram bots in n8n_content_runner by tg_bot_id
Inputs
- tgBotId (required) — Unique bot identifier (from Strapi: id or external_id)
- botUsername — Bot username (@BotName)
- isActive — Boolean flag indicating if the bot is active
Output shape
an array of objects; each object has a json field containing either the inserted/updated bot record or an error message
If a record fails and continueOnFail is enabled, the error is returned as
{ error: '...' }in the same array; otherwise the exception propagates.
Examples
Example 1: Add or update a bot with ID 12345
tgBotId = 12345, botUsername = @mybot, isActive = true
Example 2: Process a batch of bots from preceding items
Iterate over items, using their tgBotId, botUsername, isActive values; output DB rows or errors
Example 3: Handle failure with continueOnFail enabled
tgBotId missing triggers error entry { error: 'tg_bot_id is required' } in the output array