Interact with the conversational AI agent using this 3-step process:Documentation Index
Fetch the complete documentation index at: https://docs.chatzy.ai/llms.txt
Use this file to discover all available pages before exploring further.
1. Start Conversation (/init_conversation)
- Purpose: Create a new conversation session.
- Required:
chatbot_id-> Get this from Conversational AI Agents > open your agent’s menu (⋮ / hamburger) > Copy Agent ID.
- Response: Returns a
conversation_id(used in later steps) and a intorductory message (if enabled).
2. Send Message (/get_inference)
- Purpose: Send a user message to the AI.
- Required:
chatbot_id(from step 1)conversation_id(from/init_conversation)message(your text)
- Response: Sends user message for processing and returns a
temp_token.
3. Stream Reply (/get-response)
- Purpose: Get the AI’s response in real time via SSE (Server-Sent Events).
- Required:
temp_token(from/get_inferenceresponse or generated separately)
- Response: Streams reply response chunks and control signals until the answer is complete.
⚠️ Important: This flow must be repeated for each new user message or session. Thetemp_tokenexpires quickly (validity of1 minute) and cannot be reused.