How Sarthi works
The life of a chat
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
| Word | Meaning |
|---|---|
| Site key | The 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 websites | The websites that may show your chat. |
| Front desk | The first moments of a chat: greeting, form, routing. |
| Gate | The short form before chatting, if you turned it on. |
| Role | One assistant with a name, a brief and a conversation plan. |
| Turn | One visitor message and everything Sarthi did about it. |
| Snapshot | The pinned configuration of one chat. |
| Handoff | The AI brings in a person; the chat waits for your team. |
| Consult | The AI asks your team a question while the chat goes on. |
| Takeover | A team member talks to the visitor directly; the AI stops until they hand back. |
| Callback | A request for your team to call the visitor back. |
| Lead | A person who left their details, with all their chats under one record. |
| Credits | Your plan's units for what chats cost. |
The full list is in the glossary.