Execute a conversational agent
POST/external/agent
Endpoint to call and interact with a deployed LLM-based agent. Accepts user messages and metadata (session ID, source, etc.) and returns the agent's response. Can be used to integrate chat interfaces (web, WhatsApp, etc.) with Optimly's analytics layer.
Usage Notes: - Ensure you provide a valid access token or API key for authentication. - Rate limit: 60 requests per minute per agent. - For best results, keep user messages concise and contextually relevant. - Use the chat_id to maintain conversation context. - For tool-triggering, follow the command format described in the documentation.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 500
Successful Response
Unauthorized
Forbidden
Not Found
Validation Error
Internal Server Error