Add the voice agent to your website
Copy one line of code from the Install tab and paste it into every page of your site.
You need two things: the code on your pages, and your website on the agent’s Allowed websites list. Do the list first, or the code won’t run.
Copy the code
- Open your agent and go to the Install tab.
- Under Allowed websites, add your domain and choose Save changes. More about allowed websites.
- In the code box, choose Copy code.
The code is one line that looks like this, with your agent’s own key:
<script src="https://api.audiont.com/v1/widget.js" data-key="pk_live_…" async></script>
Paste it into your website
Paste it just before </body> on every page where visitors should see the agent (inside <head> works too). Most website builders have a site-wide “custom code” or “footer code” setting: use that, so it’s on every page at once.
Then publish your site. A draft or preview that isn’t published won’t show it.
Don’t paste it into an “embed” or “HTML block” that puts it inside a frame. The agent can’t run inside a frame, and your browser console will say so. Use the site-wide custom code setting instead.
The Install tab also has Install it on your platform, with steps for WordPress, Shopify, Wix, Squarespace, Webflow, Google Tag Manager, React and Next.js, Vue and Nuxt, Angular and others. Each guide says whether Audiont has tested it. Which platforms are tested.
Check it works
Open your published site in a normal browser window. The voice button should appear, usually in a corner. The Install tab’s status changes to Installed, not yet verified once a page loads the code, and Verified and active after a conversation there.
Not there? The voice button doesn’t appear.
Removing it
Delete the line from your website. That stops it showing there. To stop it everywhere at once, use Pause on the agent instead.
Show technical details
- The code loads asynchronously and needs no inline scripts or styles.
- If your site sends a Content Security Policy, allow Audiont’s server (the start of the
srcaddress above) for scripts and connections. - You can also pass the key as
data-p-key, or as?key=in the script address.