Custom parameters
The respond endpoint supports additional parameters for advanced use cases:
Custom metadata to pass to the conversation. This data is accessible in functions via conv.integration_attributes.Example:{
"integration_attributes": {
"page_url": "https://example.com/checkout",
"cart_value": "99.99"
}
}
Language code for speech recognition (e.g., "en-US", "es-ES").
Language code for text-to-speech (e.g., "en-US", "es-ES").
Custom parameters
Custom metadata for this specific message. Accessible in functions during this turn.Example:{
"metadata": {
"user_action": "clicked_button",
"button_id": "confirm_booking"
}
}
Language code for speech recognition (e.g., "en-US", "es-ES").
Language code for text-to-speech (e.g., "en-US", "es-ES").
Authorizations
ApiKeyAuthTokenAuth
You must request an API Key to use PolyAI APIs.
Agent authentication token (connector).
ID of the conversation to respond to
Message to send to the agent
Response message from the agent
Example:"Transferring you to an agent."
Whether the conversation should be ended
Information about handoff if applicable