{ "success": true, "conversation_id": "f3wqsa-asd23-grt4-ggg34-derf4", "customer_identifier": "+49155551234", "reply": "Hi John! I'd be happy to help you schedule an appointment. What day and time work best for you?", "function_calls": [], "ai_disabled": false}
AI Chatbot
Generate AI Reply
Generates an AI reply using an assistant based on a customer identifier
{ "success": true, "conversation_id": "f3wqsa-asd23-grt4-ggg34-derf4", "customer_identifier": "+49155551234", "reply": "Hi John! I'd be happy to help you schedule an appointment. What day and time work best for you?", "function_calls": [], "ai_disabled": false}
This endpoint automatically generates an intelligent reply to a customer message using your configured AI assistant. The system automatically manages conversation context for each customer, so the assistant remembers previous messages and can respond contextually. Ideal for integration into external messaging platforms, CRMs, or custom chat interfaces.
Rate Limit: This endpoint is limited to 5 requests per minute per API token to prevent abuse.
A unique identifier for the customer. This is used to maintain conversation context across multiple messages.Examples: Phone number, email address, CRM contact ID, Facebook user ID.Maximum length: 255 characters.Important: Always use the same format for the same customer to ensure context is correctly mapped.
Optional context variables to pass to the assistant. These are merged with existing conversation variables.Useful for passing customer data, session context, or other metadata that can personalize the reply.
Use consistent identifiers: Always use the same format for customer identifiers (e.g. always E.164 for phone numbers)
Pass relevant context: Use the variables field to provide customer data that helps the AI personalize replies
Handle rate limits: Implement retry logic with exponential backoff for rate-limited requests
Store conversation IDs: Save the returned conversation_id for later reference or debugging
Monitor costs: Track usage to manage costs, especially for high-volume integrations
Copy
{ "success": true, "conversation_id": "f3wqsa-asd23-grt4-ggg34-derf4", "customer_identifier": "+49155551234", "reply": "Hi John! I'd be happy to help you schedule an appointment. What day and time work best for you?", "function_calls": [], "ai_disabled": false}