Add your agent to a Framer site

Install the Askocto chat widget on a Framer site with the embed script, publish the site and check the widget on your live pages.

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

This page shows how to add your agent's chat bubble to a site built in Framer. You paste one script into the site-wide code, publish, and the widget loads on every page.

Before you start

  • An agent with the Website widget turned on. See Channels.
  • Permission to edit and publish the Framer site.
  • Your agent ID, shown in Channels > Website widget > Install.

Add the script

  1. In Askocto, open the agent, select Channels > Website widget and choose Install.
  2. Copy the embed script.
<script src="https://cdn.askocto.co/embed.js" data-agent-id="agt_123" defer></script>
  1. In your Framer project, add the script as custom code that runs on every page, at the end of the body.
  2. Publish the site.

You should see the chat bubble on your published pages. Check the published address, not the editor.

Choose how the widget looks

Colors, the welcome message and the position are set in Askocto, not in Framer. Change them under the agent's Channels > Website widget settings and the live site picks them up on the next page load. To place the chat inside a page instead of a floating bubble, use the iframe option in Embed as an iframe.

Open the chat from a button

If you have a "Talk to us" button on your Framer page, you can open the widget from it by calling the JavaScript API.

window.askocto.open();

Add this to a click handler in code you control. The full list of methods is in Chat interface control.

Test it

  1. Open the published site in a private window.
  2. Ask a question the agent should know.
  3. Compare with the same question in Test > Playground. See Playground.

Remove the widget

Remove the script from the site's custom code and publish again.

Troubleshooting

  • No bubble on the live site. Confirm the site was published after adding the script.
  • The bubble shows the wrong agent. Check the data-agent-id value against the agent's ID.
  • The page loads slowly. The script uses defer, so it should not block the page. Check that it is only added once.

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