Creates a new chat conversation and returns the conversation ID along with the agent’s initial response.
conv.integration_attributes.Example:"webchat", "whatsapp")."en-US", "es-ES")."en-US", "es-ES").You must request an API Key to use PolyAI APIs.
Your PolyAI API key.
Agent authentication token (connector).
API version
Account ID
Project ID
Custom metadata passed from external integrations. Accessible in functions via conv.integration_attributes.
{
"customer_id": "12345",
"source": "mobile_app"
}Specify which variant to use for this conversation. Useful for multi-site deployments.
"VARIANT-xxxxxxxx"
Channel identifier for the conversation.
webchat, whatsapp, sms, api "webchat"
Language code for speech recognition (ISO 639-1 with region).
"en-US"
Language code for text-to-speech (ISO 639-1 with region).
"en-US"
Optional initial message from the user to start the conversation.
"Hello, I need help"