Apply topics

Add Topics to a Conversation, or remove them.

MCP tool gladly_write → apply_topics

write

Sets the Topics at the bottom of the Conversation, as the Topics menu does. A Topic already on the Conversation is ignored. Returns the Topics now on it. It reaches no one and one call undoes it, so it needs no confirmation.

Parameters

Parameters: apply_topics
NameTypeDescription
conversation_id string required string Conversation ID from list_my_customers, list_conversations or get_customer.
add array array Topic IDs from list_topics to add.
remove array array Topic IDs to remove.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "gladly_write",
    "arguments": {
      "operation": "apply_topics",
      "arguments": {
        "conversation_id": "HXRqKC5GSV-jAlq0-sxYTA",
        "add": [
          "Z_Oto7j-Sy2DlQdnZBDdDw"
        ]
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "conversation_id": "HXRqKC5GSV-jAlq0-sxYTA",
    "topics": [
      "Order Status"
    ]
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.