Set a chat topic
Label a chat with one of your chat topics, as an agent does in the About chat block.
MCP tool jivochat_write → set_chat_topic
write
set_chat_topic sets the topic that the Statistics section counts in its chat topics tab. A topic that does not exist fails at once and the error lists the account's topics. The label reaches nobody outside your team and calling it again with another topic changes it, so it does not wait for your OK.
Parameters
| Name | Type | Description |
|---|---|---|
| chat_id string required | string | Chat ID from list_chats. |
| topic_id string required | string | Topic ID from list_chat_topics. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "jivochat_write",
"arguments": {
"operation": "set_chat_topic",
"arguments": {
"chat_id": "chat_8c41d2",
"topic_id": "topic_8c41d2"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"chat_id": "6f1a2b3c",
"topic": {
"topic_id": "tp_01",
"name": "Orders"
}
},
"isError": false
}