Skip to main content

Switch the AI on or off for a connection

PATCH 

/v1/agents/:agentId/connections/:connectionId

x-scope: "connections:write"

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.

Request​

Responses​

The connection as it now is.

Response Headers
    X-Correlation-ID

    Correlation id for this request — paste into support tickets.