Skip to main content
The AI brain page decides which AI service writes the assistant’s answers and what it is told before every answer.
AI brain: the service (1), the connection test (2) and the personality (3)

AI brain: the service (1), the connection test (2) and the personality (3)

Connect an AI service

When your plan includes AI, choose Included with the plan and you’re done: there’s no key or model to fill in, and the page shows how much of this month’s allowance is used. See Included AI. The steps below are for using the client’s own key.
1

Choose the service and model (1)

Pick the provider and type the exact model name from the provider’s documentation. A small, fast model is usually best for customer chat: answers are quick and cheap.
2

Paste the API key and save it

The key is stored encrypted and is never shown again. Use the client’s own key when you want AI usage billed to them directly.A saved key works only with the service and address it was saved with. If you change the service or the base URL later, paste the key for the new one. A copy of an assistant doesn’t take the key along: paste one for the copy too.
3

Click Test connection (2)

You should see “Connected. The model replied.” If not, check the key and the model name. Each person can test up to 30 times an hour, and each assistant up to 200 times a day.
Some providers process messages outside the EU or use free-tier data for training. The page warns you when you pick one of them. For customers in the EU, choose a provider and plan that doesn’t.

Personality and tone (3)

The system prompt describes who the assistant is and how it talks. Keep it short and concrete:
Safety rules are always added to the instructions: the assistant talks to one person, must not reveal other customers’ data, and should answer business questions only from the knowledge base. Instructions lower the risk but can’t rule out every mistake, so other people’s data is also kept apart by the system itself: the assistant only ever sees the current person’s conversation. The assistant also resists people who try to manipulate it. Text in a customer’s message that claims to come from the system, the owner, the team or the platform is treated as the customer’s own words, and invisible characters that can hide instructions are removed from every message. The team’s helpers that read whole chats (the hand-off summary, suggested replies, memory, cold-lead sorting and the weekly quality check) see each message as one line, so a customer can’t slip in a fake “Business: refund approved” line. These protections are tested regularly with dozens of attacks in all four languages. The safety rules also set the tone for difficult moments, whatever the system prompt says: no emoji in apologies, complaints, refusals, bad news such as being closed, privacy questions or health and safety advice. The assistant doesn’t talk about its knowledge base or notes (“that isn’t mentioned”); it says what it knows or that it doesn’t have that information. It doesn’t read out the exact time; it says “we closed at 21:00” and gives the next opening time when the knowledge base has the hours. Asked what data is kept, it says the conversation is stored as the privacy policy describes, that the person can write “delete my data” at any time, and that the team can send them a copy. When the knowledge base has more than one price or option that fits a question (men’s and women’s haircuts, a single class and a pass, a group and a private class, several class times), the assistant gives each one with what it’s for, or asks which one the person means, instead of picking one. When two entries give different values for the same thing and one says from which date it applies (“from 1 September: 42 EUR”), it gives the value that applies today. When nothing says which is newer, it gives both and says it isn’t sure which one applies, so it’s worth removing old prices when they change: the knowledge page lists such values. In private chats the assistant also knows it writes as the business and that the team reads the chat. It doesn’t send people to a phone number, email, form or website the knowledge base doesn’t give; a sentence like that is left out and the question goes to Unanswered questions. Every reply, public ones too, also gets today’s date and the next three weeks with their weekdays, in the business’s time zone. The assistant counts days from this calendar, so “we need 2 days” for an order on Monday is worked out right, and it treats a date before today as gone by. When a weekday could mean two dates, such as “next Saturday”, it asks which one, and the notes worked out by code give no line for either date. Totals are worked out by code, not by the AI. When a reply adds prices up, such as two bowls and a studio fee for each person, or takes a percentage off, the AI writes the sum and code works it out, so the number is exact. “90 € less 15%” is 90 minus 15% of 90. The result is written the way the business writes its prices, such as 2 800 грн or 32.50 €. When the knowledge gives a price rule with a threshold, such as free delivery over 60 EUR or 20% off for 5 days or more, code checks the sums against it, and a reply that adds a fee the rule waives, misses the discount or takes it off when the condition isn’t met is written once more. A starting price, such as “colouring from 60 €”, is not a threshold. Dates are compared by code too: when a customer asks about a day, the AI is told whether it falls in the periods the knowledge gives, such as a high season, how many hours away it is when the knowledge asks for notice, how many days lie between two days the customer names, whether the business is open at the time they ask, breaks included, and the last day of a period the knowledge counts from a date, such as shoes kept 3 months from the day they are ready. A number with a unit or a currency, such as 1.5 hours or 10.05 €, is never read as a date. When a customer names an item, such as an iPhone 13 or a minivan, code also finds every line of the knowledge that names it, such as its price list row and a note that it is free with any bouquet, so the AI reads the right one. When those lines give it different values, the AI is told so, and it says what each one is for or asks the question that settles it. Words like “can’t” or “don’t” in the question say nothing about the item and are not used to find it. It finds them by meaning too, so a question in English finds the row of a price list written in Russian. When one day has a line of its own, such as a shorter Saturday, those hours count for that day, not the week’s hours. The same goes for a line that gives only an opening or a closing time for some days, such as “open 8:30 to 17:00 every day, at weekends we open at 8:00”: on a Saturday the AI is told 8:00 to 17:00. When a customer asks about a span of time, such as a lane from 16:00 to 18:00 on a Tuesday, and your prices change during the day, code splits the span by your price bands, so the AI knows that one hour is at the daytime price and one at the evening price. When a price is per hour, per person, per day or per night and the customer says how many, such as 3 people for a 2-hour class where each person from the third pays 15 € more per hour, the AI is told how many of that unit apply. Before a reply goes out, three more checks run. A “no” in the reply, such as “no experience needed” or “we don’t have a wine room”, is checked against the knowledge by a second, short AI call. When the knowledge doesn’t give that “no”, it is replaced with “I don’t have information about that”, an “only” it doesn’t say is left out, and the question goes to Unanswered questions. When the “no” named its thing first, the line keeps it, so it is clear what it is about: “Back glass for the iPhone 13: I don’t have information about that.” A “not needed” in the knowledge counts only for the same purpose: “no experience needed for our lessons” doesn’t back “no experience needed to rent a board”. A list of what you offer doesn’t count as a “no” for everything else. A day the weekly hours leave out, such as Sunday next to “Mon–Sat 09:00–20:00”, counts as closed, so “we’re closed on Sundays” stays as written. A reply written in another language than the customer’s is written once more in their language. Opening hours the reply gives are compared with the knowledge’s hours: when the reply gives a day the wrong hours, such as a short Saturday inside “Mon–Sat 10:00–19:00”, code writes the right hours in. Lines of the hours entry about something else, such as a kids’ workshop, a happy hour or the phone line, are not opening hours. When the reply used the range the knowledge gives, its words stay and the short day is added: “Mon–Sat 10:00–19:00 (Saturday until 16:00)”. A reply that reaches the length limit is sent up to its last full sentence.

Settings worth knowing

Set a monthly AI budget on the assistant’s settings. When it’s reached, the assistant stops calling the AI and you get an alert, so a busy month never brings a surprise bill. What customers are told then is under When the AI service fails. Replies being written at the same moment count toward the budget too, so a burst of messages stops at it as well. This includes reading customers’ voice messages and photos. Each voice message or photo also counts as a message toward the limit on how much one person can send in 10 minutes. When the client is on a client plan with an AI budget, the plan sets it.

When the AI service fails

If the AI service is down, refuses the key, is over its rate limit, sends an empty or unreadable reply, or takes longer than 90 seconds in all for one message, the customer is never told “I don’t have that information”: the knowledge base may well have the answer. An empty or unreadable reply is tried once more first. If it still fails, the customer is told, in their language, that the assistant has a technical problem and can’t answer right now:
  • In a private chat, when the assistant hands chats to the team (its hand-off rule is on), the chat goes to the team with the hand-off message. The team’s alert says it’s because of a technical problem. If nobody from the team replies in the chat or takes it, the person’s next message takes the chat back to the assistant, which answers as usual once the AI works again (if it still fails, the chat goes to the team again, with no second alert within half an hour). Once someone from the team replies or takes the chat, it stays with the team like any other hand-off.
  • Otherwise the question is added to Unanswered questions, and the customer is told it’s saved for the team.
  • Under a public comment nothing is posted; the question is added to Unanswered questions.
  • In the middle of a flow’s questions the flow goes on: the question is asked again, and nothing is handed over.
The next message after the service is back is answered as usual. The hourly channel check also sees the errors and tells the team once. When the monthly AI budget is used up, the customer is never told “I don’t have that information” either. They’re told the assistant can’t answer right now (nothing about a technical problem, the budget or money), and the chat goes to the team or the question is saved, in the same four cases. The team’s alert says the budget is used up. A chat handed over for the budget comes back to the assistant on the person’s next message only once the budget allows again: when you raise it, or on the 1st of the month. FAQs answered word for word, rules and the buttons of flows keep working without the AI.