The chatbot object

Shape of an embeddable chatbot, the widget config that customers embed on their site to expose a Macha agent.

A Chatbot is the embeddable widget configuration that customers paste onto their site to expose a Macha agent. Each chatbot binds one agent to one or more domains, with optional theme + welcome message.

Object shape

{
  "id": "chatbot_64f1c0ef2ec711ef6dc1dcf",
  "public_id": "cb_abc123xyz",
  "name": "Marketing Site Helper",
  "agent_id": "agent_64f1c0...",
  "is_active": true,
  "allow_write_tools": false,
  "allowed_domains": ["getmacha.com", "www.getmacha.com"],
  "theme": { "primaryColor": "#7C3AED" },
  "welcome_message": "Hi! How can I help you today?",
  "created_at": "2026-06-01T00:00:00.000Z",
  "updated_at": "2026-06-20T12:00:00.000Z"
}

Attributes

FieldTypeNotes
idstringchatbot_<24 hex>.
public_idstringWidget identifier embedded in customer sites. Safe to expose, visible in the embed script source.
namestringDisplay name.
agent_idstring | nullWhich agent handles incoming chats.
is_activebooleanIf false, the widget shows "unavailable" to visitors. Auto-paused when the bound agent is deactivated.
allow_write_toolsbooleanWhether anonymous visitors can trigger write operations. Default: false. Enable only if you trust the agent's instructions to prevent abuse.
allowed_domainsarrayDomain allowlist for embed. Empty array = no restriction.
themeobject | nullTheme overrides. Free-form, current keys: primaryColor.
welcome_messagestring | nullFirst message shown when a visitor opens the chat.
created_atISO 8601
updated_atISO 8601
📘
Chatbot writes are planned

v1 is read-only for chatbots. Create / update / delete via the dashboard. POST/PATCH/DELETE endpoints are on the roadmap.

© 2026 AGZ Technologies Private Limited