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.list_agent_templateslists the templates the account can install.create_agentandcreate_agent_from_templatecreate one.
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_skilladds a skill of the account to an agent, anddetach_skillremoves it. The skill stays in the account. Skills are managed with the skills tools. - Documents.
pin_documentputs a document of the account in front of one agent in every conversation.unpin_documenttakes it off. The knowledge tools manage the documents themselves. - Configuration.
update_agentchanges only the fields you send. Sendingrulesortoolsreplaces 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.