Skip to main content
An agent is an AI worker that belongs to a business. Each agent has its own instructions and rules, the skills it carries, the documents it keeps in view and the WhatsApp number it can answer on.

Created switched off

A new agent starts switched off, whether you create it from scratch or install one of the ready-made templates. When you install a template, the result says what the agent still needs to work, such as a connection.

Switching on and off

Switching an agent on is its own step. get_activation_quote returns what switching the agent on would cost, as the dashboard shows it, and a quoteDigest. set_agent_active takes that digest. If the account changed since the quote, the refusal carries the current one. switch_off_agent switches an agent off: it stops answering on its channels, which stay mute until it is switched on again. By default the agent keeps its WhatsApp number.

What an agent carries

  • Skills. attach_skill adds a skill of the account to an agent, and detach_skill removes it. The skill stays in the account. Skills are managed with the skills tools.
  • Documents. pin_document puts a document of the account in front of one agent in every conversation. unpin_document takes it off. The knowledge tools manage the documents themselves.
  • Configuration. update_agent changes only the fields you send. Sending rules or tools replaces the whole list.

Deleting

delete_agent takes two calls: the first says what would be lost and returns a confirmationToken, and the second, with the token, deletes. See Access.