Add label
Adds a label to a conversation.
MCP tool trengo_write → add_label
write
Uses the label icon of the conversation. A name that does not exist, is archived or is not set up for the conversation's channel fails at once, and the error lists the labels you can use. It reaches nobody and is undone with remove_label, so it runs without confirmation. An automation of yours that listens for a new label, such as a Zap on Ticket label added, still runs.
Parameters
| Name | Type | Description |
|---|---|---|
| conversation_id integer required | integer | Conversation ID from list_conversations or search_conversations. |
| label string required | string | Label name from list_labels. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "trengo_write",
"arguments": {
"operation": "add_label",
"arguments": {
"conversation_id": 5120344,
"label": "Billing"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"conversation_id": 5120344,
"labels": [
"Billing"
]
},
"isError": false
}