No. The loader boots from the data attribute and ignores a token in the URL. An attribute also keeps the token out of referrer headers, proxy logs, and analytics.
The snippet is on the page twice, usually once in the theme header and once in a page-level block. Remove one, and in a single-page app call AgentencyWidget.destroyAll() when leaving the route that had the chat.
Open your live site in a private window, send a real question, then check the chatbot's Conversations tab for a thread with the channel recorded as Website widget.
No. A visitor who chats anonymously produces a conversation but no contact. Turn on lead capture for that chatbot, or pass your own visitor identity, before anyone appears under Customers.
No. The hosted {handle}-chatbot page is served by Agentency, uses no widget token, and needs no allowlist. The iframe embed of it is likewise unaffected.
Exact hosts when you have two or three that rarely change. A wildcard like *.example.com when you have many subdomains and the whole domain is yours and trusted.
A bare hostname with no scheme, path, or port — example.com, shop.example.com, *.example.com, localhost, or a plain IPv4 address. A bare * is rejected.
No. Visitor identity is not sent to the model, so the chatbot does not know the name and will not greet anyone by it. It is for your dashboard and CRM.
The identify call runs after the visitor has already sent a message. Call it as soon as your own session resolves — it is safe before the chat has finished mounting.
Clicking a visitor cell filters the list to every conversation that person has had, there is a visitor filter in the filter bar, and people flow into the Customers list.
Yes — the details go in the address instead of an attribute. Keep an existing share secret in the URL, and keep sensitive values out of it since addresses are widely logged.
The hosted page has access protection turned on — a secret, a password, or an accounts restriction. Change it in the Direct link settings, or use the script widget instead.
Save as default when every embed should match — the live widget picks it up without re-pasting. Bake them into a snippet only to override the default on one page.
Auto-open is desktop-only by default, because a chat window covers a phone screen entirely and reads as an ad. There is a separate switch if you want it anyway.
Switch the launcher corner, or raise the offset — up to 200 pixels from the anchored corner. Around 60 to 80 pixels usually clears a standard cookie banner.
Yes. Hide the launcher, then add data-agentency-open to any element on your page, or call AgentencyWidget.open() from your own code. The Control the widget from your code article lists every method and event.
Correct — brand colours are not in the snippet. The widget fetches them from the chatbot at load time, so hard-refresh your site rather than re-pasting.
Expected. Test Chatbot is the owner's private door and bypasses the widget token and the allowlist. Fix the live script attributes and the allowed domains.
Reuse it when the same knowledge answers both. Create a dedicated one when the campaign has its own offer, needs separate reporting, or wants a more sales-oriented tone.
It probably stripped the tag. View the live page source and search for the widget script; if it is missing, use the iframe embed or a link to the hosted page instead.
Yes. A button pointing at the hosted page and the iframe card both work on every plan, including Free. You lose the corner bubble and the auto-open behaviour.
No. That bubble is Agentency's Help Assistant, answering from the Help Center, and those conversations land in Agentency's dashboard rather than yours.
The widget script is deferred, so an inline script placed after it runs first. Put your calls in a click handler, an agentency:ready listener, or AgentencyWidget.ready(callback). Listening with window.addEventListener("agentency:…") is safe anywhere.
Yes. Call AgentencyWidget.sendMessage("your question") — it opens the chat and sends the text as if the visitor typed it. Without code, add data-agentency-open and data-agentency-message="your question" to any button.
Listen for the close event: window.addEventListener("agentency:close", handler) works from anywhere on the page, and AgentencyWidget.on("close", handler) works once the widget has loaded. It fires only on a real open-to-closed change.
Yes. sendMessage() and a data-agentency-message button go through the same path as a typed message, so each one spends message credits at the chatbot's model rate and counts toward the widget rate limits. prefill() only fills the composer and costs nothing until the visitor sends.
No. Add data-agentency-open to any element and it opens the chat; data-agentency-toggle and data-agentency-close work the same way. Elements your framework adds after page load are picked up too.
Yes, with page context. Call AgentencyWidget.setPageContext({ title, url, text }) from your code, or add data-page-context="auto" to the script tag so the widget reads the page title, address (never the query string or hash), meta description, first heading and an excerpt of the main content at send time — navigation, header, footer, sidebar and hidden content are skipped. The chatbot uses it only when a question refers to the page, answers still come from your knowledge base, and the page text is visible only to the account that owns the chatbot. The owner can turn it off, keep it manual (the default) or set it to auto in the Website embed settings. Never put personal data or secrets in it.