Set priority

Set the priority of a conversation, or clear it.

PUT https://cotlet.dev/api/v1/chatwoot/conversations/{conversation_id}/priority

write

Sets one of Chatwoot's four fixed priorities, or none to clear it. Chatwoot has no custom priorities; use labels for finer sorting. The priority shows in the conversation list and adds an activity entry in the thread. set_priority runs without asking first: it reaches no customer and is undone with one call.

Parameters

Parameters: set_priority
NameTypeDescription
conversation_id integer required integer conversation_id from list_conversations. It is the number in the conversation URL.
priority string required string urgent, high, medium, low or none.

Request

cURL
curl -X PUT https://cotlet.dev/api/v1/chatwoot/conversations/1/priority \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"priority":"priority"}'
Python
result = client.call("chatwoot", "set_priority", {"conversation_id":1,"priority":"priority"})
Node.js
const result = await cotlet.call('chatwoot', 'set_priority', {"conversation_id":1,"priority":"priority"});
CLI
cotlet call chatwoot set_priority --data '{"conversation_id":1,"priority":"priority"}'

Example response

JSON

{
  "conversation_id": 1842,
  "priority": "high"
}

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.