Botx Dialog File
1. Introduction: What is Botx Dialog? Botx Dialog is not a single software application but rather a communication protocol and architectural pattern designed to facilitate structured, stateful, and bidirectional conversations between bots (automated systems), human agents , and end-users across multiple messaging channels.
"dialog_id": "uuid-v4", "state": "COLLECTING_INPUT", "participants": "user": "user_123", "bot": "support_bot_v2", "agent": null , "context": "intent": "refund_request", "order_id": "ORD-9876", "steps_completed": ["authentication", "order_lookup"] , "messages": [ "role": "bot", "text": "I see you want a refund. May I ask the reason?", "timestamp": "2025-03-17T10:00:00Z" ], "escalation_policy": "SENTIMENT_NEGATIVE" botx dialog
User: "It's broken" -> Sentiment analysis = NEGATIVE. Escalation policy triggered. -> State = ESCALATED. Human agent assigned. -> State = ESCALATED
Bot: "Your order was delivered yesterday. What issue do you see?" -> State = COLLECTING_INPUT. Context = order_id: "ORD-1234", stage: "issue_type" What issue do you see?" ->
User: "ORD-1234" -> State = PROCESSING. Validate order -> valid.