Skip to main content

How Sarthi works

The life of a chat​

  1. The visitor opens the bubble. The widget asks Sarthi to start a chat for your site key, from your website's address. If the address isn't in your allowed list, nothing starts.
  2. The front desk greets them. If you turned the form on, the visitor gives their name, email or phone (and consent, if you ask for it). Signed-in customers skip this: your server already told Sarthi who they are.
  3. A role takes over. The front desk's routing rules pick a role: by the page, by what the visitor said, by whether they are signed in, by their plan. From then on that role answers in its own name and voice.
  4. Each message becomes a turn. Sarthi analyses the message (language, intent, safety, whether it needs knowledge or data), searches your knowledge, looks something up in your database or calls an action if needed, writes the reply, and checks every sentence against your guardrails before it is sent. The reply streams in sentence by sentence.
  5. A person steps in when it matters. The AI can hand the chat to your team, ask the team a quiet question and relay the answer, or promise a callback when nobody is free. A team member can take over any chat at any time.
  6. The chat ends when the visitor closes it, after 30 minutes of silence, or when the AI finishes. The visitor can rate it and ask for the transcript by email.

The console shows every turn's reasons: what was searched, which guardrail fired, why a role was chosen. Nothing is a black box.

Pinned configuration​

When a chat starts, Sarthi freezes the configuration it uses: settings, front desk, roles, guardrails. Changes you make later apply to new chats, never halfway through one. Knowledge is the exception: it is always live, so a corrected price is right in every chat at once.

Credits​

Every reply costs credits, your plan's units. The console shows the balance, a per-chat and a per-day cap stop runaway spend, and a warning goes out before you run low. Database look-ups cost one credit each; cached answers are free.

Words you will meet​

WordMeaning
Site keyThe public id of your widget, ws_acme_7f3a9c. It's in the snippet and in your page's source: that's fine, it only works on your allowed websites.
Allowed websitesThe websites that may show your chat.
Front deskThe first moments of a chat: greeting, form, routing.
GateThe short form before chatting, if you turned it on.
RoleOne assistant with a name, a brief and a conversation plan.
TurnOne visitor message and everything Sarthi did about it.
SnapshotThe pinned configuration of one chat.
HandoffThe AI brings in a person; the chat waits for your team.
ConsultThe AI asks your team a question while the chat goes on.
TakeoverA team member talks to the visitor directly; the AI stops until they hand back.
CallbackA request for your team to call the visitor back.
LeadA person who left their details, with all their chats under one record.
CreditsYour plan's units for what chats cost.

The full list is in the glossary.