Accepting a handover request

This endpoint is provided by the human agent solution and configured by Laiye Chatbot at your request during the integration setup.

When a chatbot user asks to contact a human agent, Laiye Chatbot calls this endpoint to create a new conversation between the user and the agent.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Expected response

Expected response codes from the human agent platform backend are 2xx.

Timeouts

The connection time between Laiye Chatbot's back-end and the partner's back-end must be less than 1s
Once connected, a response must be given within 1 second.

Body Params
string
required

Laiye Chatbot end-user unique token (note: this is an internal token different from the Messaging API end-user-token)

conversation_history
array of objects
required

Array of messages representing the history of the conversation between the end-user and the chatbot. Can be displayed to the agent to provide more context about the user’s request.

conversation_history*
Headers
string
Defaults to application/json
Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json