Chat Control

Mark read, retry, labels, notes, flows and deletes

Every tool takes an optional orgId. Leave it out unless your key acts on other organisations. An id outside the target organisation behaves exactly like a missing one.

Chat control - 10

ToolScopeDoes
mark_conversation_readCONVERSATIONS_MANAGEMarks every thread read.
retry_messageMESSAGES_SENDRetries one failed outbound message. Inbound or not-failed is a 400.
start_flowCONVERSATIONS_MANAGEStarts a published flow in a chat. See flows.
stop_flowCONVERSATIONS_MANAGEStops the active flow.
add_conversation_noteNOTES_WRITEAn internal note on a conversation.
list_labelsMESSAGES_READThe org's labels, 1–100.
set_message_labelsCONVERSATIONS_MANAGESets labels on a message, up to 50.
archive_labelCONVERSATIONS_MANAGEArchives a label.
delete_chatCONVERSATIONS_DELETEIrreversible. Deletes one thread with its messages and media; the contact stays. Expensive.
delete_conversationCONVERSATIONS_DELETEIrreversible. The whole conversation. With removePeople: true also needs CONTACTS_ERASE. Expensive.

Creating a label is not exposed over MCP - it is plan-gated. A key without NOTES_WRITE cannot label an internal note or a system row; that answers not-found.

Flows

start_flow(chatId, flowId) starts a flow in a chat. Three rules:

  • The flow must belong to the org and be published. A draft, archived or foreign flow is one not-found.
  • A key cannot start a flow in a group chat - 400.
  • Flows are not listable over the API, so flowId comes from the dashboard.

Both start_flow and stop_flow return { chatId, activeFlow }, where activeFlow carries the flow id, title, execution id, initiator and start time. A key-started run is recorded with initiator WEBHOOK and platform api.

Acting as an Operator

send_message and add_conversation_note accept actingUserId - a user id from list_members, which must be an active member of the target org. The message or note is then authored as that operator instead of the organisation that owns the key. A non-member is a not-found and nothing is sent.

mentions takes up to 50 user ids from the same place. Mention emails are not sent for notes a key originates; in-app notifications still are.

Was this page helpful?

On this page