Events
Send messages to AI Agents and receive responses
Send a text or postback message to an AI Agent and receive the agent's response(s) synchronously. Use this endpoint for all conversational interactions.
Usage flow:
Trigger the greeting with a postback message (
type: "node",data: "greeting") to start a new sessionSend text messages for each conversation turn
Use a consistent
sender.idto maintain session context across messages
API Token from the console (Designer → Deployments → API → API Token)
Agent deployment identifier (from console: Designer → Deployments → API → Identifier)
Unix timestamp in milliseconds
Language code override (e.g. "EN", "EL", "DE")
Agent response(s) returned successfully
okPossible values: Validation error
Authentication failed
Token handle mismatch
Server error
POST /api/events HTTP/1.1
Host: bot-v5.helvia.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 111
{
"handle": "my-agent-handle",
"message": {
"payload": {
"type": "node",
"data": "greeting"
}
},
"sender": {
"id": "user-123"
}
}{
"status": "ok",
"result": {
"responses": [
{
"id": "TX_b8eb307f-cf33-48fb-bc51-a0e7e6a7d817",
"type": "text",
"options": [
"Hi! I'm the Productivity Coach."
],
"altText": "Hi! I'm the Productivity Coach."
},
{
"id": "TX_1bfda168-dd49-4dc0-b9fc-56ce9cb5d141",
"type": "text",
"options": [
"How can I help you today?"
],
"altText": "How can I help you today?"
}
]
}
}Last updated

