curl --request POST \
--url https://gateway.jelou.ai/jelouapi/v1/external-support/{projectId}/conversations/start \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"botId": "<string>",
"userId": "<string>",
"initialMessage": "<string>",
"metadata": {},
"assignment": {
"type": "<string>",
"target": "<string>"
}
}
'{
"message": "<string>",
"statusMessage": "<string>",
"status": 123,
"error": {
"code": "<string>",
"key": "<string>",
"description": "<string>",
"developerMessages": {},
"clientMessages": {}
},
"validationError": {}
}Start a new conversation with an end user
curl --request POST \
--url https://gateway.jelou.ai/jelouapi/v1/external-support/{projectId}/conversations/start \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"botId": "<string>",
"userId": "<string>",
"initialMessage": "<string>",
"metadata": {},
"assignment": {
"type": "<string>",
"target": "<string>"
}
}
'{
"message": "<string>",
"statusMessage": "<string>",
"status": 123,
"error": {
"code": "<string>",
"key": "<string>",
"description": "<string>",
"developerMessages": {},
"clientMessages": {}
},
"validationError": {}
}Documentation Index
Fetch the complete documentation index at: https://docs.jelou.ai/llms.txt
Use this file to discover all available pages before exploring further.
conversation.start event to the webhook configured in the integration.
POST https://gateway.jelou.ai/jelouapi/v1/external-support/{projectId}/conversations/start
{ "ticketId": "T-12345" }type — Assignment type: queue, operator, or team.target — Queue name or target agent identifier.x-api-key header with your Jelou project API key.
x-api-key: API_KEY
SUPPORT queue and includes ticket metadata:
curl --request POST \
--url https://gateway.jelou.ai/jelouapi/v1/external-support/PROJECT_ID/conversations/start \
--header 'x-api-key: API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"botId": "BOT_ID",
"userId": "USER_ID",
"initialMessage": "Hello, I need help",
"metadata": { "ticketId": "T-12345" },
"assignment": { "type": "queue", "target": "SUPPORT" }
}'
| Code | Status | Description |
|---|---|---|
| 200 | OK | Conversation started successfully. |
| 401 | Unauthorized | Invalid or missing authentication credentials. |
| 404 | Not Found | Bot or user not found. |
| 422 | Bad Request | Required fields are missing or the format is invalid. |
| 500 | Internal Server Error | Internal server error. |
{
"message": [
"Conversation started successfully"
],
"statusMessage": "success",
"status": 1,
"data": {
"conversationId": "CONVERSATION_ID",
"botId": "BOT_ID",
"userId": "USER_ID",
"status": "active"
}
}
conversation.startconversation.start event to the webhook configured in the integration. The payload varies depending on the fields sent in the request.
{
"event": "conversation.start",
"timestamp": 1776133797422,
"field": "conversation",
"object": "conversation_event",
"event_type": "start",
"project_id": "PROJECT_ID",
"room_id": "ROOM_ID",
"contact": {
"id": "USER_ID",
"name": "USER_NAME"
},
"conversation": {
"id": "CONVERSATION_ID"
},
"bot": {
"id": "BOT_ID",
"name": "BOT_NAME"
},
"value": {}
}
{
"event": "conversation.start",
"timestamp": 1776134145523,
"field": "conversation",
"object": "conversation_event",
"event_type": "start",
"project_id": "PROJECT_ID",
"room_id": "ROOM_ID",
"contact": {
"id": "USER_ID",
"name": "USER_NAME"
},
"conversation": {
"id": "CONVERSATION_ID",
"assignment": {
"type": "queue",
"target": "SUPPORT"
}
},
"bot": {
"id": "BOT_ID",
"name": "BOT_NAME"
},
"value": {
"initial_message": "Hello, good morning",
"metadata": {
"ticketId": "T-12345"
}
}
}
| Field | Type | Description |
|---|---|---|
event | string | Event name: conversation.start |
timestamp | number | Unix timestamp in milliseconds at the time of the event. |
project_id | string | Jelou project identifier. |
room_id | string | Conversation room identifier. |
contact.id | string | End user identifier. |
contact.name | string | End user name. |
conversation.id | string | Unique identifier of the started conversation. |
conversation.assignment.type | string | Assignment type: queue or direct. |
conversation.assignment.target | string | Queue name or target agent ID. |
bot.id | string | Assigned bot identifier. |
bot.name | string | Assigned bot name. |
value.initial_message | string | Initial message sent when the conversation started (optional). |
value.metadata | object | Additional conversation metadata (optional). |
Basic authentication using Base64 encoded clientId:clientSecret
Unique identifier of the Jelou project
Conversation started successfully
Was this page helpful?