Campaign Select Message (Stage) icon

Campaign Select Message (Stage)

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 (Stage)

AI-generated

Summary

Selects a template message from the campaign API based on language, bot ID, cursor, and welcome flag.

Inputs

  • language_iso (required) — Language code (e.g., DE, EN) matching Language.iso_code; required.
  • bot_external_id (required) — External ID of the bot attached to the campaign segment; required.
  • cursor_index — Zero‑based index of the template message in the schedule chain.
  • is_welcome_message — True to select from the welcome template chain, false for the main chain; default false.

Output shape

array of objects each containing the API response body (either the full message JSON or an error object with 'error' and 'status' fields).

Each element corresponds to one input item; successful responses return the raw Strapi API JSON, while failed requests include an 'error' field and HTTP 'status'.

Examples

Example 1: Select the welcome message in German for bot ID 987 as the first template

language_iso = DE, bot_external_id = 987, cursor_index = 0, is_welcome_message = true

Example 2: Fetch the second main message for bot 123 in French

language_iso = FR, bot_external_id = 123, cursor_index = 1, is_welcome_message = false

Example 3: Get a non‑welcome message for bot 456 in Spanish, third template

language_iso = ES, bot_external_id = 456, cursor_index = 2, is_welcome_message = false

Links

Discussion