OverviewPlatformsAPI ReferenceResources
WhatsApp

Set ice breakers and commands

POSThttps://zernio.com/api/v1/whatsapp/conversational-automation

Set ice breaker prompts (up to 3, 80 characters each), slash commands (up to 30) and the welcome-message flag on the number. Only the fields you send are changed. A tapped prompt arrives as a normal message.received carrying its text.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Responses

Success· the request worked

Errors· the request failed

POST/v1/whatsapp/conversational-automation
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.whatsapp.setWhatsAppConversationalAutomation({  body: {    accountId: 'account_abc123',    enable_welcome_message: false,    prompts: [      'string',    ],    commands: [      {        command_name: 'Example',        command_description: 'string',      },    ],  },});console.log(data);
{  "success": true}
OpenAPI specification
Was this page helpful?