Skip to main content

Troubleshooting

The bubble doesn't appear​

  1. Is the script on the page? View the page source and look for widget/v1.js. On site builders, you may need to publish after adding code.
  2. Does the script load? Open the browser's developer tools → Network, reload, find v1.js. A 404 with "WIDGET_NOT_BUILT" or a connection error means the address is wrong: use the snippet from Widget & SDK, not a copy from elsewhere.
  3. Blocked by CSP? The console tab shows "Refused to load the script". Allow the host; see CSP.
  4. Blocked by a tag manager's consent gate or a "delay JavaScript" plugin: the bubble appears only after consent or interaction. Exclude widget/v1.js if that's not what you want.
  5. Ad blockers rarely block it (it's served from Sarthi's API host, not an ad domain). Try a private window.

The bubble shows, but a message instead of the greeting​

The visitor seesWhat it meansFix
Chat isn't set up on this website yet.The site key isn't known.Copy the snippet again from Widget & SDK.
Chat isn't available on this website.The page's address isn't in Allowed websites.Add it exactly as the browser shows it (https://www.… and https://… are different). For local testing add http://localhost:<port>.
Chat is switched off right now.The workspace's chat is off (Configuration → Web chat), or it ran out of credits.Switch it on, or top up.
We couldn't confirm your login. Please refresh the page and try again.The token was refused.Test a token in Widget & SDK tells you why. See Testing tokens.
Please refresh the page to start a new chat.A single endUserToken was already used.Use getEndUserToken.
Too many chats were started from here. Please try again in a minute.The visitor's address started many chats quickly.Wait a minute; it's a protection, not a fault.
Sorry, I can't answer right now.No AI model could answer (a provider outage). The chat is handed to the team.Check the console's status banner; nothing to fix on your side.

A signed-in visitor still gets the form​

  • The page loaded the snippet with data-site-key and called init: the first start wins and is anonymous. Remove data-site-key when you call init yourself.
  • getEndUserToken threw or returned nothing (a 401 from your route because the session cookie wasn't sent: add credentials: 'same-origin').
  • The token is invalid: Test a token.

The assistant doesn't use my knowledge​

  • The source isn't live yet (a first reading waits for your approval), or its context is signed-in and the visitor isn't.
  • The role's brief says it may not discuss the topic, or a guardrail blocks it: the turn's reasons in Conversations say which.
  • The passage exists but a better-looking one wins: add a short, precise text source for that question.

Publishing says checks couldn’t run, didn’t apply, or need fixing​

When you publish a role or the front desk, Sarthi first tries your changes in a few short test conversations: your own checks (from Evals) and Sarthi’s standard checks. The result can have up to four groups.

You seeWhat it meansWhat to do
Not published: 1 check needs fixingA check that stops publishing didn’t pass. You see what it expected and what the assistant replied. Example: "Failed: a handoff should start (it asked the team instead)": the role asks the team when a visitor wants a person, but the check expects it to hand the chat over.Change the role so it passes, then click Publish again. See the run shows every check.
Worth a lookA check that only warns didn’t pass.Nothing is stopped. Fix it when you can.
3 checks couldn’t runSarthi’s AI service was busy (too many requests at once), or the time for checks ran out. It says nothing about your setup.Publish again in a minute. If the version went live anyway, run the checks later from Evals.
2 of Sarthi’s standard checks didn’t applySarthi’s standard checks are written for any assistant. Some ask about things outside this role’s job, and the role rightly passed them to a person. Example: a hiring assistant asked "Is delivery free in Delhi?" hands it to your team.Nothing to fix.
  • Only Needs fixing stops a publish. Checks that couldn’t run or didn’t apply never do.
  • Your own checks always count. If you wrote a check for this role and the role passes that question to a person, the check still fails: change the check, or the role’s brief.
  • The result doesn’t depend on the time of day: the checks run as if your team is online.
  • Think one of Sarthi’s standard checks is wrong for your business? Email the Sarthi team with the role’s name and the check’s name.
MessageFix
Google didn’t share this file with SarthiIn Drive: Share → General access → Anyone with the link (Viewer). Then Read again now. A file in a shared drive may also need the drive's sharing settings to allow links.
This is a folder linkAdd each file in the folder as its own source.
… can’t be readSarthi reads PDF, Word, text and CSV files and Google Docs, Sheets and Slides. Save other files (images, .xlsx, .pptx) as a PDF or Google file and share that.
The file is larger than 25 MBSplit it, or share only the part that matters.
A Sheet answers from the wrong tabThe link names the tab that was open when you copied it (#gid=…). Open the right tab, copy the link again and change it in the source's Settings.

The database won't connect​

MessageFix
This user can change dataCreate a read-only user with the SQL shown (it lists exactly which privileges to remove).
The host could not be found / refused the connection / did not answer in timeCheck the host and port, and allow Sarthi's addresses (on the connection page) in your firewall or Atlas Network Access.
… is a private or internal network addressSarthi can only reach databases on the public internet, over TLS.
The database refused this user name or passwordCheck both; for MongoDB, that the user was created in the right database (authSource).
The secure (TLS) connection failedUse "Require encryption" if the server's certificate is self-signed; "Verify" needs a certificate for the host name.
Access control is off (MongoDB)Start MongoDB with authentication enabled; without it, roles mean nothing.

A connection marked failing recovers on its own when queries succeed again, or after a passing Test the connection. Sarthi also tests it again by itself, about 20 minutes after it started failing, then 40 and 80 minutes after that, then every 2 hours, and puts it back in use as soon as one passes.

A template won't switch on​

A template needs a passing test of its current version (within 30 days). Open Test, run it as a pretend customer, then Switch on. If the test says a column is missing, the query doesn't return a column named in "Columns the answer must have".

Webhooks don't arrive​

  • The delivery log on the destination shows every attempt and your response. No attempts at all: the event isn't selected for this destination, or nothing has happened yet (use Send a test).
  • A 401/403 from you: the signature check fails. Verify on the raw body and use the current secret (two signatures during a rotation).
  • Timeouts: respond within a few seconds and do the work afterwards.
  • The destination is paused (after repeated failures or a 410): resume it in the console.

WhatsApp doesn't answer​

  • WhatsApp chat enabled is off (Integrations → WhatsApp).
  • The number's status isn't active yet (it's being connected).
  • The message was a voice note or an image: only text is read for now.

The Staff assistant doesn't work in your CRM​

The employee seesFix
No tab on the edge of the pageCheck that the script is on the page and allowed by your CSP (script-src and connect-src), and that staffKey starts with wst_: the browser's console names the problem. See Install in your CRM.
"Sign in to your CRM to use the assistant."Your token route gave no token. Check that it answers with a token for a signed-in user, and that the page fetches it with credentials: 'same-origin'.
"Couldn't sign you in to the assistant (…). Ask your admin."Paste a token from your route into Set up → Test a staff token: it names the problem, often a missing aud: "saarthi-staff", the website's SDK secret instead of the staff secret, or a token used twice.
"Couldn't sign you in to the assistant (bad_signature)…" for everyone, all at onceThe staff secret was rotated and your CRM's server still signs with the old one: at once after Stop the old secret now (which also signed everyone out), or 24 hours after a plain rotation. Put the new staff secret on your CRM's server: people then sign in again by themselves.
"You're not on …'s staff list for the assistant."Add the person on People with the CRM user id your route sends, or press Add to the list on Activity → Recent refusals.
"The assistant isn't set up for this address. Ask your admin."Add the page's address, exactly as the browser shows it, under Set up → CRM websites. Removing an address signs out everyone there.

Every message the panel can show is explained in When sign-in fails.

I can't sign in​

  • Forgot your password? Click Forgot password? on the sign-in page. We email you a link that works once, for 30 minutes. See Your account.
  • No email? Check your spam folder and the spelling of the address, wait a few minutes, then ask again (up to 5 emails an hour). Use the newest email.
  • "This link has expired" or "This link was already used": ask for a new link. Each link works once, and only until the password changes.
  • Invited, but never signed up? You don't have a password yet. Open the invite email and create your account from its link, with the email the invite was sent to.
  • "You were signed out. Sign in again to continue." Your sign-in expired (it lasts a day), you signed out in another tab, or your password was changed or reset, which ends every other sign-in. Sign in again. If your password no longer works and you didn't change it, reset it now and tell your workspace owner.
  • Lost the phone with your authenticator app? A password reset doesn't turn off two-factor authentication. Email the Sarthi team from your account's email address and we'll help you get back in.

Still stuck​

Email the Sarthi team with the workspace name and, for widget problems, the page address and what the browser's console shows. The API answers at https://api.mysarthi.tech/health if you want to rule out a network problem.