Skip to content
FacebookYouTubeX (Twitter)

How to Connect Your Knowledge Base for GPT Automation

Integrating ChatGPT into Pingstreams can enhance your chatbot’s capabilities by connecting it to a knowledge base (KB). This tutorial will guide you through the steps to connect your knowledge base to Pingstreams using ChatGPT. This integration enables your chatbot to retrieve information from the KB to provide more accurate responses to user queries. You’ll be able to upload your own KB by simply indexing a chunk of URLs, a sitemap and/or uploading plain text.

  • Access to Pingstreams account
  • URL(s) of your knowledge base
  • FAQ plain text to copy & paste
  • Your sitemap

Log in to your Pingstreams account and navigate to the Chatbots section.

Scroll down to Knowledge Base: Manage your Contents and index a chunk of URLs, plain text or a sitemap, as shown below:

Knowledge Base Management

Still in the chatbot settings, scroll down to the “Welcome Message” section.

Customize your welcome message as desired. This is the initial message users will receive when interacting with your chatbot:

Welcome Message Setup

3. Add “Ask the Knowledge Base” Action

Section titled “3. Add “Ask the Knowledge Base” Action”

Navigate to the “Actions” menu in your chatbot configuration.

Select “Ask the Knowledge Base” from the Integrations dropdown list of actions.

Drag and drop it within the Default Fallback Block:

Ask Knowledge Base Action

4. Add Reply Attributes: kb_reply and kb_source

Section titled “4. Add Reply Attributes: kb_reply and kb_source”

While still in the Actions section, edit the “Ask the Knowledge Base” action.

In the action settings, find the “Reply Attributes” section and add two reply attributes:

  • “kb_reply”: This attribute will store the response retrieved from the knowledge base
  • “kb_source”: This attribute will hold the source or reference of the KB information

5. Create Paths for Success and Failure Blocks

Section titled “5. Create Paths for Success and Failure Blocks”

You’ll need to create two paths:

  1. Create a new path by clicking the green exit port (Success) and connect it to the “KB Success” block. This path represents successful knowledge base responses.

  2. Create a second path from the red exit port (Else) to a new block called “KB Fail.” This path will handle cases where the knowledge base doesn’t provide a relevant response.

Success and Failure Paths

With these steps completed, your ChatGPT-powered chatbot in Pingstreams is now connected to your knowledge base. When users interact with the bot, it will use ChatGPT to query the KB for information, store the response and source, and guide users through the appropriate path based on the KB’s response.

6. How to Refresh, Check Status, and Delete Your KB Contents

Section titled “6. How to Refresh, Check Status, and Delete Your KB Contents”

Remember to regularly update your knowledge base to ensure that your chatbot provides accurate and up-to-date information to users. Once updated, click on the Refresh icon to refresh your resources:

Refresh Resources

To check each content’s status, click on the three dots and choose “Check status”. Similarly, choose the “Delete” option if you want to remove content:

Manage KB Content

By connecting your knowledge base to Pingstreams, you can:

  • Provide accurate, up-to-date information to users
  • Reduce response time for common queries
  • Maintain consistency in your support responses
  • Scale your customer support capabilities
  • Continuously improve your chatbot’s knowledge

This integration transforms your chatbot into a powerful customer support tool that can handle complex queries by leveraging your existing knowledge base content.

For any questions or feedback about knowledge base integration in Pingstreams, contact our support team.