Assign conversation

Move a Conversation to another Inbox or Agent.

POST https://cotlet.dev/api/v1/gladly/conversations/{conversation_id}/assign

write Confirm

Uses the Conversation Assignment menu: the new Inbox or Agent replaces the previous one, and the change shows in the Conversation Timeline. Returns the new assignee. A colleague receives the customer. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: assign_conversation
NameTypeDescription
conversation_id string required string Conversation ID from list_my_customers, list_conversations or get_customer.
inbox_id string string Inbox ID from list_assignees.
agent_id string string Agent ID from list_assignees.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/gladly/conversations/conversation_8c41d2/assign \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("gladly", "assign_conversation", {"conversation_id":"conversation_8c41d2"})
Node.js
const result = await cotlet.call('gladly', 'assign_conversation', {"conversation_id":"conversation_8c41d2"});
CLI
cotlet call gladly assign_conversation --data '{"conversation_id":"conversation_8c41d2"}'

Example response

JSON

{
  "conversation_id": "HXRqKC5GSV-jAlq0-sxYTA",
  "assignee": {
    "inbox": "Orders",
    "agent": null
  }
}

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.