Step 1: Access the Widget Snippet Generator
-
Navigate to the Widget Section:
- Log in to your OKCHAT.AI account.
- Go to the “Chatbot Configurations” section.
- Select “Chat Widget” from the sidebar.
-
Customize Your Widget:
- Header: Choose a name for your chatbot that will be displayed in the widget header.
- Primary Color: Select a primary color that matches your website’s theme.
- Chatbot Logo URL: Provide a URL for the chatbot logo. Ensure the image is hosted and accessible online.
- Chatbot Slogan: Add a catchy slogan that encourages users to interact with the chatbot.
- Secondary Color: Choose a secondary color for additional UI elements.
- Language: Set the language to “auto” for automatic detection based on user preferences.
Step 2: Generate the Widget Snippet
-
Review Customizations:
- Ensure all fields are correctly filled out.
- Preview the widget to see how it will appear on your website.
-
Generate Snippet:
- Click on the “Generate Snippet” button.
- A script tag will be generated with your custom configurations.
Step 3: Embed the Widget on Your Website
-
Copy the Snippet:
- Highlight the generated script tag and copy it to your clipboard.
-
Paste the Snippet:
- Open your website’s HTML file where you want the widget to appear.
- Paste the script tag just before the closing
</body>
tag.
-
Save and Publish:
- Save the changes to your HTML file.
- Publish or upload the updated file to your web server.
Step 4: Test the Widget
-
Open Your Website:
- Navigate to your website in a web browser.
- Ensure the widget appears correctly and is functional.
-
Interact with the Chatbot:
- Test the chatbot by asking questions or initiating a conversation.
- Verify that the responses are accurate and the widget behaves as expected.
Troubleshooting
-
Widget Not Appearing:
- Ensure the script tag is correctly placed before the closing
</body>
tag. - Check for any JavaScript errors in the browser console.
- Ensure the script tag is correctly placed before the closing
-
Customization Issues:
- Double-check the URLs and color codes in the snippet.
- Ensure all required fields are filled out in the snippet generator.