Website assistant
How to add an AI chat widget to your website
Start with the questions customers ask before they book. Publish the widget on a quiet page first and verify that someone outside your team can open it, send a message and return to the conversation.
Choose what the assistant can answer
Gather the published information your team already trusts, including service descriptions, prices you are comfortable displaying, hours, cancellation terms and contact details. Use the same wording on the website and in the assistant’s knowledge so visitors receive consistent answers.
Decide which requests need a person. Common examples are exceptions to policy, a complaint and a request that contains information the assistant should not collect. Test those boundaries the same way you test routine questions.
Copy the iframe snippet and publish one test page
In Smartbook, open the assistant’s code settings and copy the HTML widget snippet. Paste it into an HTML block or your site template. The snippet opens a sandboxed iframe on the Smartbook widget domain. Keep the generated source and sandbox attributes when pasting it into your site.
If you already host a legacy script-based Smartbook snippet, check it as part of the rollout. That script creates an iframe too, and it executes on the host page. The HTML iframe snippet is the default for new installs.
Check the website as a visitor
Load the published page in a separate browser session. Open the launcher, send a known question and confirm the answer cites details you provided. Close the widget, reload the page and reopen it in the same browser. Test a private browsing window too, where storage permissions may behave differently.
On a phone, check that the launcher leaves your site controls usable and the keyboard does not obscure the message field. If the site blocks the frame, ask the person who manages its content security policy to check the allowed frame origins.
Give the conversation somewhere to go
Send a test message that needs staff help. Check that the conversation can be picked up in the shared inbox and assigned to the right person. The person replying should see enough context to respond without repeating the assistant’s first questions.
If booking is part of your flow, open the booking action separately. Confirm the right business, service and availability appear before advertising that customers can book from the chat.