OverviewProductsPlatformsAPI ReferenceResources
Meta Business Agent

Create a UI skill

POSThttps://zernio.com/api/v1/accounts/{accountId}/business-agent/ui-skills

Tells the agent when to send a rich component (CTA URL button, image, carousel, list, reply buttons, location, Flow) and what to put in it. Not idempotent.

Authentication

AuthorizationBearer tokenRequired

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

Path parameters

accountIdstringRequired

WhatsApp social account id (the number must be managed through the Cloud API).

Body

application/json

What every request needs

component_typestringRequiredOne of carousel_quick_reply | carousel_url | cta_url | flow | image | interactive_list | interactive_reply_buttons | location | location_request
statusstringRequiredOne of enabled | disabled
instructionstringRequired

When to send the component and everything needed to fill its fields.

Optional parameters2 fields
titlestring
flow_idinteger

Required for component_type flow, rejected otherwise.

Responses

Success· the request worked

Errors· the request failed

POST/v1/accounts/{accountId}/business-agent/ui-skills
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.businessagent.createBusinessAgentUiSkill({  path: {    accountId: 'account_abc123',  },  body: {    component_type: 'carousel_quick_reply',    status: 'enabled',    instruction: 'string',  },});console.log(data);
{  "title": "string",  "component_type": "carousel_quick_reply",  "status": "enabled",  "instruction": "string",  "flow_id": 0,  "id": "string",  "created_at": 0,  "updated_at": 0}
OpenAPI specification
Was this page helpful?