Taxonomy Icon

Artificial Intelligence

Create a cognitive retail chatbot

Get the code View the demo

Summary

As a Python developer, you can use this pattern to learn how to add features such as a shopping cart, context store, and custom inventory search into your chatbot. When you’ve completed the pattern, you will understand how to create a chatbot dialog using Watson Assistant, a Cloudant NoSQL database, Watson Discovery, and a Slack group.

Description

Chatbots are a hot topic in the retail industry, but so far the execution has mostly amounted to little more than a novelty experience for customers. Interested in adding a chatbot? In this developer code pattern, learn how you can create an easily configurable, retail-ready Watson Assistant-based chatbot that lets a user find items to purchase and then add and remove items from their cart.

Flow

flow

  1. The user writes a message to the slackbot.
  2. The slackbot uses the Watson Assistant service to let users search, add, or remove products from their cart.
  3. The Watson Discovery service provides users with a list of items to add or remove from their carts.
  4. The user and cart data is stored in the database.

Instructions

To begin building your own chatbot:

  1. Clone the repo
  2. Create IBM Cloud services
  3. Get IBM Cloud credentials and add to .env
  4. Configure Watson Assistant
  5. Configure Watson Discovery
  6. Configure Slack
  7. Run the application