Add Webhook to Chatbot to Retrieve Tracking Info
January 31, 2021
Beginner
10 min.
Add a webhook call in the package-tracking chatbot to retrieve information for a specific tracking number, using SAP Conversational AI.
You will learn
- How to set a default webhook endpoint
- How to call a webhook during a conversation
- How to display the response
Prerequisites
- You have created the chatbot for letting customers request information on their packages, as described in Create a Chatbot that Lets Customers Track Packages.
In the previous tutorial, you created a chatbot to detect the intent of customers who want to track a package and to get the needed information.
In this tutorial, you will modify the chatbot so it calls an API to retrieve information on the package, based on a tracking number, and displays that information to the customer.
Step 1: Set default endpoint for webhooks
Step 2: Call API to retrieve parcel info
Step 3: Test the bot