Turn a chat flow on or off
set_flow_activeTurn a chat flow on (active: true) or off (active: false). Turning it ON makes it start answering real contacts at once, in the name of every account it is bound to (connectionIds; empty = every messaging account), with no further confirmation — only call it when the user has asked for this flow to go live, after reading it with get_flow. Turning it off stops new runs; a run already waiting for a reply is not recalled. Calling it again with the same value changes nothing. Writing also needs chat enabled for the organization and an ADMIN or OWNER role in it, and a new flow counts against the plan's flow limit (403 CHAT_FLOW_LIMIT_REACHED) — the same refusals a person gets in the app. Needs the organization's "Let AI assistants create and edit chat flows" setting (mcpFlowsEnabled; only the organization's OWNER can switch it on, in Settings → Organization → General → AI Assistants; without it the api answers 403 MCP_FLOWS_DISABLED) and a connection authorized with the flows permissions — one authorized before they existed must remove PostRite from the assistant and add it again.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"flowId": "<flowId>",
"active": "<active>"
},
"name": "set_flow_active"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| active | Yes | true to turn the flow on (it answers real contacts at once), false to turn it off | |
| flowId | Yes | The flow's ID (from list_flows) | |
| organizationId | No | Organization to act in — an id from list_organizations. Required when this connection was authorized for more than one organization; omit it when there is only one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| name | No | ||
| graph | No | ||
| runCount | No | ||
| createdAt | No | ||
| isEnabled | No | true = live: it answers real contacts | |
| updatedAt | No | ||
| triggerType | No | ||
| connectionIds | No | The accounts it answers on; empty = every messaging account | |
| isGraphBroken | No | The stored graph no longer parses; rewrite it with update_flow | |
| triggerConfig | No | ||
| cooldownMinutes | No | ||
| lastTriggeredAt | No | ||
| runCountLast7Days | No | ||
| maxRunsPerContactPerDay | No |