The Reponse chat widget brings the AI activation layer to any page on your site. It answers shopper questions in real time, guides them toward purchase, and captures leads — all without leaving the page. You can embed it as a script snippet or as an iframe.
Prerequisites
A Reponse workspace with at least one campaign configured
After the widget is ready, use the global `ReponseWidget` object:
javascript
// Open the widget
ReponseWidget.open();
// Close the widget
ReponseWidget.close();
// Send a message programmatically
ReponseWidget.send("Show me your best deals");
UTM Passthrough
The widget automatically reads UTM parameters from the page URL and forwards them to the AI engine dispatcher. This enables automatic engine selection (e.g., `fr-ecom-turbo-v1` for social traffic). No additional configuration is required.
Troubleshooting
Issue
Solution
Widget does not appear
Verify the data-campaign-id is correct and the campaign is published.
Iframe blocked
Check that your CSP allows framing from reponse.ai.
Wrong language
Set data-locale explicitly on the script tag.
Events not firing
Ensure the listener is registered before the script loads.