Website integration overview

Put your Askocto agent on your own website with the embed script or an iframe, then add identity, events, custom actions and tracking.

Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.

Website integration is how your agent appears on your own pages. Start with the chat bubble, which needs one script tag. Then add the options you need: greetings, identity, events and actions that run in the browser.

The basics

Every setup begins with the embed script and the agent id:

<script src="https://cdn.askocto.co/embed.js" data-agent-id="agt_123" defer></script>

The script adds a launcher and a global window.askocto object that you can use from your own code.

Pages in this section

Install and display

Control and listen

Identity and tracking

Run code for the agent

Choosing between bubble and iframe

Use the bubble when help should be available on every page. Use the iframe when the chat belongs in one place, such as a support page. You can use both on the same site.

Something unclear or missing? Tell us and we will fix the page.