Add your agent to a Weebly site
Install the Askocto chat widget on a Weebly site by adding the embed script to your site's header code, then publish and test the widget.
Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.
Use this page to put your agent's chat bubble on a Weebly site. You add one script to the code that loads on every page and publish.
Before you start
- An agent with the Website widget turned on. See Channels.
- Permission to edit and publish the Weebly site.
- The agent ID from Channels > Website widget > Install.
Add the script
- In Askocto, open the agent, select Channels > Website widget and choose Install.
- Copy the embed script.
<script src="https://cdn.askocto.co/embed.js" data-agent-id="agt_123" defer></script>
- In your Weebly site, paste the script into the site-wide header code.
- Publish the site.
You should see the chat bubble on your published pages.
Set up the agent for visitors
A site visitor expects a quick, specific answer. Before you publish, check three things in Askocto.
- Welcome message. Open Channels > Website widget and write a short greeting that says what the agent can help with.
- Suggested messages. Add two or three common questions as buttons. See Suggested messages.
- Handoff. Add Live chat handoff so visitors can reach a person.
Test it
- Open the published site in a private window.
- Ask a question and read the answer.
- Open Activity to see the conversation with its sources.
Use Test > Playground to try changes before you publish them to the site. See Playground.
Tip: If your pages do not need the bubble, you can embed the chat as a panel with Embed as an iframe.
Remove the widget
Delete the script from the header code and publish again.
Troubleshooting
- No bubble appears. Check that the site was published after the change.
- The bubble shows an old greeting. Reload the page. The greeting comes from the agent's current published version.
- The script was rejected. Paste the snippet exactly as copied, including the
deferattribute.