Skip to main content
This guide covers the technical details of embedding the Chatoura chat widget on your website.

Basic Installation

Add the script before the closing </body> tag:
Replace YOUR_AGENT_ID with your agent’s ID from the dashboard.

Finding Your Agent ID

  1. Go to Agents > select your agent
  2. Click Integrations > Web Widget
  3. Copy the agent ID from the embed code

Script Attributes

Installation Examples

Standard HTML

React / Next.js

Vue.js

Angular

Single Page Applications (SPA)

For SPAs, ensure the script is only loaded once:

Content Security Policy (CSP)

If your site uses CSP, add these directives:

Verifying Installation

After adding the script:
  1. Open your website
  2. Look for the chat bubble in the corner
  3. Click to open and test a message
  4. Check Chat History to see the test session

Common Issues

  • Verify script is before </body>
  • Check agent ID is correct
  • Look for JavaScript errors in console
  • Ensure no ad blockers are interfering
  • Script may be included more than once
  • Check for duplicate script tags
  • In SPAs, ensure proper cleanup on navigation
  • Widget uses Shadow DOM for style isolation
  • Check for global event listeners interfering
  • Contact support with specific error messages