KnowledgeBase is customer support and effortless self-service software that helps you manage your customer education process. It encourages self-service so that your customers can solve their problems anytime and helps your support teams decrease the total support time.
By connecting ChatBot to KnowledgeBase, your customers can receive article suggestions during the chat with the bot.
In this article, you will learn how to create a KnowledgeBase and ChatBot webhook and add it to the story.
How to create a webhook in ChatBot
-
Go to the ChatBot dashboard and select your bot story or create a new one.
-
Click on the Integrations icon at the top right corner.
-
Choose “Webhook” from the list.
-
Confirm your selection by clicking on the “Create new webhook” button.
-
Fill in the form with the following details:
Webhook name: KnowledgeBase
Webhook URL: https://api.knowledgebase.ai/integrations/chatbot-answers
Verification token: knowledgebase-verification
Headers:
Key: X-Forwarded-License
Value: your KnowledgeBase license number
-
Select Save.
How to add the KnowledgeBase webhook to your story
-
Add a User input and use the brackets symbol. Choose Any Entity to collect the whole user response. If there are any articles that match the user query, they’ll be returned as cards.
-
Add the Webhook block right after the User input block. Select the Webhook block and choose KnowledgeBase.
-
Add a Bot response block in case no articles are found in your KnowledgeBase. Enter your response and select Add filter.
-
Choose Add filter for the custom attribute. It should be configured as follows:
- Save and close.