Save AI tag
save_tagCreates an AI tag in a tag set (comments, messages or posts), or changes the label, description or colour of a custom one when slug is given. The description is the prompt the AI uses to decide when the tag applies; the more specific, the more precise the tagging. A new tag gets a unique slug derived from its label; slugs never change, so tagged items and automations that use the tag keep working. System tags cannot be edited. set_tag_setup creates or reworks many tags at once.
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": {
"brand": "<brand>"
},
"name": "save_tag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Slug of the tag to change, from list_tags. Empty creates a new tag. | |
| type | No | Which tag set: "comments" (comment tags), "messages" (DM conversation tags) or "posts" (post content tags). | comments |
| brand | Yes | ||
| color | No | Text colour as hex "#rrggbb". The pill background is derived from it. Omit to get a palette colour. | |
| label | No | Short name shown on the tag pill, at most 60 characters. An emoji at the start is fine. | |
| description | No | The instruction the AI uses to decide whether this tag applies, at most 1000 characters. Describe concretely when to apply it (and when not), e.g. "Apply when the person asks about delivery times, tracking or shipping costs." In comment and message tags, the built-in placeholder {{PAGE_NAME}} is replaced automatically with the name of the channel; post tags support no placeholders. |