Troubleshooting

Common symptoms, their likely cause and how to fix them.

SymptomLikely causeFix
Widget never mounts; console shows [ChatbotWidget] Invalid configurationaccessToken is missing/empty, or corpusIds is missing/emptyBoth are required — pass a non-empty accessToken and a corpusIds array with at least one id.
Widget loads but no history / messages failMissing or invalid accessToken (API returns 401)Provide a valid, non-expired access token.
ChatbotWidget is not definedThe script tag hasn't loaded before your mountChatbotWidget callPlace your inline script after the CDN <script> tag, or wait for DOMContentLoaded.
Nothing appearsThe target element doesn't exist yetEnsure the container (e.g. #verbatim-chatbot) is in the DOM before mounting.
Widget looks unstyledStyle isolation is off and the stylesheet isn't loadedAdd the index.css link, or remove isolateStyles: false to use the default Shadow DOM styling.
Answers ignore your documentsWrong or missing corpusIdsPass the correct corpus IDs for your account.
Every question fails after you set agentIdThe agent id is not one of your organization's agentsCheck it against GET /v1/agent/, or remove agentId to use the default agent.
agentId seems ignored; console shows [ChatbotWidget] "agentId" must be a non-empty stringThe value is empty, blank, or not a string — often a template that rendered emptyPass the agent id as a non-empty string, or omit the option entirely.
Answers changed style or quality after a deployThe widget now points at a different agentConfirm which agentId is in the snippet; omitting it uses your organization's default agent.
Custom trigger doesn't open the widgetopenTriggerId doesn't match an element idMake sure the id exists and matches exactly.

Need an access token, corpus IDs or agent IDs? Contact your Verbatim administrator.


Did this page help you?