All Projects → IBM → Watson Banking Chatbot

IBM / Watson Banking Chatbot

Licence: apache-2.0
A chatbot for banking that uses the Watson Assistant, Discovery, Natural Language Understanding and Tone Analyzer services.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Watson Banking Chatbot

Watson Assistant Slots Intro
A Chatbot for ordering a pizza that demonstrates how using the IBM Watson Assistant Slots feature, one can fill out an order, form, or profile.
Stars: ✭ 134 (-42.49%)
Mutual labels:  chatbot, ibmcode
Rasatalk
A chatbot framework for Rasa NLU
Stars: ✭ 225 (-3.43%)
Mutual labels:  chatbot
Weibo terminater
Final Weibo Crawler Scrap Anything From Weibo, comments, weibo contents, followers, anything. The Terminator
Stars: ✭ 2,295 (+884.98%)
Mutual labels:  chatbot
Blockchainnetwork Compositejourney
Part 1 in a series of patterns showing the building blocks of a Blockchain application
Stars: ✭ 217 (-6.87%)
Mutual labels:  ibmcode
Rasa core
Rasa Core is now part of the Rasa repo: An open source machine learning framework to automate text-and voice-based conversations
Stars: ✭ 2,302 (+887.98%)
Mutual labels:  chatbot
Dl For Chatbot
Deep Learning / NLP tutorial for Chatbot Developers
Stars: ✭ 221 (-5.15%)
Mutual labels:  chatbot
Customer Chatbot
中文智能客服机器人demo,包含闲聊和专业问答2个部分,支持自定义组件(Chinese intelligent customer chatbot Demo, including the gossip and the professional Q&A(FAQ) , support for custom components!)
Stars: ✭ 198 (-15.02%)
Mutual labels:  chatbot
Python Telegram Bot
We have made you a wrapper you can't refuse
Stars: ✭ 17,209 (+7285.84%)
Mutual labels:  chatbot
Urban Bot
🤖 The universal chatbot library based on React. Write once, launch Telegram, Facebook, Slack, ... every messenger with chatbots
Stars: ✭ 223 (-4.29%)
Mutual labels:  chatbot
React Native Chatbot
💬 Easy way to create conversation chats
Stars: ✭ 212 (-9.01%)
Mutual labels:  chatbot
Sactive Bot
😈 An extensible chat bot framework. sactive-bot is an evolution of the open source hubot project. - https://www.shipengqi.top/sactive-bot .
Stars: ✭ 212 (-9.01%)
Mutual labels:  chatbot
Chatette
A powerful dataset generator for Rasa NLU, inspired by Chatito
Stars: ✭ 205 (-12.02%)
Mutual labels:  chatbot
Titan
Create Discord server widgets for websites of all sizes! A simple to setup process for end-users. Server members may view or send messages into an embedded Discord channel.
Stars: ✭ 221 (-5.15%)
Mutual labels:  chatbot
Venom
Venom is the most complete javascript library for Whatsapp, 100% Open Source.
Stars: ✭ 3,457 (+1383.69%)
Mutual labels:  chatbot
Maubot
A plugin-based Matrix bot system.
Stars: ✭ 226 (-3%)
Mutual labels:  chatbot
Tensorflow Hangul Recognition
Handwritten Korean Character Recognition with TensorFlow and Android
Stars: ✭ 203 (-12.88%)
Mutual labels:  ibmcode
Bot
Telegram Chatbot Assistant for Managing Club Activities
Stars: ✭ 208 (-10.73%)
Mutual labels:  chatbot
Picqbotx
基于 CQHTTP 插件的 Java QQ 机器人类库
Stars: ✭ 218 (-6.44%)
Mutual labels:  chatbot
Gpt2bot
Your new Telegram buddy powered by transformers
Stars: ✭ 228 (-2.15%)
Mutual labels:  chatbot
Ehforwarderbot
An extensible message tunneling chat bot framework. Delivers messages to and from multiple platforms and remotely control your accounts.
Stars: ✭ 2,689 (+1054.08%)
Mutual labels:  chatbot

Build Status

Create a banking chatbot with FAQ discovery, anger detection and natural language understanding

In this code pattern, we will create a chatbot using Node.js and Watson Assistant. The Assistant flow will detect customer emotions and be enhanced by using Natural Language Understanding to identify location entities. For FAQs, a call to the Discovery service will use passage retrieval to pull answers from a collection of documents.

When the reader has completed this pattern, they will understand how to:

  • Create a chatbot that converses via a web UI using Watson Assistant and Node.js
  • Use Watson Discovery with passage retrieval to find answers in FAQ documents
  • Identify location entities with Watson Natural Language Understanding

NOTE: This code pattern has been updated to include instructions for accessing Watson services running on IBM Cloud Pak for Data. These updates can be found in the specific instructions for deploying your app locally, or deploying your app to OpenShift on IBM Cloud. The main change required is that your application will need additional credentials to access the IBM Cloud Pak for Data cluster that is hosting the Watson services.

Click here for more information about IBM Cloud Pak for Data.

architecture

Flow

  1. The FAQ documents are added to the Discovery collection.
  2. The user interacts with a chatbot via the app UI.
  3. User input is processed with Natural Language Understanding (NLU). The context is enriched with NLU-detected entities and keywords (e.g., a location).
  4. The input and enriched context is sent to Assistant. Assistant recognizes intent, entities and dialog paths. It responds with a reply and/or action.
  5. Optionally, a requested action is performed by the app. This may include one of the following:
    • Lookup additional information from bank services to append to the reply
    • Use Discovery to reply with an answer from the FAQ documents

Included components

  • IBM Watson Assistant: Build, test and deploy a bot or virtual agent across mobile devices, messaging platforms, or even on a physical robot.
  • IBM Watson Discovery: A cognitive search and content analytics engine for applications to identify patterns, trends, and actionable insights.
  • IBM Watson Natural Language Understanding: Analyze text to extract meta-data from content such as concepts, entities, keywords, categories, sentiment, emotion, relations, semantic roles, using natural language understanding.

Featured technologies

  • Node.js: An asynchronous event driven JavaScript runtime, designed to build scalable applications.

Steps

  1. Clone the repo
  2. Create Watson services
  3. Customize the Watson Assistant skill
  4. Load Discovery documents
  5. Deploy the application
  6. Use the web app

1. Clone the repo

Clone the watson-banking-chatbot locally. In a terminal, run:

git clone https://github.com/IBM/watson-banking-chatbot

2. Create Watson services

Provision the following services:

  • Watson Assistant
  • Watson Discovery
  • Watson Natural Language Understanding

NOTE: If you will be using the Deploy to Cloud Foundry on IBM Cloud deployment option, then you can skip these next steps and jump right to the Deploy the Application section. That deployment option automatically creates the services and links them to your application.

The instructions will depend on whether you are provisioning services using IBM Cloud Pak for Data or on IBM Cloud.

Click to expand one:

IBM Cloud Pak for Data

Use the following instructions for each of the three services.

Install and provision service instances

The services are not available by default. An administrator must install them on the IBM Cloud Pak for Data platform, and you must be given access to the service. To determine whether the service is installed, Click the Services icon (services_icon) and check whether the service is enabled.

IBM Cloud

Create the service instances
  • If you do not have an IBM Cloud account, register for a free trial account here.
  • Click here to create a Watson Assistant instance.
  • Click here to create a Discovery instance.
  • Click here to create a Natural Language Understanding instance.

3. Customize the Watson Assistant skill

The following instructions will depend on if you are provisioning Assistant from IBM Cloud or from an IBM Cloud Pak for Data cluster. Choose one:

Provision on IBM Cloud Pak for Data

  • Find the Assistant service in your list of Provisioned Instances in your IBM Cloud Pak for Data Dashboard.
  • Click on View Details from the options menu associated with your Assistant service.
  • Click on Open Watson Assistant.
  • Go to the Skills tab.
  • Click Create skill
  • Select the Dialog skill option and then click Next.
  • Click the Import skill tab.
  • Click Choose JSON file, go to your cloned repo dir, and Open the JSON file in data/conversation/workspaces/banking_US.json (or use the old full version in full_banking.json). banking_IN.json is used for content for banking in India and banking_US.json is used for content for banking in United States.
  • Select Everything and click Import.
Provision on IBM Cloud

  • Find the Assistant service in your IBM Cloud Dashboard.
  • Click on the service and then click on Launch tool.
  • Go to the Skills tab.
  • Click Create skill.
  • Select the Dialog skill option and then click Next.
  • Click the Import skill tab.
  • Click Choose JSON file, go to your cloned repo dir, and Open the JSON file in data/conversation/workspaces/banking_US.json (or use the old full version in full_banking.json). banking_IN.json is used for content for banking in India and banking_US.json is used for content for banking in United States.
  • Select Everything and click Import.

To find the Skill ID for Watson Assistant:

  • Go back to the Skills tab.

  • Click on the three dots in the upper right-hand corner of a card and select View API Details.

  • Copy the Skill ID GUID. Use this value when setting up your run-time environment.

  • By default the application will import and use the skill named watson-banking-chatbot, but you can configure it to use another skill by setting the run-time environment variable SKILL_ID.

    view_api_details

To view the Assistant dialog, click on the skill and choose the Dialog tab. Here's a snippet of the dialog:

dialog

4. Load Discovery documents

By default, the application will create a collection named watson-banking-chatbot, but you can configure it to use another collection by setting the run-time environment variables DISCOVERY_COLLECTION_ID and DISCOVERY_ENVIRONMENT_ID.

The following instructions will depend on if you are provisioning Discovery from IBM Cloud or from an IBM Cloud Pak for Data cluster. Choose one:

Provision on IBM Cloud Pak for Data

  • Find the Discovery service in your list of Provisioned Instances in your IBM Cloud Pak for Data Dashboard.
  • Click on View Details from the options menu associated with your Discovery service.
  • Click on Open Watson Discovery.
  • Click on an existing Discovery Project, or create a new one.
  • From your Project panel, click the Collections tab.
  • Click on New Collection +.
  • Select the Upload data option and click Next.
  • Provide a collection name.
  • Select English language.
  • Click Finish to create the collection.
  • Use Drag and drop your documents here or select documents to seed the content with the five documents in data/discovery/docs of your cloned repo.
  • Click on the Integrate and deploy option from the left-side menu of the Discovery panel. Then select the View API Details tab to view the Project Id. Use this as the Collection ID value when setting up your run-time environment.

NOTE: The Environment Id for Cloud Pak for Data collections is always set to default.

disco_cpd_projectid

Provision on IBM Cloud

  • Find the Discovery service in your IBM Cloud Dashboard.

  • Click on the service and then click on Launch tool.

  • Create a new data collection by hitting the Upload your own data button.

    new_collection

    • Provide a collection name
    • Select English language
    • Click Create
  • Use Drag and drop your documents here or select documents to seed the content with the five documents in data/discovery/docs of your cloned repo.

  • Click on the upper-right api icon and save the Environment ID and Collection ID as they will be required when setting up your run-time environment.

    disco_guids

5. Deploy the application

Click on one of the options below for instructions on deploying the Node.js server.

local openshift public

6. Use the web app

The web app presents a customer service chatbot. Interact with the chatbot by pressing the buttons when prompted or use the Type something box. The chatbot is powered by Watson Assistant with additional information coming from Discovery and Natural Language Understanding.

demo

Troubleshooting

  • Error: Unable to list workspaces for Watson Assistant: Forbidden: Access is denied due to invalid credentials.

    This error occurs with Deploy to IBM Cloud button. Configure a runtime environment variable for ASSISTANT_APIKEY to allow automatic configuration of the default skill or configure SKILL_ID to use another skill.

  • Fail: An operation for service instance wbc-discovery-service is in progress.

    This error occurs when starting the app before the service is ready. It is currently common behavior with the Deploy to IBM Cloud button. In this case, click the Run button to restart the application. It will succeed when the service is ready.

  • Error: Environment {GUID} is still not active, retry once status is active

    This is common during the first run. The app tries to start before the Discovery environment is fully created. Wait a few minutes and click the Run button to restart the application.

  • Error: Only one free environment is allowed per organization

    To work with a free trial, a small free Discovery environment is created. If you already have a Discovery environment, this will fail. If you are not using Discovery, check for an old service thay you may want to delete. Otherwise use the .env DISCOVERY_ENVIRONMENT_ID to tell the app which environment you want it to use. A collection will be created in this environment using the default configuration.

Links

License

This code pattern is licensed under the Apache License, Version 2. Separate third-party code objects invoked within this code pattern are licensed by their respective providers pursuant to their own separate licenses. Contributions are subject to the Developer Certificate of Origin, Version 1.1 and the Apache License, Version 2.

Apache License FAQ

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].