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

ZaloPushToXBot

PreviousWebhookNextAzbotPushToXBot

Last updated 9 months ago

Zalo 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
Body
event_namestringOptional

Name of the event

app_idstringOptional

Application identifier

timestampstringOptional

Timestamp of the event

user_id_by_appstringOptional

User identifier within the application

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

{
  "event_name": "user_send_text",
  "app_id": "2553928453557884079",
  "sender": {
    "id": "6142494823xxxxxxxx"
  },
  "recipient": {
    "id": "3662729599332560487"
  },
  "message": {
    "text": "Chào A4B",
    "msg_id": "cb31dff1c39642cc1b83"
  },
  "timestamp": "1699003881354",
  "user_id_by_app": "979122185046046317"
}
{
  "status": "text",
  "message": "text"
}