AI Agent API - Send/Receive Messages

Using API to Send & Receive Messages with Your AI Agent

What is an API?

The API allows you to send and receive data from your AI Agent. Think of it as copying and pasting information between systems — accuracy in placing the right data in the right fields is crucial.

API Endpoint:

URL:
https://app.chatagentlab.com/en/chatbot/api/v1/message/

HEADERS:
Authorization | Token ba534d4274523452345da0e99345a67000

BODY (KEY and VALUE):

  • chatbot_uuid | (Copy this value from your chatbot’s dashboard)
  • query | (This is the user message you want to send to the AI Agent)
  • user_key | (Unique contact ID to identify each individual conversation)

Example Payload (JSON):


{
  "chatbot_uuid": "your-chatbot-uuid-here",
  "query": "What are your business hours?",
  "user_key": "unique-user-id-12345"
}

How it Works:
-------------

Once connected, you can send user messages (queries) to the AI Agent and receive generated responses in real-time — enabling seamless chat integration into any platform or app.