Lety Docs
  • 馃榾Introducci贸n Lety
  • 馃摎Empieza aqu铆
    • Glosario
    • C贸mo construir un Agente AI
  • Precios y creditos
    • 馃攤Cobros autom谩ticos
    • 馃挷Precios Planes
  • 馃槑Agente/Chatbot
    • Inicio
    • C贸mo escribir un buen Prompt
    • Crear un Agente/Chatbot
    • Knowledge base
    • Training
    • Scheduling
    • Leads
    • Appearance/Embed/Share
  • 馃敆Chatbot API
    • Conexi贸n lety agente -Lety Marketing
    • Chatbot API - Zapier
    • Chatbot API - Send/Receive Messages
    • Chatbot API - Key
    • Overview
  • 鉁旓笍Best practices
Powered by GitBook
On this page
  1. Chatbot API

Chatbot API - Send/Receive Messages

Using API to Send & Receive Messages w/ AI Chatbot

What is an API?

The API is a way for you to send and receive data from your AI chatbot. When we use the API we are essentially copying and pasting different values from one place to another. The most important thing is making sure you are pasting everything in the right place.

This is the specific URL that is used to send and receive data from your AI chatbot. In order to properly send and receive messages with the AI chatbot via the API you need to have the following fields setup.

URL: https://YOUT_AGENCY_DOMAIN/en/chatbot/api/v1/message/

HEADERS: Authorization | Token ba534d4274523452345da0e99345a67000

BODY (KEY AND VALUE):

- chatbot_uuid | this is the value copy/pasted from the chatbot鈥檚 dashboard

- query | this is the message from the user that you want to send to the AI chatbot

- user_key | this is the unique contact ID to identify each person鈥檚 conversation

After the connection to the chatbot has been made you will be able to send it questions and receive a generated response.

PreviousChatbot API - ZapierNextChatbot API - Key

Last updated 1 year ago

馃敆