SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Add Webhook to Chatbot to Retrieve Tracking Info

Add a webhook call in the package-tracking chatbot to retrieve information for a specific tracking number, using SAP Conversational AI.

Overview

You will learn

  • How to set a default webhook endpoint
  • How to call a webhook during a conversation
  • How to display the response
Maskym Hornostai M Maskym Hornostai November 4, 2022
Created on September 22, 2021
Contributors

Prerequisites

Prerequisites

Steps

Intro

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

  1. Open your shippingbot bot.

  2. At the top right, click Settings.

    Endpoint
    Endpoint

  3. Click Versions, and then click the arrow to the right of v1.

    Versions
    Versions

  4. In the Bot Builder field, enter the endpoint to our application on SAP Business Technology Platform: https://sapupschatbot.cfapps.eu10.hana.ondemand.com

  5. Click Save.

This endpoint contains a Python demo script that makes all kinds of API calls, including retrieving package information from UPS. It is described in this blog.

Step 2 Call API to retrieve parcel info
+
Step 3 Test the bot
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 3
1. Set default endpoint for webhooks 2. Call API to retrieve parcel info 3. Test the bot
Next