SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

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

Create a Chatbot that Lets Customers Track Packages

With SAP Conversational AI, create a chatbot that calls an API, in this case to let customers track their packages, and see how to make use of the memory, using SAP Conversational AI.

Overview

🎓 beginner 20 min. SAP Conversational AiBeginnerArtificial IntelligenceMachine LearningSAP Business Technology Platform

You will learn

  • How to create intents
  • How to create entities
  • How to fork intents and entities
  • How to trigger skills and define required data for those skills
  • How to access data in the memory
Unknown U Unknown November 4, 2022
Created by September 22, 2021
Contributors

Prerequisites

Prerequisites

Steps

What you will build

You will build a bot so customers can:

  • Track a package
  • Price a package

Intro

To track a package:

  • The customer will indicate that they want to track a parcel
  • The customer will provide the package number
  • The customer will confirm they want to track the package
  • The bot will call an API to retrieve package info and display it

To price package:

  • The customer will indicate they want to price a package
  • The customer will provide the address (France only) and the size of the package
  • The bot will check that the address is in France, and then call an API to retrieve a map of the location
  • The bot will display the map, and provide a price for the package, based on its size

In this tutorial

In this tutorial, you will start by creating a bot that understands the customer’s intent to track a package, and understands when the user has provided a valid tracking number.


Step 1 Create skeleton bot

  1. Go to SAP Conversational AI and log in.

  2. Click New Bot and select the following:

    Field NameValue
    1. What do you want your chatbot to do?Perform Actions
    2. Predefined SkillsGreetings
    3. Create your bot
    • Name: ShippingBot
    • Description: A bot to help shipping customers track and price packages
    • Language: English
    4. Data Policy
    • Non-personal
    • Store
    • Non-vulnerable
    5. Bot VisibilityPublic

    Create bot
    Create bot

  3. Click Create a Bot.

Step 2 Create entity for parcel number
+
Step 3 Add intents for yes and no
+
Step 4 Add intent for tracking parcel
+
Step 5 Create skill for tracking parcel
+
Step 6 Add requirement to skill (parcel-number)
+
Step 7 Add requirement to skill (yes/no)
+
Step 8 Add action to skill
+
Step 9 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 9
1. Create skeleton bot 2. Create entity for parcel number 3. Add intents for yes and no 4. Add intent for tracking parcel 5. Create skill for tracking parcel 6. Add requirement to skill (parcel-number) 7. Add requirement to skill (yes/no) 8. Add action to skill 9. Test the bot

Learn more →