Skip to main content

Ask your data

Your AI roles already answer each signed-in customer from their own rows (Your database). Ask your data is for your own team: owners and admins type a question about all your customers' records, in plain words, and get the list in seconds.

  • "Customers who signed up but never ordered"
  • "How many orders per status"
  • "Shipments that are shipped but not delivered"
  • "Customers who rated us below 4 stars"

Sarthi's AI turns the question into one read-only query from your data map. It never sees a single record, before or after. You see what it understood and exactly what will run, and nothing runs until you press Run, or a routine you set up runs it.

Who can use it​

WhoCan they?
Owners and adminsYes: ask, run, download, save questions, put them on routines, and choose what the team sees unmasked
Editors, agents and viewersNo: they don't see the tab, and Routines shows greyed in their menu, with a lock and Owners and admins only
Sarthi's support staff (a support pass)Never, not even to look

Ask your data is part of every plan that includes database connections. Each database has its own Ask your data tab and its own switch. It works the same way on PostgreSQL, MySQL, SQL Server and MongoDB (where tables are collections and columns are fields).

Switch it on​

It is off for every database until an owner or admin switches it on:

  1. Knowledge → Databases → your database → Overview.
  2. Under Team questions, switch on Team can ask questions.
  3. Press Save.

The Ask your data tab also offers a Switch it on button while it is off. Chats with your visitors don't change in any way.

Two more settings sit next to the switch:

SettingWhat it doesRange (usual)
Rows per answerAt most this many rows come back for one question. When there are more, the answer says so.1 to 5,000 (1,000)
Time a team query may take (ms)A question that takes longer is stopped, so a heavy question can't slow your database down. 1,000 ms is one second.1,000 to 30,000, in steps of 500 (10,000)

Ask a question​

Open the Ask your data tab and type your question, or tap one of the example questions made from your own tables. Press Ask (or Enter). Questions can be up to 500 characters.

Sarthi shows the plan:

  1. What it understood, in one line, in big letters: "Every customer who signed up but has no order yet, by name". Read this first.
  2. What will run (press to open): the exact query Sarthi will run for all your customers, after its checks: only the tables and fields in your data map, read-only, with your row limit. A second button shows the AI's draft, as it wrote it.
  3. Run and Change it.

When a question asks for something your data can't measure exactly ("orders cancelled at the very last second", "our best customers"), Sarthi doesn't make up a rule or give up: it reads the question the closest plain way your data allows and says so in that first line, like "All cancelled orders, newest first (no last-second marker in the data)". If that isn't what you meant, press Change it.

If the plan can't run, it says why in plain words (for example "Masked values can't be used to filter, sort or compare: invoices.gstin") and nothing is charged for a run.

Change it​

If the first line isn't what you meant, press Change it and say what's wrong: "Only the ones on the road, not just booked". The AI writes a new plan. You can change a question up to 3 times; after that, ask it again in new words.

Run​

Press Run. Sarthi checks the plan once more against today's data map, then reads your database (read-only) and shows:

  • how many rows match ("23 rows", or "2,34,567 rows match · showing rows 1–1,000"), and how long it took;
  • the rows in a table, 50 at a time, that you can search and sort (see Big answers).

If someone changed the data map between your question and your Run (a table, a field or a mask), Sarthi doesn't run the old plan. It checks the question again and shows the new plan with: "The data map changed since you asked, so Sarthi checked again. Look over the new plan and run it."

Big answers​

A question like "All customers in Maharashtra" can match thousands or lakhs of rows. Sarthi keeps the page quick and still lets you reach all of them.

How many rows match​

The line under The answer says how many rows match in your whole database:

You seeWhat it means
"23 rows"That's the whole answer: every row is on your screen.
"2,34,567 rows match · showing rows 1–1,000"Sarthi counted them all. The first batch is loaded.
"More than 1,000 rows match · showing rows 1–1,000"There are more, but counting them took too long, so Sarthi skipped the count. Everything else works the same.

Numbers use Indian digit grouping (1,00,000 is one lakh). The History shows the counted total too.

50 rows at a time​

The table shows 50 rows at a time: Rows 1–50 of 1,000 loaded. Press Next and Previous to move through the loaded rows. This doesn't ask your database again and costs nothing.

Search the loaded rows​

Type in the search box (Mumbai, a name, part of a phone number). After a short pause the table shows only the rows that contain it, in any column, upper or lower case. It looks at the rows loaded on your screen, not your whole database, so it is instant and free.

When there are more rows than are loaded, a button appears: "Search all 2,34,567 rows for 'Mumbai'". It asks your database instead: it opens Change it with your words filled in (Only rows where any of these fields contains "Mumbai": name, city, phone). Press Write a new plan, look it over, then press Run. It uses one of the 3 changes of the question. Masked fields are left out of that list, because they can't be used to filter.

Sort​

Tap a column name to sort the loaded rows: smallest first (A to Z, oldest first), tap again for largest first, and once more for the order your database sent. Numbers and dates sort as numbers and dates, so 9 comes before 10 and 2 October before 15 October. Empty values go last.

Batches​

The rows come in batches of your Rows per answer (1,000 by default). Under the download buttons you see "Batch 1 of 235" with Previous 1,000 and Load next 1,000:

  • Load next shows the next batch in place of this one (rows 1,001–2,000), so the page stays quick.
  • Each batch reads your database again: it is a run, costs 1 credit and counts towards the 300 runs a day.
  • Sarthi loads up to 200 batches of a question. For more, ask a narrower question.

Ask for a summary instead​

From 10,000 rows, the answer shows an amber hint with up to three summary questions made from your columns, like "How many customers per city" or "How many orders per status". Reading lakhs of rows one by one is slow; a count per group often answers the real question in a few lines. Tap one to put it in the question box, then press Ask.

Download the rows (CSV)​

There are two downloads:

ButtonWhat you get
Download CSV ("these 1,000 rows" when there are more)The rows loaded on your screen now, made in your browser. Free.
Download all (23,456 rows)Shown when more rows match than are loaded. Sarthi reads your database once more and sends you one file with every row (up to 50,000 and 40 MB). Masks apply exactly as on screen. It costs 1 credit; up to 20 files an hour per person.
Part 1, Part 2, Part 3…Shown instead when more than 50,000 rows match: one file per 50,000 rows. Each part costs 1 credit.

Big answers come in parts​

When more than 50,000 rows match, Download all becomes one button per part, so no single download asks your database for lakhs of rows at once. For "1,00,003 rows match" you see:

  • Part 1 (rows 1–50,000)
  • Part 2 (rows 50,001–1,00,000)
  • Part 3 (rows 1,00,001–1,00,003)

Press each one; a tick shows the parts you already have. The files are named acme_ops-2026-10-22-1745.csv, …-part-2.csv, …-part-3.csv, and together they hold every row. Parts go up to 20 (10 lakh rows); for more, ask one city, one month or one status at a time.

Each part reads your database again, so ask for an order ("sorted by customer id") when the parts must line up exactly: without one, a database may return rows in a different order each time.

If Sarthi doesn't know how many rows match, you see Part 1 first, and the next part appears once a part turns out to be full.

Both files are named after the database and the time, like acme_ops-2026-10-21-1745.csv. They open in Excel or Google Sheets, with ₹ and names in any language shown correctly.

Text that a spreadsheet would treat as a formula (starting with =, +, - or @) gets a ' in front, so a value in your database can never run as a formula on your computer. Phone numbers like +919810012345 stay as they are.

Sarthi notes that a download happened and how many rows, never the rows themselves.

Saved questions​

Press Save this question after a run and give it a name ("Signed up, never ordered"). It appears under Saved questions, ready to Run in one click whenever you need it. To have Sarthi run it for you, every Monday or every morning, press Put it on a routine (see Routines).

  • A saved question keeps the question and its plan, not the rows. Only a routine keeps rows: a small, encrypted copy of its latest answers, for a short time (see What a routine keeps).
  • Every run checks the plan against today's data map first.
  • If the data map changed so much that the plan no longer fits (say a table was taken out), or the plan uses something Sarthi's checks no longer allow (what they refuse), the saved question says "Needs a refresh" and won't run, and its routine pauses. Press Ask again: Sarthi asks the question again and, if the new plan passes the checks, keeps it, and the routine starts again.
  • Rename and Delete are next to each one. Deleting a saved question also deletes its routine. Up to 50 saved questions per database; names are up to 80 characters and must be different from each other.
  • A saved question on a routine shows its schedule (On a routine: Weekdays at 9:15 am) with a link to the Routines page.

Saved questions are only for your team. They never reach chats with your visitors.

Routines​

Some questions are worth asking every morning: "How many orders per status", "Shipments that are shipped but not delivered". Put a saved question on a routine, and Sarthi runs it for you at the time and on the days you pick. The answer waits on the Routines page (under Work), with the rows and a CSV.

Routines here are for your team: only owners and admins make them and see them, as with the rest of Ask your data. They are not the routines your signed-in customers save in the chat.

Make a routine​

On the Routines page, press New routine:

  1. Pick the database and type the question.
  2. Press Check it. Sarthi shows the plan, as in Ask a question: what it understood and what will run.
  3. Give it a name, and pick the time and the days.
  4. Press Create routine. This saves the question under Saved questions and puts it on the routine.

Already saved the question? Start From a saved question on the Routines page, or press Put it on a routine next to it in Saved questions.

The time can be any minute: type it (9:15 am) or tap a quick time (8:00 am, 9:00 am, 1:00 pm, 6:00 pm). The days are Every day, Weekdays, or the days you tap (M T W T F S S). A line reads your choice back, like "Weekdays at 9:15 am". It's the same picker your customers use for their routines. The routine runs in your browser's time zone (India time for most teams).

Each saved question can have one routine, and a workspace up to 20.

What happens at its time​

  1. Sarthi checks that the routine's owner (whoever created it, or last switched it back on) is still an owner or admin.
  2. It checks the saved plan against today's data map, as every saved question run does.
  3. It runs the plan on your database, read-only, with your row limit and time limit, and keeps the answer for the Routines page.

No AI is called. Sarthi doesn't write a new query: it runs the plan you checked and saved. Saving the routine is your standing yes, as if you pressed Run at that time yourself.

Each run costs 1 credit, like Run (a run that fails or is skipped costs nothing), and counts towards the workspace's 300 runs a day. It is in the History and the Query log like any team question, asked by the routine's owner. Routines on the same database run one after another.

Dates​

Sarthi's AI is told to write dates relative to today ("the last 7 days", "yesterday"), so a saved question stays right on later days. A question that names a date ("orders on 2 November") keeps that date, and so does its routine: it reads the same days on every run. When a routine's plan has a fixed date like this, the console warns you. For a moving window, ask with "yesterday" or "this week" instead.

The Routines page​

One card per routine:

  • its name, the database and the schedule ("Weekdays at 9:15 am"), and when the next answer comes, or why it is paused, with the fix;
  • the latest answer: the summary ("Orders counted by status: 4 rows"), the rows in a table, Download CSV, and Open in Ask your data for the whole answer;
  • Run now (up to 5 times a day per routine), Edit (the time and the days), a switch to pause it and switch it back on, Delete (the saved question stays), and History (its 30 newest runs).

A new answer shows New on its card, and the console's Routines link counts the routines that have one. Seeing it on the page marks it seen, for the whole team.

Email the answer​

When you make or edit a routine, tick who should get its answers by email under Email the answer. You are ticked to start with, and only owners and admins can be on the list. After each scheduled run, everyone on the list gets an email:

  • Subject: "Your 9:15 am update: Orders per status".
  • In the email: the question, the database, the summary, and the first 20 rows as a table.
  • Attached: a CSV with every row the routine kept (up to 200).
  • A button opens the routine in Sarthi.

The rows are masked exactly as your team sees them in Sarthi. Run now never sends an email: you are looking at the answer already. If a routine pauses by itself, the people on its list get a short email saying why, so it never goes quiet unnoticed. Someone who stops being an owner or admin stops getting the emails. Leave everyone unticked for no emails.

When a routine pauses by itself​

WhyWhat to do
The saved question needs a refresh: the data map (or Sarthi's checks) changed and its plan no longer passes the checks.Press Ask again on the saved question. Once the new plan is kept, the routine starts again by itself.
Team questions are off for this database: Team can ask questions was switched off, or your plan no longer includes database connections.Switch team questions back on (Overview), or move to a plan with database connections, then switch the routine back on.
Its owner is no longer an owner or admin.Any owner or admin can switch it back on, and it then runs for them.
3 runs in a row failed.Open its History to see what went wrong (the database took too long, or couldn't be reached), fix that, then switch it back on.

Whoever switches a routine back on becomes its owner. A paused routine spends nothing.

A run is skipped, not failed, when the database isn't active, the workspace is paused, or the workspace has used its 300 runs for the day. A skipped run costs nothing and doesn't count towards the three failures; the routine tries again at its next time.

What a routine keeps​

So your team can read an answer later, a routine keeps more than the rest of Ask your data:

  • For every run: the status, the summary, how many rows, the credits and when, the same facts the History keeps for every team question.
  • A snapshot of the answer: the run's first 200 rows (fewer if they pass 128 KB) with their columns, encrypted, and masked exactly as Run shows them (your masks and Team sees it).

The snapshot:

  • is kept for the 7 newest runs of each routine, and 14 days at most, then wiped;
  • is wiped at once when anyone saves the database's data map, isn't shown while team questions are off, and is deleted with its routine;
  • is only for owners and admins, is never sent to an AI or a webhook, and goes by email only to the owners and admins you put on the routine's email list (above).

A run whose rows are gone still shows its summary: press Run now or Open in Ask your data for fresh rows. Deleting a database also deletes its routines.

History​

Every question asked on this database is in the History: who asked it, the question, what happened and how many rows (the counted total, like "2,34,567 rows", when Sarthi counted them). Each batch you load is its own line, and so is each routine run, asked by the routine's owner. Open one to see its plan again and press Run again (the History never keeps rows, so they are read again).

The Query log tab also lists team questions, routine runs included: filter by Team question to see who asked what, and what ran.

Masks and "Team sees it"​

Your data map's masks still apply to your team:

  • A masked field (Last 4, Hide all, Hash) is shown masked in the answers, as it is: it can't be used in a calculation (like count(phone)) or to filter, sort, group or join. Otherwise someone could guess the hidden value, one letter at a time, from which rows come back or whether the question fails.
  • A Never read field is never read, for anyone.

When your team should see a masked field in full, an owner or admin turns on Team sees it for that field in the Data map (it appears under the mask of every masked field), then saves the data map. From then on, people asking questions in Ask your data see it in full and can filter on it. Chats with visitors still see it masked. "Never read" fields can't be shown to the team.

Example: turn on Team sees it for customers.email so the team can download a list of emails of customers who never ordered.

Safety, in plain words​

  • The AI never sees your records. It gets your data map (tables, allowed fields, notes) and writes one query. The rows come to your screen, never to the AI, and a routine's runs call no AI at all.
  • Nothing runs until you press Run, or a routine you set up runs it, and every run checks the plan again first. When you press Run, what runs is exactly the plan you saw; a routine runs the plan you checked and saved.
  • Only what your data map allows. Only the tables and fields you ticked; "Never read" fields never come back.
  • Read-only, small and quick. One read-only query, with the connection's proven read-only user, stopped after your time limit, at most your row limit (and 2 MB) per batch. From the console, one team question runs at a time per database, and a database's routines run one after another. Counting the rows and Download all are their own read-only queries, one after the other, with the same time limit. Your visitors' chats keep their own connections, so a slow team question never slows them down.
  • Rows are never stored in the History, the Query log or the audit log. Only a routine keeps rows: the first 200 rows of its newest answers, masked and encrypted, for 14 days at most (see What a routine keeps).

What is logged​

WhatWhereWhat it keeps
Each question, change and runHistory, Query logWho asked, the question, what Sarthi understood, the query, the status, the row count and the time taken. Never the rows.
Each routine runThe routine's History, the History, the Query logThe same as any run, asked by the routine's owner. The rows only in the routine's encrypted snapshot (What a routine keeps).
Each CSV download in Ask your data (Download CSV, Download all and each part)Audit logWho downloaded, how many rows, which part, and whether more rows follow
Saved questions created, renamed, refreshed or deletedAudit logThe name and who did it
"Team sees it" changesAudit log (data map saved)Which fields

Limits and costs​

Questions (asking and Change it)60 an hour per person
Runs (plans, saved questions, routines, each batch and each Download all or part)300 a day per workspace
Change it3 times per question
Rows per batchyour setting (Rows per answer), 1 to 5,000 (1,000 by default); at most 2 MB
Batchesup to 200 per question
Download allup to 50,000 rows and 40 MB per file, up to 20 parts (10 lakh rows); 20 files an hour per person
Time per runyour setting, 1 to 30 seconds (10 by default)
Saved questions50 per database
Routines20 per workspace, one per saved question
Run now (a routine)5 times a day per routine (by the India day)
A routine's Historyits 30 newest runs
A routine's snapshotthe first 200 rows (at most 128 KB) of each of its 7 newest runs, 14 days at most
Question / change500 / 300 characters
Costthe AI's writing, like Full mode; plus 1 credit per run (each batch, each Download all, each part and each routine run is a run). Search, sort and the 50-row screens are free. A plan that can't run and a run that fails cost nothing.

Troubleshooting​

What you seeWhat to do
The tab isn't thereOnly owners and admins see it. Ask an owner to change your role, or to ask for you.
"Ask your data is off for this database"Press Switch it on, or switch on Team can ask questions on Overview and press Save.
"Choose what Sarthi may read first (Data map), then ask"Tick the tables and fields Sarthi may read in the Data map and save it.
"This database is suspended / failing / off: fix it on Overview first"Fix the connection on Overview (test it, change the password). The history and saved questions stay readable meanwhile, and routines skip their runs.
"Masked values can't be used to filter, sort or compare: …"Ask without filtering on that field, or have an owner turn on Team sees it for it on the Data map.
"Masked values can only be shown as they are, not used in a calculation: …"Ask for that field as it is, without counting or changing it, or have an owner turn on Team sees it for it on the Data map.
"The database took longer than 10 seconds, so Sarthi stopped it"Narrow the question (a date range, a status), or raise Time a team query may take on Overview.
"More than 1,000 rows match" (no exact number)Counting took longer than the time limit, so Sarthi skipped it. Load next still works. For the number, ask "How many …", or raise Time a team query may take.
The search box finds nothing, but the rows are in your databaseThe box only searches the rows loaded on your screen. Press Search all … rows for '…', then Write a new plan and Run.
"The parts cover the first 10,00,000 of … rows"Parts stop at 20 (10 lakh rows). Ask a narrower question (one city, one month) for the rest.
"Downloaded part 2: 50,000 rows", but I want one fileEach file holds up to 50,000 rows. Open the parts one after the other in Excel or Google Sheets, or ask a narrower question.
A part has fewer rows than 50,000 though more followThat part hit 40 MB. Leave out long columns you don't need.
There's no Download all buttonIt shows only when more rows match than are loaded. Download CSV already has every row.
"This is the last batch Sarthi can load"Sarthi loads up to 200 batches of a question. Ask a narrower question for the rest.
The Search all button is greyed outThe question was already changed 3 times. Ask it again in new words, with the filter in it.
"That's a lot of requests in a short time" after Download allYou downloaded 20 files this hour. Wait the time shown.
"First 1,000 rows. Narrow the question to see the rest."Add a filter to the question, or raise Rows per answer (up to 5,000).
"The data map changed since you asked…"Someone changed the data map. Look over the new plan and press Run.
"This question was changed 3 times"Ask it again in new words.
A saved question says "Needs a refresh"Press Ask again. If the new plan can't run, change it, then keep it for the saved question.
"That's a lot of requests in a short time"You reached 60 questions this hour (or the workspace reached 300 runs today). Wait the time shown.
"Full mode needs a model that writes SQL"The AI model that writes queries isn't set up yet: contact Sarthi support. Saved questions, Run and routines still work.
There's no Routines pageOnly owners and admins see it.
A routine is pausedIts card says why and what to do; see When a routine pauses by itself.
You can't add another routineA workspace has up to 20. Delete one nobody reads any more.
Run now doesn't runIt works up to 5 times a day per routine, and not while that routine is already running. Wait, or open it in Ask your data and press Run there.
A routine shows the same days' rows every timeIts plan has a fixed date. Ask the question again without the date ("yesterday", "this week"), save it, and put that one on a routine instead.
An older run shows no rowsRows are kept for the 7 newest runs, 14 days at most, and are wiped when the data map is saved. Press Run now for fresh rows.