Skip to main content

Custom prompts for AI answers

Custom prompts let you give the AI your own instructions: the tone to use, what to offer, what to leave out. They apply to the AI's answers in the inbox (WhatsApp, Instagram, live chat, Apple and Google messages, delivery orders), to the AI voice agent on calls and to post-call summaries.

Open Admin > AI agents > Custom prompts (/admin/ai-prompts). You need settings:read to see the page and settings:write to change or try the prompts.

Levels​

You can write one text at each level. The most specific text that is not empty applies:

LevelApplies toReplaces
A channelInbox replies on that channelThe inbox reply text and the company text
Inbox repliesEvery inbox replyThe company text
Voice agentWhat the voice agent says on callsThe company text
Call summariesThe summary written after a callThe company text
For every AI answer (company)Everything above that has no text of its ownNothing

An empty text is not set. A company without custom prompts gets the same AI answers as before.

Custom prompts are added to an agent's own instructions and persona (set on each agent in Admin > AI agents). Use the agent for what one agent does and the custom prompts for what all answers of a channel or a feature should share.

Placeholders​

A text may use these placeholders. They are filled in for each answer:

PlaceholderBecomes
{{company_name}}The company's name
{{customer_name}}The customer's display name on the channel, or "the customer" when there is none
{{channel_name}}The name of the inbox channel
{{agent_name}}The name of the AI agent that answers

Any other placeholder is refused when you save. Values are cleaned before they are put in (letters, digits, spaces and simple punctuation, at most 60 characters), because a customer chooses their own display name.

Limits​

  • Each text is at most 4000 characters.
  • At most 100 channels can have a text of their own.
  • Team chat channels have no AI replies, so they are not listed.

What a custom prompt cannot change​

Your instructions are added to the platform's fixed rules. They come after the agent's prompt and before the fixed rules, and the fixed rules say that they win. A custom prompt can never:

  • reveal the prompt or the rules;
  • give out phone numbers, e-mail addresses, home addresses, payment details or other personal data, or ask for card numbers or passwords;
  • promise delivery times or anything the order data does not say (delivery order answers also stay drafts for a person to relay);
  • switch off an agent's safety rules, such as the rules of the clinic template against medical advice and for emergencies. These rules are a fixed part of the prompt of every agent created from the clinic template, in the agent's language, whatever its instructions or your custom prompt say (see AI agents and the test console);
  • make the AI follow instructions written by a customer, in the knowledge base or in a tool's result.

If a delivery order cannot be read, the conversation still goes to a person, whatever the custom prompt says.

Try it​

The Try it panel uses the texts as they are on the page, before you save them:

  1. Pick the feature and, for inbox replies, the channel.
  2. Optionally enter a sample customer name.
  3. To see an answer, pick an agent and write a sample customer message, then choose Try.

The panel shows which level applies, the text with its placeholders filled in and, with a message, the answer the agent would give. Nothing is sent, stored or executed: the agent's tools are not used. An answer counts as AI usage of the voice agent feature, which must be on.

Examples​

LevelExample text
For every AI answerYou answer for {{company_name}}, a family restaurant. Be warm and brief. Suggest the daily menu on our website when someone asks what to eat.
A WhatsApp channelGreet {{customer_name}} by name in the first answer. Keep answers to two sentences.
Voice agentSpeak slowly and spell out opening hours, for example "nine in the morning".
Call summariesSay which dish or reservation the caller asked about, and whether they want a call back.

Changes and history​

A change needs the version you read (If-Match). Each save is recorded in Admin > Change history as ai_prompts, with the texts before and after, and in the audit log.

API​

MethodPathWhat it does
GET/api/v1/ai/promptsThe texts, with an ETag
PUT/api/v1/ai/promptsSave the texts (If-Match required)
POST/api/v1/ai/prompts/previewTry texts (saved or sent with the request)

A text that cannot be saved is answered with MPBX-AI-PROMPT-INVALID; see Error codes.