Campaign Select Message icon

Campaign Select Message

Calls Campaign API select-message: returns packed message (Content, Bot, Media, Button) by language, bot and cursor. Uses Strapi API credentials (same base URL).

Campaign Select Message

AI-generated

Summary

Selects a campaign message by language, bot, cursor position, and whether to use the welcome or main template chain. Posts those values to the Campaign API and returns its response body for each input item.

Inputs

  • Language ISO (required) — Language code such as DE or EN; matched against Language.iso_code.
  • Bot External ID (required) — External ID of a bot attached to the campaign segment. Defaults to the incoming item's bot_external_id or external_id.
  • Cursor Index — Schedule-chain index identifying which template message to return; defaults to 0.
  • Welcome Message — Choose the template_welcome chain when true or template_main when false; defaults to false.

Output shape

A list of items, one per input item, each containing the Campaign API response body as JSON.

Uses the configured Strapi API URL and bearer token to POST to /api/campaigns/select-message. With Continue On Fail enabled, failed requests produce an item containing error and, for HTTP errors, status.

Examples

Example 1: Choose a main-chain message

Set Language ISO to DE, provide the bot's external ID, set Cursor Index to 0, and leave Welcome Message false.

Links

Discussion