Get started
Quickstart
Add the Iris widget to your site in two steps.
Add the loader
Section titled “Add the loader”Paste this before </body> on every page. Replace the App ID with yours from Settings → Install in the dashboard.
<script> window.Iris = window.Iris || { queue: [] }; ["init", "identify", "logout", "on", "open", "close", "setPageContext", "update", "sendMessage"].forEach(function (name) { Iris[name] = Iris[name] || function () { var args = arguments; return new Promise(function (resolve, reject) { Iris.queue.push([name, args, resolve, reject]); }); }; }); Iris.init({ appId: "app_7Hq2xK9mPz" });</script><script async src="https://iris-cdn.playitback.dev/v1/iris.js"></script>Limit it to your sites
Section titled “Limit it to your sites”While Settings → Widget → Allowed origins is empty, any https website can load the widget with your App ID. To limit it, add your site’s origin. See Allowed origins and CSP.
https://shop.example.comSend the first message
Section titled “Send the first message”Open your page and select the launcher in the bottom corner. Send a message. It shows in the dashboard inbox within a few seconds.
Next steps
Section titled “Next steps”- Identify users, so their conversations follow them.
- Change the colour and the corners with the
Iris.initoptions. - Open the widget from your own button.