NooviChat icon

NooviChat

Interact with NooviChat — manage conversations, contacts, pipeline CRM, lead scoring, campaigns and WhatsApp

Actions353

Follow-up → Create Template Item

AI-generated

Summary

Create a follow‑up template item (step) for a NooviChat follow‑up

Inputs

  • accountId (required) — NooviChat account ID. Supports expressions for multi-account workflows.
  • templateId (required) — ID of the template.
  • itemType (required) — Step type. "text" requires Content; "whatsapp_template" sends a Meta‑approved template on official WhatsApp inboxes outside the 24h window and falls back to Content text otherwise.
  • itemContent — Message body (required for "text"). For "whatsapp_template" it is the plain‑text fallback used on non‑official providers (WAHA/UazAPI) or inside the 24h window.
  • itemDelaySeconds — Seconds after the previous step before this one fires.
  • whatsappTemplateName — Approved Meta template name (required for the whatsapp_template type).
  • whatsappTemplateLanguage — Approved template language code, e.g. pt_BR.
  • whatsappTemplateNamespace — Template namespace (360Dialog only).
  • whatsappTemplateMapping — Parameter mapping. Each "body" entry fills {{1}}, {{2}}, … with a follow‑up variable (type "variable", value e.g. "contact_name") or literal text (type "text"). Add "header": { "media_url": "https://…", "media_type": "document", "media_name": "file.pdf" } when the approved template has a media header — Meta rejects the send without it. Inside "header", media_url and media_type are required together (media_type is one of document, image, video) and the server answers 422 if either is missing.

Output shape

a single created template item

The response includes the full created item; on error it returns a standard API error object.

Examples

Example 1: Create a text follow‑up step with default delay

accountId=1, templateId='welcome_template', itemType='text', itemContent='Hello {{contact_name}}', itemDelaySeconds=5

Example 2: Send an approved WhatsApp template item

accountId=1, templateId='my_template', itemType='whatsapp_template', whatsappTemplateName='promo', whatsappTemplateLanguage='en_US', whatsappTemplateNamespace='default', whatsappTemplateMapping='{"body":[{"type":"text","value":"Visit us today"}]}

Example 3: Create a delayed image follow‑up

accountId=1, templateId='image_template', itemType='image', itemContent='Check out our new product', itemDelaySeconds=10

Links

Discussion