Create an investment management chatbot  

Create a service-based chatbot to manage a personal wealth portfolio

Last updated | By Tom Eck, Laura Bennett

Description

Create a Watson Conversation-based financial chatbot that enables you to query your investments, analyze securities, and use multiple interfaces.

Overview

Chatbots are rapidly gaining acceptance and becoming the norm for all kinds of customer interactions. In this developer journey, you will create a Watson Conversation-based chatbot that enables you to use an Investment Portfolio service to query portfolios and associated holdings. You’ll use a Simulated Instrument Analytics service to compute analytics on securities under a given scenario and will learn how to swap between a standard web interface and a Twilio interface.

When you have completed this journey, you will understand how to:

  • Create a chatbot dialog with Watson Conversation
  • Set up multiple interfaces with the Watson Conversation bot: web & Twilio
  • Access, seed and send data to the Investment Portfolio Service
  • Send data along with a scenario to the Simulated Instrument Analytics service to retrieve analytics

Flow

  1. The developer can set up multiple communication channels (for example, WebUI or Twilio). The application listens for messages from either channel.
  2. The conversation API takes in natural language input and breaks and maps it to intents and entities that it has been trained for. The app makes a call to the respective financial service based on the intent that was identified.
  3. The context of the conversation is saved to the Cloudant DB so that the Conversation API is able to save the state and track the conversation flow of the user.
  4. The Portfolio Investment API is called if there is a query asking for information around the holdings or portfolio. An asynchronous call is made through a “Promise Request” to make the query and return the results. Subsequently, the results are parsed and formatted in a response object that is sent back to the Conversation interface.
  5. The Simulated Analytics API is called if the intent is identified as “impact analysis.” This call initially requires issuing an asynchronous “Promise Request” querying the name of the holdings currently owned using the Portfolio Investment API. This is stored in an object that is subsequently sent to the Simulated Instrument Analytics service (SIA). SIA pulls the base and conditional price out of the object in order to compare against the potential market changes and return a measure of the impact to the holdings in this scenario. (In this use case, the change scenario is querying how the portfolio would perform if the S&P 500 drops by 5%. Results are parsed and formatted in a response object that is sent back to the Conversation interface.

Related Blogs

IBM Day – Blockchain over Kubernetes and Kubernetes Upstream – Recap of RTP Kubernetes Meetup

Co-Author:
 Tong Li, @email4tong The Research Triangle Park (RTP), NC Kubernetes Meetup is a well-organized event and its members regularly meet every month. It has over 750 registered members. The meetup speakers are SMEs from various companies like Red Hat, IBM, Lenovo, Google and many local startups like CloudPerceptions. The last Kubernetes meetup for 2017...

Continue reading IBM Day – Blockchain over Kubernetes and Kubernetes Upstream – Recap of RTP Kubernetes Meetup

Newsletters: The Curious Developer’s Best Friend

The great thing about software development is that there is always something new to learn! The terrible thing about software development is that there is always something new to learn! Luckily, there are tons of wonderful people sharing their knowledge every week in helpful and entertaining newsletters … and unfortunately, it can be really easy...

Continue reading Newsletters: The Curious Developer’s Best Friend

Kubernetes Upstream Contribution – 5 Do’s and Don’t

There is a good amount of documentation material out there on the Kubernetes community website which every contributor should read. However, if you are a new or intermediate contributor, or thinking to start contributing to Kubernetes upstream, hopefully, this post will help you understand some of the lessons that I have learned. This post discusses...

Continue reading Kubernetes Upstream Contribution – 5 Do’s and Don’t

Related Links

Xignite

Deliver real-time and reference market data to your digital assets.

Tutorial

Build your chatbot with Watson Conversation.