- Managing Your Chatbot
- Bookstack
Training Your Chatbot
Train Your Chatbot on BookStack Wiki Content
Learn how to connect your BookStack wiki to AI Chatbot and train your chatbot to answer questions using your knowledge base content.
Connect your BookStack wiki to AI Chatbot to create an AI chatbot that can answer questions using your existing knowledge base. Your chatbot will automatically pull content from your BookStack pages, books, and shelves to provide accurate, contextual responses to your visitors.
Why Use BookStack with AI Chatbot?
BookStack is a popular open-source wiki platform used by thousands of organizations for documentation and knowledge management. By connecting it to AI Chatbot, you can:
- Instant answers: Let visitors ask questions in natural language instead of searching
- 24/7 availability: Provide support even when your team is offline
- Reduced support load: Automate responses to common questions
- Always up-to-date: AI Chatbot automatically checks for new and updated content every hour
Prerequisites
Before connecting BookStack to AI Chatbot, you’ll need:
- A BookStack installation with API access enabled
- A BookStack API token and secret
- A AI Chatbot account (sign up free)
How to Get Your BookStack API Credentials
1
2
Click on your profile icon and select Edit Profile.
3
Scroll down to the API Tokens section and click Create Token.
4
Copy both the Token ID and Token Secret. Store these securely as the secret won’t be shown again.
Make sure your API token has read access to the content you want your chatbot to use. Check your BookStack role permissions if needed.
Connect BookStack to AI Chatbot
1
Log in to AI Chatbot and select your chatbot.
2
Click Training & Content in the sidebar, then select Sources.
3
Click the + Add Sources button in the top right corner.
4
In the source type dropdown, select Apps to see available integrations.
5
Click on the BookStack integration option.
Enter Your BookStack Details
In the Add Bookstack Integration modal:
1
Enter the base URL of your BookStack installation (e.g., https://wiki.mywebsite.com).
2
3
4
Save the integration
Click Save to connect your BookStack wiki.
Keeping Content Updated
Once connected, AI Chatbot automatically keeps your chatbot in sync with your BookStack wiki:
- Automatic sync: AI Chatbot checks BookStack for new and updated pages every hour
- No manual action required: Your chatbot automatically trains on any content changes
This means you can update your BookStack wiki and your chatbot will have the latest information within an hour.
Troubleshooting
Connection Failed
If you can’t connect to BookStack:
- Verify your Wiki URL is correct and accessible
- Check that API access is enabled in BookStack settings
- Ensure your token hasn’t expired or been revoked
- Confirm your token has read permissions
Content Not Appearing
If your content isn’t being fetched:
- Make sure the role of the user who created the API token has both the Access system API and Export content permissions enabled (BookStack Settings → Roles). Without them, BookStack rejects the API or page-export requests and no content is imported
- Check your BookStack role permissions
- Verify the pages aren’t restricted to specific roles
- Try creating a new API token whose role has the Access system API and Export content permissions, plus view access to the books you want imported
Chatbot Giving Wrong Answers
If responses aren’t accurate:
- Review and update your BookStack content
- Add more detailed information to relevant pages
- Use fine-tuning to improve specific responses