Use case
BYOAI: your own AI, meiti's channels
Already have your own AI — with your model, your prompt, your data? Then add an assistant of the kind "Your own AI" in meiti. meiti sends every customer message and every call to your AI and passes its answer on to the customer. Channels, numbers, inbox, history and the handover to your team come from meiti, the answers from your AI.
Three ways to decide who answers
meiti AI
The default: meiti's assistant with skills.
- Persona, knowledge and skills in the app
- Appointments, intake, putting calls through
meiti AI + your data
meiti's assistant, fed from your system.
- Your webhook answer gives the assistant context on the customer
- Ideal for CRM, ERP or industry software
New
Your AI (BYOAI)
Your AI answers, meiti provides the channels.
- Your model, your prompt, your data
- Chat via webhook, phone via WebSocket
- Chat free, phone per minute
How a conversation runs
- Chat: for every customer message meiti sends the event
message.receivedto your AI's chat address — with the contact, the new message and the history so far. Your AI answers right in the body, or confirms with202and answers later throughPOST /v1/projects/{id}/agent-replies. - Phone: meiti answers the call, greets and opens a
wssconnection to your AI. Every sentence of the caller goes out as text, your answer comes back as text — in pieces too — and meiti speaks it. - Actions: with
handoveryour AI hands over to the team, withendthe request is done (on the phone meiti hangs up afterwards). Anoteis seen by your team only. - Skills as tools: on the assistant's page you attach forwards and alerts under "Skills". Your AI triggers them itself by their key — meiti puts the call through or alerts the team, minding times and limits.
What meiti takes care of
- Channels and numbers: WhatsApp, web chat, Telegram and phone — your AI needs no connection of its own.
- Speech on the phone: meiti recognises what the caller says and speaks your answers in the voice you pick on the assistant.
- Inbox and history: every conversation lands in the inbox with all messages and call turns — just like with meiti's own assistant.
- Handover to your team: your team can reply or "Take over call" at any time. Your AI then stays silent until someone hands the conversation back with "Hand to meiti".
- Never into the void: if your AI doesn't answer in time or answers with an error, the message waits for the team with a note. On the phone the caller leaves a message.
How to set it up
- "Settings" → "AI assistants" → "NEW" → pick "Your own AI" and give it a name. The new assistant's page opens.
- Under "Chat (WhatsApp, website, Telegram)" enter your AI's https address, under "Phone" the
wssaddress, and pick a voice. Save. - "Create secret": meiti signs every request with it. It is shown only once — hand it to your IT safely.
- "Test connection" and assign the assistant to channels under "Who answers where?".
Important
Without a secret meiti sends nothing to your AI — chats then wait for the team, callers leave a message. Everything except creating the assistant also works via the API through
Without a secret meiti sends nothing to your AI — chats then wait for the team, callers leave a message. Everything except creating the assistant also works via the API through
/v1/agents.
// Your chat endpoint (Node.js / Express). myAI stands for your own model, prompt and data.
app.post("/meiti/chat", express.raw({ type: "application/json" }), async (req, res) => {
// Only meiti: check X-Meiti-Signature over the raw body (sample in the developer docs).
if (!verify(req.get("X-Meiti-Signature"), req.body)) return res.sendStatus(401);
const event = JSON.parse(req.body);
if (event.type !== "message.received") return res.sendStatus(200); // "ping" from the connection test
const { message, history, contact } = event.data;
const answer = await myAI({ text: message.text, history, contact });
// Answer right away — or 202 now and POST to event.data.replyUrl later.
res.json({ text: answer.text, action: answer.needsPerson ? "handover" : "none" });
});
What it costs
In chat your AI's replies cost nothing — just like meiti's own AI. On the phone every started minute of the call with your AI counts. What meiti does on top for you, such as summaries after the conversation, costs as usual. You see the credits in the app.
Want to keep meiti's assistant and just give it knowledge from your system? You don't need your own AI for that: the CRM webhook supplies context on the customer, the API sends messages from your system.