Skip to content
Choose an available topic from the sidebar. More documentation is coming soon.

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:

  1. A BookStack installation with API access enabled
  2. A BookStack API token and secret
  3. A AI Chatbot account (sign up free)

How to Get Your BookStack API Credentials

1

Log in to BookStack
Access your BookStack installation as an administrator.

2

Go to your profile

Click on your profile icon and select Edit Profile.

3

Create an API token

Scroll down to the API Tokens section and click Create Token.

4

Copy your credentials

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

Open your chatbot dashboard

Log in to AI Chatbot and select your chatbot.

2

Go to Training & Content

Click Training & Content in the sidebar, then select Sources.

3

Click Add Sources

Click the + Add Sources button in the top right corner.

4

Select Apps

In the source type dropdown, select Apps to see available integrations.

5

Choose BookStack

Click on the BookStack integration option.

Enter Your BookStack Details

In the Add Bookstack Integration modal:

1

Enter your Wiki URL

Enter the base URL of your BookStack installation (e.g., https://wiki.mywebsite.com).

2

Add your Access Token
Paste the API Token ID you copied from BookStack.

3

Add your Token Secret
Paste the API Token Secret.

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

Next Steps