Skip to main content

Agents

LUMA AI agents answer your customers on your website, in your app and on WhatsApp, using the knowledge you give them (web pages, files, text) and the tools you connect (your APIs, MCP servers).

What you can do with the API​

TaskPage
List your agents and read one agentList and get agents
Get a short-lived token to chat with an agentClient token handshake
Ask a question and get the answer, complete or streamedChat with an agent
Put the chat bubble on your websiteWidget embed code
Open, close and feed the widget from your pageWidget JavaScript SDK
Restyle the widgetWidget CSS
Add websites, files and text to an agent's knowledgeKnowledge
Read leads, take over chats, read ratingsLeads, human handoff and ratings
Let the agent call your API or an MCP serverTools

IDs you will use​

IDWhere to find itExample placeholder
Project IDGET /v1/projects (data[].project_id), or GET /v1/wabaPROJECT_ID
Agent ID (chatbot_id)Agent's Install page, or List agentsAGENT_ID
Session IDReturned by the first chat call; send it back to continue the same conversationSESSION_ID

Agent IDs are opaque strings. Use them exactly as LUMA returns them.

Two ways to talk to an agent​

FromCredentialTypical use
The LUMA widget, your own chat window, a mobile appAgent client token from the handshake (the widget gets it itself; your server gets it for your own chat window)Websites and apps
Your serverAgent client token, or your API keyBack-office automation, other channels (SMS, your own app backend)

Credits: 60 per AI answer. Knowledge training: 250 per file or web page.