XBot
  • Overview
    • Introduction
    • How xBot Works
    • Target Audience
    • Key Benefits of xBot
    • Core Concepts of xBot
  • Quick Start
    • Quick Setup
    • Getting Started
      • Zalo Channel
      • Azure Bot Framework
      • FaceBook Channel
      • Team Channel
      • Webchat Channel
      • Email Channel
    • Basic Configuration
    • First AI Flow Setup
    • Initial Testing and Go Live
  • Features
    • Using xBot to Handle End-User Queries
    • Communication Channels
      • Zalo OA
      • Facebook
      • Teams
      • WebChat
      • Email
    • Understanding the Message Handling Flow
    • Understanding AI Bots in xBot
    • Configuring Dispatch Rules in xBot
    • User Functions and Permissions
      • Custom Roles and Permissions
      • Auditing and Monitoring User Activities
    • Cross-Platform Message Type Compatibility
    • AI Flow
      • Core Concepts
      • AI Services
        • Knowledge Base Agent
        • AI Agent
        • AI Proxy Agent
      • Knowledge Base
      • Functions
      • Evaluation Metrics
        • Essential Information
        • Basic Metrics
        • Extra Metrics
  • Integration Guide
    • Integrates with multiple channels
      • API reference
        • Webhook
          • ZaloPushToXBot
          • AzbotPushToXBot
        • Webchat
          • InitForClient
  • References
    • Industry-Specific Use Cases
      • Media and Entertainment
      • Wholesale
      • Transportation and Logistics
      • Manufacturing
      • Energy and Utilities
      • Real Estate
      • Agriculture
      • Travel and Hospitality
      • Healthcare and Wellness
      • Retail and E-Commerce
      • Public Administration
      • Legal
      • Training
      • Education
      • xBot Use Case: Insurance
      • Securities -Use Case
      • Banking - Use Case
      • xBot Use Case: Finance
Powered by GitBook
On this page
  1. Integration Guide
  2. Integrates with multiple channels
  3. API reference
  4. Webhook

AzbotPushToXBot

PreviousZaloPushToXBotNextWebchat

Azure Bot push the message to XBot

post
Query parameters
param.header.xp-api-keystringRequired

XBot will generate an xp-api-key and provide it to you. This key is used for authentication when XBot interacts with your system

Example: 7cc88fb5f4af7421ae777252b92de42a62f61b49b20a88867f8a66247d3872ad
Header parameters
Content-Typestring · enumRequiredExample: application/jsonPossible values:
Body
idstringOptional

Unique identifier for the message

textstringOptional

Message text

typestringOptional

Type of the message

localestringOptional

Locale of the message

channelIdstringOptional

Channel identifier

timestampstringOptional

Timestamp of the message

serviceUrlstringOptional

Service URL

textFormatstringOptional

Format of the text

attachmentsobject[]Optional

Attachments of the message

localTimezonestringOptional

Local timezone

localTimestampstringOptional

Local timestamp

Responses
200
Message pushed to Azure Bot successfully
application/json
default
Unexpected error
application/json
post
POST /webhook/xpbot/api/azbot/push HTTP/1.1
Host: xbot-i3p-uat.a4b.vn
Content-Type: application/json
Accept: */*
Content-Length: 693

{
  "id": "FQ37dWZy9vGBuomoRSuQdq-as|0005050",
  "from": {
    "id": "936212645525#director@a4b.vn",
    "name": "Thế Anh Cao",
    "role": "user"
  },
  "text": "chào bạn",
  "type": "message",
  "locale": "vi-VN",
  "entities": [
    {
      "type": "ClientCapabilities",
      "supportsTts": true,
      "requiresBotState": true,
      "supportsListening": true
    }
  ],
  "channelId": "webchat",
  "recipient": {
    "id": "isign_bot_uat@1vmyMBwSvYw",
    "name": "isign_bot_uat"
  },
  "timestamp": "2024-03-18T09:31:36.5788951Z",
  "serviceUrl": "https://directline.botframework.com/",
  "textFormat": "plain",
  "attachments": [],
  "channelData": {
    "clientActivityID": "li8a9x2ugak"
  },
  "conversation": {
    "id": "FQ37dWZy9vGBuomoRSuQdq-as"
  },
  "localTimezone": "Asia/Saigon",
  "localTimestamp": "2024-03-18T16:31:36.208+07:00"
}
{
  "status": "text",
  "message": "text"
}