Paste the code snippet (shown on the right) in your website's source code, just before the closing </body> tag
Empty fields will be filled in the next steps.
Edit the condition with a boolean telling wether the Contact is logged-in or not
If you want this code snippet to work on a website with logged-in and anonymous Contacts, then you will need to specify when your Contact is logged-in. If they are, the boolean must be "true". If not, it must be "false".
Replace the user_hash attribute with a generated HMAC
Identity Verification helps ensure that your users are who they claim to be. This prevents third parties from seeing your users’ conversations or impersonating another user.
To generate your HMAC, the key will be your secret key as a key, and the message will be your Contact id. Follow your framework documentation to know how to generate a HMAC.
Edit the code snippet to match information about your contact with the corresponding metadata
Make sure that id is a unique ID per Contact, two Contacts should never share the same ID. It can be either a string or an integer.
You can send any other metadata that can be relevant for your business.
Use each of the following functions in the appropriate scenario of your Single Page App
Test your deployment
Enter the URL of the page on which you deployed the chatbox. A diagnosis of your integration should appear. If not, please make sure the code snippet is correctly integrated into your code.