Start Conversation
Conversation
Start conversation
Start a new conversation with an end user
POST
Start Conversation
Description
Starts a new conversation with an end user in the external support panel. Allows specifying the bot that will handle the conversation, the target user, an initial message, and assignment data for queues or agents. Upon execution, Jelou emits theconversation.start event to the webhook configured in the integration.
Endpoint
Path parameters
string
required
Unique identifier of the Jelou project from which the conversation is started.
Body parameters
string
required
Identifier of the Jelou bot that will manage the conversation.
string
required
Identifier of the end user with whom the conversation will be started.
string
Initial message to be sent when the conversation starts. If omitted, the conversation starts without a prior message.
object
Additional data associated with the conversation. Can include external identifiers, ticket numbers, or other context relevant to your system.Example:
{ "ticketId": "T-12345" }object
Assignment configuration for routing the conversation to a specific queue or agent.
type— Assignment type:queue,operator, orteam.target— Queue name or target agent identifier.
Authentication
All requests must include thex-api-key header with your Jelou project API key.
Request example
The following example starts a conversation with assignment to theSUPPORT queue and includes ticket metadata:
cURL
Responses
Response example
Webhook event conversation.start
When this resource is executed, Jelou will emit the conversation.start event to the webhook configured in the integration. The payload varies depending on the fields sent in the request.
- Basic payload
- With assignment and metadata
Payload fields
Authorizations
API key del proyecto de Jelou
Path Parameters
Unique identifier of the Jelou project
Body
application/json
Response
Conversation started successfully