Go live: install your agent on your site
You put your agent on your site by pasting one line of code before the closing </body> tag, or by sending that line to your developer. The same line works on Shopify, WordPress, React or any HTML site. AskVault marks the widget live once it has answered a real visitor on your domain.
You can also share your agent without touching your site, using the hosted chat page.
Before you start
- An agent you have tested. See check what your agent learned.
- Access to your site's theme, footer or custom code setting, or a developer who has it.
- A confirmed email address. The developer link works only after you confirm it.
Your install line
The line looks like this, with your own token in place of YOUR_TOKEN:
<script src="https://api.askvault.co/widget.js" data-token="YOUR_TOKEN" async></script>Copy it from the dashboard rather than typing it, because your copy carries your token and your look settings.
Steps
-
After the Customize agent phase of onboarding, AskVault opens the Channels page. At any other time, open Channels & Apps in the sidebar, under Reach & results, then Channels.
-
Open the website widget and copy the install line. On Shopify, open Online Store › Themes › Edit code ›
theme.liquidand paste it before</body>. On WordPress, add it to your footer or use a custom HTML block. -
To hand this to someone else, find Share with your developer on the same page and click Get a share link for your developer. The link opens the install line on its own page, needs no AskVault account and works for 7 days. If you have more than one widget, the link installs the newest one. For 10 minutes after your developer opens the page, it shows when the widget answers its first chat. Each new link replaces the one you sent before, which then stops working.
-
Open your site and ask the widget a question. The widget page then shows it as live.
-
Open Channels in the sidebar, then Web widget.
-
Copy the install line. The page can also show it for other site builders.
-
Paste it just before
</body>on every page where the chat should show, then publish. On Shopify, open Online Store › Themes › Edit code ›theme.liquid. On WordPress, add it to your footer or use a custom HTML block. On a React app, put it inindex.html. -
Open your site and ask the widget a question. The Web widget page then shows it as live.
-
To hand this to someone else, find Share with your developer on the same page and click Get a share link for your developer. The link opens the install line on its own page, needs no AskVault account and works for 7 days. For 10 minutes after your developer opens the page, it shows when the widget answers its first chat. Each new link replaces the one you sent before, which then stops working.
Check it worked
The dashboard changes from waiting to live after your agent answers a question on your site. A line such as "Your agent answered its first question on your domain" confirms it. If you also set up a hosted chat page, its test link works at once with nothing to install.
If it doesn't work
The widget does not show. The line is in the wrong place or blocked by your site's content security policy. Open your browser's developer tools and look for errors that mention widget.js.
It shows but does not answer. The widget answers only on the addresses your widget settings allow, so nobody can copy your snippet onto another site and spend your credits. Add your live domain, with and without www, and try again.
You changed your Shopify theme and the chat vanished. A line pasted into one theme file belongs to that theme. Paste it again after you publish a different theme or update the theme.
The developer link says to confirm your email. Confirm the email we sent you. You can still email the line to your developer in the meantime.
Two widgets overlap. Remove the old script, or split them across pages while you compare.