H5 Chatbot Documentation
H5 Chatbot Documentation
Table of Contents
Introduction
Installation
Configuration
API Setup
General Settings
Agent Management Creating Agents
Setting Default Agent
Knowledge Base
Creating Categories
Adding Knowledge Base Entries
Chat History
Viewing Conversations Customer Information
Frontend Experience
Troubleshooting
Support
Introduction
H5 Chatbot is a powerful WordPress plugin that integrates OpenAI’s advanced language models to provide intelligent chatbot functionality for your website. With customizable agents, a comprehensive knowledge base system, and complete conversation history, H5 Chatbot offers a complete solution for customer engagement and support.
Key features include:
OpenAI API integration
Customizable chat agents
Knowledge base management Conversation history tracking User information collection
Mobile-responsive design
Installation
1. Upload the plugin:
Log in to your WordPress admin dashboard
Navigate to Plugins > Add New > Upload Plugin
Choose the file and click Install Now
After installation, click Activate Plugin
2. Verify installation:
After activation, you should see a new menu item called “H5 Chatbot” in your WordPress admin sidebar
Configuration
API Setup
H5 Chatbot requires an OpenAI API key to function. Follow these steps to set it up:
Create an account at OpenAI if you don’t already have one
Navigate to API Keys in your OpenAI dashboard
Click Create new secret key
Copy the generated API key (note that it will only be shown once) Now add the API key to your H5 Chatbot settings:
In your WordPress admin, go to H5 Chatbot > Settings
Paste your OpenAI API key in the OpenAI API Key field
Click Save Settings
General Settings
Configure the general behavior of your chatbot:
AI Model: Choose between different OpenAI models: GPT-3.5 Turbo (faster, more economical)
GPT-4 (more capable, higher cost)
Response Behavior: Select a communication style: Professional (formal, business-oriented)
Friendly (conversational but professional) Casual (informal, relaxed tone)
Maximum Response Length: Adjust the token limit for responses (higher values may result in longer replies)
Response Creativity: Control the randomness of responses: Lower values (0.2-0.4): More factual, consistent responses
Higher values (0.6-0.8): More creative, varied responses
Click Save Settings to apply your changes
Agent Management
H5 Chatbot allows you to create multiple virtual agents with different names, avatars, and specialties to represent your brand.
Creating Agents
Navigate to H5 Chatbot > Agents
Fill in the “Add New Agent” form:
Agent Name: The name displayed to users
Agent Specialty: Their role or expertise
Agent Avatar: Upload an image to represent the agent
Active: Toggle to enable/disable the agent
Set as Default Agent: Make this the primary agent shown to users
Click Add Agent to create your new agent
Setting Default Agent
The default agent is shown to all new users when they first interact with the chatbot.
Navigate to H5 Chatbot > Agents
In the list of agents, find the one you want to set as default
Click the Set as Default icon
The agent will now be marked as the default (highlighted with a blue border)
Knowledge Base
The knowledge base is where you provide information to train your chatbot about your business, products, services, or any specific topics.
Creating Categories
Navigate to H5 Chatbot > Knowledge Base
Go to the Categories tab
Fill in the form:
Category Name: A descriptive name for the category
Description: Optional details about the category
Click Add Category
Adding Knowledge Base Entries
Navigate to H5 Chatbot > Knowledge Base
Go to the Knowledge Base Entries tab
Fill in the form:
Category: Select from your created categories
Title: A title for this knowledge entry
Content: The information you want the chatbot to learn
Priority: Lower numbers appear first within the same category
Active: Toggle to enable/disable this entry
Click Add Entry
The chatbot will use this information to provide accurate responses about your business or services. Make sure to:
Keep entries concise and focused on a single topic Use clear, simple language
Organize related information in the same category Update important information regularly
Chat History
H5 Chatbot stores all conversation history, allowing you to review past interactions and gather customer information.
Viewing Conversations
Navigate to H5 Chatbot > Chat History
You’ll see a list of all chat sessions with: Customer name
Phone number Message count Date started
Last activity
Click View next to any session to see the complete conversation
Customer Information
When viewing a specific conversation, you’ll see:
Customer details section showing: Name
Phone number IP address
Device type
Session start time Last activity time
The complete message history with timestamps
Frontend Experience
The H5 Chatbot appears on your website as a chat icon in the bottom right corner (by default). For visitors:
Clicking the icon opens the chat window
First-time visitors are prompted to enter their name and phone number
After submitting their information, they can start chatting
The chatbot responds based on the knowledge base and OpenAI’s capabilities
Conversations persist across page refreshes and return visits
Troubleshooting
Common Issues and Solutions
1. Chatbot not appearing on frontend:
Check if another plugin is causing a JavaScript conflict Verify your theme is properly loading wp_footer()
Try disabling other plugins temporarily to identify conflicts
2. Error messages when sending chat:
Verify your OpenAI API key is correct and has sufficient credits Check your PHP error logs for specific error messages
Ensure your server allows outbound connections to api.openai.com
3. User information not being saved:
Check that your database permissions are correct
Verify cookies are being properly set (requires proper wp_head/wp_footer) Try using a different browser or clearing cache/cookies
4. Slow response times:
This can happen during high OpenAI API traffic
Consider switching to a faster model (like GPT-3.5-Turbo)
Reduce the maximum tokens setting to speed up responses
Knowledge base content not reflected in responses: Make sure entries are marked as “Active”
Keep knowledge base entries concise and clear Verify the entries are in the correct category
Support
For additional support:
Email: admin@lavender-crab-453296.hostingersite.com Website: https://lavender-crab-453296.hostingersite.com
Documentation: https://lavender-crab-453296.hostingersite.com/h5-chatbot-docs When contacting support, please include:
WordPress version
Theme name and version List of active plugins
Any error messages you’re seeing Steps to reproduce the issue
© 2025 theCoin | https://lavender-crab-453296.hostingersite.com

