Switch the AI on or off for a connection
update_connectionSwitch the AI on or off for a connection
Whether the agent's AI answers this channel's messages, its comments, or both. Send at
least one (422 no_settings otherwise). With messages off, incoming messages still
reach the dashboard and the AI doesn't reply to them, but follow-ups already scheduled on
that channel still go out. Follow-ups are set per platform, not per connection: removing
the platform from the follow-up platforms stops them on every connection of that
platform on the agent. With comments off, Mojeeb ignores the channel's new comments: they
are neither answered nor recorded, and switching comments back on doesn't fetch them.
Comments apply to Facebook and Instagram.
A disconnected connection (active: false) can't be changed (409 connection_inactive).
Reconnecting in the dashboard sets both switches from its connect screen, so set them
again afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The agent the resource belongs to. Another company's agent, or the nil UUID, is `404 agent_not_found`; an agent outside the key's agent list is `403 agent_not_authorized`. | |
| connection_id | Yes | A connection of the agent. Another agent's connection is `404 not_found`. | |
| respond_to_comments | No | ||
| respond_to_messages | No |