Create agent connector
Creates a connector on an alias to receive events from an external platform such as Slack, Google Chat, or Zoom Contact Center, or to serve the embeddable widget. Sessions created through the connector are routed to an agent by the alias's policy.
Path parameters
The unique key that identifies an alias. Alias keys are independent of agent keys. The same string can exist as both an alias key and an agent key in the same customer account. Calls to /v2/agent_aliases/{key}/... target the alias. Calls to /v2/agents/{key}/... target the agent.
The unique key of the alias to create a connector on.
Headers
The platform makes a best effort to complete the request in the specified seconds, or it times out.
The platform makes a best effort to complete the request in the specified milliseconds, or it times out.
Request body
Example request
{
"name": "Customer Support Slack Channel",
"description": "Receives customer support messages from the",
"metadata": {
"priority": "high",
"department": "customer_service"
},
"enabled": true,
"type": "slack",
"configuration": {
"hidden_output_types": [
"tool_calls"
],
"type": "slack",
"bot_token": "xoxb-1234567890-1234567890123-abcdefghijklmnopqrstuvwx",
"signing_secret": "abcdef1234567890abcdef1234567890abcdef12",
"api_app_id": "A1234567890"
}
}Response
The created connector.
Example response
{
"id": "con_support_9f3a1c2b4d5e6f708192a3b4c5d6e7f8",
"alias_key": "support",
"name": "Customer Support Slack Channel",
"description": "Receives customer support messages from the",
"type": "slack",
"status": "active",
"status_message": "Slack authentication successful",
"metadata": {
"priority": "high",
"department": "customer_service"
},
"enabled": true,
"configuration": {
"hidden_output_types": [
"tool_calls"
],
"type": "slack",
"bot_token": "xoxb-1234567890-1234567890123-abcdefghijklmnopqrstuvwx",
"signing_secret": "abcdef1234567890abcdef1234567890abcdef12",
"api_app_id": "A1234567890",
"webhook_path": "/v2/agents/customer_support/connectors/con_3Kx9QpVn2mZr8YbLc5TdWe/input"
},
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-16T14:45:00Z",
"last_webhook_at": "2024-01-16T14:45:00Z",
"last_webhook_status": "success"
}