OverviewProductsPlatformsAPI ReferenceResources
Meta Business Agent

Update agent settings

PATCHhttps://zernio.com/api/v1/accounts/{accountId}/business-agent/settings

Partial update: fields you omit keep their value.

  • rollout.enabled: true turns the agent on for new conversations; false stops it on every thread.
  • Turning it on for EVERYONE needs a payment method on the Business Agent billable account (Meta accepts the call but delivers nothing without one).
  • ALLOWLISTED_ONLY does not need one, which is how you test with a few numbers before billing.
  • never_say_phrases replaces the whole list.

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).

Query parameters

Optional
agentIdstring

Body

application/json
Optional parameters5 fields
rolloutobject
enabledbooleanRequired
handoffobject
enabledbooleanRequired
followupobject
enabledbooleanRequired
ai_audiencestringOne of EVERYONE | ALLOWLISTED_ONLY
never_say_phrasesarray of strings

Exact phrases the agent must never say; the full replacement list.

Responses

Success· the request worked

Errors· the request failed

PATCH/v1/accounts/{accountId}/business-agent/settings
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.businessagent.updateBusinessAgentSettings({  path: {    accountId: 'account_abc123',  },  body: {    rollout: {      enabled: false,    },    handoff: {      enabled: false,    },    followup: {      enabled: false,    },  },});console.log(data);
{  "agent_id": "string",  "channel": "string",  "rollout": {    "enabled": true  },  "handoff": {    "enabled": true,    "message": "string",    "message_selection": "DEFAULT"  },  "followup": {    "enabled": true,    "followup_interval_in_seconds": 0,    "message": "string"  },  "ai_audience": "EVERYONE",  "never_say_phrases": [    "string"  ]}
OpenAPI specification
Was this page helpful?