Phone icon
Try for free here

Step-by-Step Guide: Integrating the Chatbot into Your Website

background

Follow these instructions to implement the chatbot into various platforms. Each section includes clear steps to ensure the widget appears correctly on your site.

NEXT.JS

1. Add the Script to Your Layout:

• Insert the script tag inside the <head> section of your main layout file (e.g., app/layout.js or pages/_app.js).

next code

2. Save and Verify:

• Save your changes.
• Open your website in a browser. The chatbot widget should appear in the lower-right corner.

next code

REACT.JS

1. Insert the Script:

• Open the index.html file located in the public folder of your React project.
• Add the script tag inside the <head> section:

next code

2. Save and Verify:

• Save your changes and start your development server.
• Open your website in a browser to confirm the chatbot widget appears in the lower-right corner.

next code

GATSBY

1. Add the Script to Required Files:

• Add the script to both gatsby-ssr.js and gatsby-browser.js files:

gatsby-ssr.js:

next code

gatsby-browser.js:

next code

2. Restart the Server:

• Restart your development server to apply the changes.

3. Verify:

• Open your website in a browser to ensure the chatbot widget appears in the lower-right corner.

next code

HTML, CSS, JavaScript

1. Insert the Script:

• Open your index.html file.
• Add the script tag at the end of the <body> section:

next code

2. Save and Verify:

• Save your changes and load your website in a browser. The chatbot widget should appear in the lower-right corner.

next code

WordPress

1. Install the Code Snippets Plugin:

• Go to your WordPress Admin Panel.
• Navigate to Plugins > Add New.
• Search for Code Snippets and click Install Now, then Activate.

next code

2. Add a New Snippet:

• Go to Header & Footer section inside the plugin
• Enter the script in Footer Section
• Save changes

next code

Wix

1. Go to settings in your site's dashboard.

2. Click Custom Code in the Development & Integrations section.

3. Click + Add Custom Code at the top right.

4. Paste the code snippet in the text box.

5. Enter a name for your code, e.g., "Chatbot".

6. Select "All Pages" option under Add Code to Pages

7. Select Body - end option under Place Code in

8. Click Apply.

Verification Steps (for All Platforms)

1. Open Your Website:

• Navigate to your website using a browser.

2. Check for the Chatbot Widget:

• Confirm that the chatbot widget appears in the lower-right corner of your site.

This guide includes all necessary steps for implementing the chatbot to your website. Ensure you follow the instructions relevant to your platform and verify after implementation.