Add Contact Tag
add-tagAttach a named tag to the visitor/contact associated with a Chatway conversation. If supported by Chatway, the tag may be created when it does not already exist. Use list-tags first to reuse an existing tag name, and remove-tag to undo.
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": {
"conversation_id": "<conversation_id>",
"name": "<name>"
},
"name": "add-tag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Tag name, up to 100 characters. An existing tag with this name is reused; otherwise a new tag is created. | |
| color | No | Optional tag color, up to 50 characters (for example a hex code such as #2563EB). If the tag already exists, its color is changed to this value. | |
| conversation_id | Yes | UUID of the conversation; the tag is attached to its visitor/contact. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Tag name. | |
| chat_contact_id | No | Visitor/contact UUID the tag was attached to. | |
| conversation_id | No | Conversation UUID. |