Routines
Some customers ask the same thing every morning: "Where are my shipments?", "What's due this week?", "How many orders came in?". With Routines, they save the question once. Sarthi asks it for them at their time, and when they next open the chat, the fresh answer is already there. If they like, it lands in their email too.
These routines are for signed-in customers: "my shipments" needs Sarthi to know who is asking. They are off by default, and you switch them on per role. Your own team can put a database question on a schedule too: see team routines in Ask your data.
An example
- Priya, signed in on your portal, asks "Where are my shipments?". Sarthi answers from your database, with her rows only.
- Under the answer she taps Ask me this every day, keeps 9:00 am, taps Weekdays, and saves. The chat says "Saved. Your first update is tomorrow at 9:00 am."
- At 9:00 the next morning Sarthi asks the same role the same question, as Priya.
- At 11:30 Priya opens the chat. Just above the message box: Your 9:00 am update, her question, and the answer. It shows at once, because the AI did its work at 9:00.
- A week later she wants it before her first call. In Routines she presses Edit, types 8:45 am, and saves.
- She'd rather read it on her phone. She opens Edit again, ticks Email me the answer too, keeps her sign-in address, and saves. From the next morning, the 8:45 update is in her inbox as well.
Rahul doesn't wait for an answer to save: in the chat's menu he taps New routine, types "How many orders did I place this week?", picks Fridays at 6:00 pm, ticks Email me the answer too with his Gmail address, and saves. Sarthi emails that address a confirm link; once he opens it and presses Yes, email me, the answers come there every Friday.
Switch it on
- Open the role in Roles. Routines need a role that works on the Logged-in panel (under Works on).
- In the Routines card, turn the switch on. Email the answers too, just below it, is on by default: turn it off if you don't want Sarthi to email your customers.
- Publish the role. Like every role change, it reaches customers when the role is published.
From then on, signed-in customers chatting with that role can type a routine with New routine in the chat's menu, and see Ask me this every day under an answer to a question. After a look-up they confirmed ("Shall I look it up?" → yes), it offers the question they asked, not their "yes". It isn't offered while Sarthi is still asking for a detail or a confirmation.
What the customer sees
| Where | What |
|---|---|
| Under an answer | Ask me this every day opens a small card: the question (they can reword it), the time (9:00 am to start with), the days, and Email me the answer too. See Picking the time and days. |
| Menu (⋮) → New routine, or + New routine in Routines | The same card with an empty question: they type what Sarthi should ask. |
| On the chat bubble | A count of the new answers waiting, when the chat is closed. |
| In the chat, above the message box | One card per new answer: Your 9:00 am update, the question and the answer. Once shown, it counts as seen. |
| Menu (⋮) → Routines | Each routine with its schedule ("Weekdays at 9:15 am"), where its email goes ("Emails priya@gmail.com"), its last answer, and Refresh now, Edit, Pause / Resume and Delete. |
| Edit | The same card as when saving, filled in: they change the question, the time, the days or the email, and save. The next update follows the new schedule. |
| Their inbox | Each scheduled answer, when they ticked Email me the answer too. See The answer by email. |
Refresh now asks the question again on the spot and shows the answer, up to 3 times a day per routine.
Picking the time and days
The save card and the Edit card use the same picker:
- The time can be any minute: they type it in the time field (9:15 am, 7:40 pm), or tap a quick time: 8:00 am, 9:00 am, 1:00 pm or 6:00 pm.
- The days: Every day, Weekdays (Monday to Friday), or they tap the days themselves (M T W T F S S) for any mix. At least one day.
A line under the picker reads the choice back, so they can check it before saving:
| Days picked | It reads |
|---|---|
| All seven | Every day at 9:00 am |
| Monday to Friday | Weekdays at 9:00 am |
| Saturday and Sunday | Weekends at 9:00 am |
| One day | Mondays at 9:00 am |
| Three or more in a row | Mon–Thu at 9:00 am |
| Any other mix | Mon, Wed, Fri at 9:00 am |
The time is their own: the widget uses their device's time zone (India time if the device doesn't say), also when they edit a routine.
The answer by email
When a customer ticks Email me the answer too, each scheduled answer goes to their email as well as the chat. Gmail or any other address works.
- Their sign-in address works at once. The field starts with the email your website signed them in with (the
emailin the token you sign), and no confirm step is needed: your server vouches for it. - Any other address is confirmed first. Sarthi emails it a confirm link, valid for 3 days; the subject starts "Confirm your routine emails from", followed by your business's name. Nothing else goes to that address until they open it and press Yes, email me. Until then, Routines shows "Waiting for you to confirm …" with Send again. This way nobody can use your chat to email a stranger. Once confirmed, the address works for all their routines.
- What the email says: your business's name and "your 9:00 am update" in the subject, their question, the answer (bold, lists and links as in the chat) and Open the chat, a button to your website. It says it was sent by Sarthi for your business.
- Only scheduled answers. Refresh now sends nothing, because the answer is already on screen. A run that fails or is skipped sends nothing either.
- Stopping. Every email has Stop these emails: one press stops routine emails to that address for all their routines. The routines keep running in the chat. In the chat, unticking the box in Edit stops it for one routine.
- When a routine pauses by itself, because they were away too long or it failed 3 times, they get one short email saying why and how to restart it.
- Away for longer. Someone who reads the answers by email may not open the chat for weeks, so with a confirmed address a routine pauses for being away after 90 days instead of 30.
The links in these emails open a small page with one button, so the email checks some companies run on links can't confirm or stop anything by themselves.
How a run works
A run is one normal reply in its own conversation, as the person who saved the routine:
- the same role as the chat it was saved from, with its knowledge, guardrails and tone;
- their data only: database answers use their signed-in id, exactly as in a live chat;
- the conversation ends as soon as the answer is written.
When the question needs your database, the run looks it up:
- Safe mode templates run as usual.
- In Full mode, Sarthi writes the query fresh on every run, so "today" means the day of the run. It runs without the usual "Shall I look it up?", because saving the routine was the customer's yes. The rules are the same as in the chat: read-only, only that customer's rows, your limits, and every query in Databases → Query log. The answer says in a few words what was looked up.
Nobody is there to reply, so a run never brings in a person, runs actions, books times or offers quick replies.
When a routine pauses by itself
| Shown as | Why | It comes back |
|---|---|---|
| Paused | The customer pressed Pause. | When they press Resume. |
| Paused while you were away | They haven't opened the chat for 30 days (90 days when they get the answers by email). No credits are spent meanwhile. | By itself, the next time they open the chat. |
| Paused: not available right now | The role was unpublished, no longer works on the Logged-in panel, or has Routines off. | By itself, when they open the chat and the role takes routines again. |
| Paused: it couldn't be answered 3 times | 3 runs in a row failed. | When they press Resume, or Refresh now works. |
A run stopped by a credit cap is skipped, not failed: it doesn't count towards the three.
Credits and your team's view
- A run costs what the same reply costs in a live chat. There is no extra fee.
- Every run is a conversation in Conversations, marked Routine, with the customer as the person. The Kind filter shows chats only, routines only, or both. The conversation page says which routine it answered.
Limits
| Routines per customer | 5 (paused ones count) |
| A question | 2 to 300 characters |
| Time | Any minute of the day, in the customer's time zone |
| Days | Any days, at least one |
| Refresh now | 3 times a day per routine (by the India day) |
| Answers kept | The 30 newest per routine |
| Paused when away | After 30 days without opening the chat, 90 with the answers by email |
| Confirm emails | 3 an hour per customer, 5 a day per address; each link works for 3 days |
Data
- A routine keeps the customer's signed-in details (name, email, plan, attributes) so it can run while they are away. They are refreshed each time the customer opens the chat.
- Each run keeps its answer; only the 30 newest per routine are kept. Run conversations follow your chat retention, like any chat.
- With Email me the answer too, the routine keeps the address, and each emailed answer then lives in that inbox.
- Delete my data also deletes that customer's routines and their answers, and takes that email address off any routine that emails it.
- When a customer deletes a routine, its past conversations stay in Conversations.