The website widget is how visitors interact with your AI agent. A small floating button opens a chat interface powered by your agent. You control the appearance, position, and behavior through the Config > Connections sub-tab.
Find integrations in your agent's Connections tab under "Website Widget." Click + Create Integration.
Name Your Integration
Give it a descriptive name like "Production Website" or "Marketing Landing Pages." This helps you manage multiple integrations for different sites.
Configure Security
Optionally restrict the API key to specific origins. Only requests from listed domains will work.
Get Your Embed Code
Copy the generated script tag and paste it on your website. The widget appears immediately.
Choose the embed format that works best for your website.
Script Tag (Recommended)
Works on any website. Paste before the closing </body> tag.
<script src="https://simplyasking.io/widget/v2/agent.js" data-agent-id="YOUR_AGENT_ID" data-api-key="YOUR_API_KEY" data-theme="dark" data-position="bottom-right" async ></script>
How It Works
The widget uses Shadow DOM to render directly on your page. Your site's CSS won't affect the widget, and the widget's CSS won't affect your site. No iframe needed. Conversations persist across page navigations within the same browser session. After 30 minutes of inactivity, a new session starts automatically.
Customize appearance through data attributes or the branding panel in Chat Test.
Theme
Position
Branding Options
data-primary-color="#2F6244"data-accent-color="#AD8F46"data-logo="https://..."data-company="Acme Inc"Each integration has its own API key. Manage keys from Config > Connections.
wak_ followed by random characters.Auto-Open
Automatically open the chat widget after a delay.
data-auto-open="5000" // Opens after 5 seconds
Page Awareness
Send page context to the agent for more relevant responses.
JavaScript API
Control the widget programmatically.
// Open the widget
window.SimplyAsking.open();
// Close the widget
window.SimplyAsking.close();
// Toggle open/close
window.SimplyAsking.toggle();
// Send a message programmatically
window.SimplyAsking.sendMessage("What are your business hours?");
// Listen for events
window.SimplyAsking.on('message', (msg) => {
console.log('New message:', msg);
});</body>. Confirm API key hasn't been deleted. Check browser console for errors (F12 → Console). If using origin restrictions, verify your domain is listed.simplyasking.io to allowed scripts. Check for z-index conflicts with other fixed elements.https://