Embed Code
Add the following snippet to the pages where you want the conversation widget to appear.
<script src="http://localhost:3000/embed.js"></script>Instructions
- 1.Copy the code above by clicking the copy icon
- 2.Paste it on your website just before closing the
</body>tag - 3.The widget will automatically appear in the bottom-right corner
Note: This code works on any website (HTML, WordPress, PHP, React, etc.). No additional libraries or frameworks required.
HTML Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Website</title>
<style>
body {
font-family: Arial, sans-serif;
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px;
}
</style>
</head>
<body>
<h1>Welcome to my site</h1>
<p>This is your page content...</p>
<div class="content">
<h2>About Us</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<!-- Chat widget - paste this line before </body> -->
<script src="http://localhost:3000/embed.js"></script>
</body>
</html>WordPress Example
Add the code to your theme:
- Go to Appearance → Theme Editor
- Edit the
footer.phpfile - Paste the code before
</body>