Cloud modernization at scale can be disruptive, and clients prefer to start the journey that incrementally transitions them to reach digital maturity. This can be made possible by developing a co-existing layer that operates alongside the core business application and database. Digital decoupling can also be seen as a coexistence layer that helps clients to incrementally transition to the future state with minimal or no disruption to the existing technology stack. There are numerous use cases that can be made possible using the decoupling layer, including the customer empowerment and smart front-office application.
In this developer code pattern, we will take the scenario of a telecom company that provides mobile network services. The company has a legacy application with a number of functional modules for customer information management, mobile plan management, inventory management, and billing. The telecom company now wants to build a new system of engagement with an interactive chatbot for the customers. In the new chatbot, the customers can query for billing information, data usage, and get plan recommendations. It is proposed to build this new chatbot using new the technologies and capabilities of IBM Cloud Pak for Data — without disrupting the existing legacy system. The legacy system uses a Db2 database and is the system of record. The new chatbot system uses a PostgreSQL database. A subset of data needed by the chatbot system is replicated to the PostgreSQL database using IBM DataStage.
When you have completed this code pattern, you will understand how to:
- Create DataStage flows for data replication using IBM Cloud Pak for Data
- Create a chatbot using Watson Assistant
- Create IBM Cloud Functions in Watson Assistant to query databases
- The employee performs one of many actions, such as creating a new mobile plan, entering new customer information, or generating billing information.
- The data is stored in the Db2 database.
- DataStage reads the data from the Db2 database.
- DataStage replicates the data in the PostgreSQL database.
- A customer queries for billing information, data usage, and recommendations through the chatbot.
- The Watson Assistant chatbot invokes IBM Cloud Functions for the queries.
- IBM Cloud Functions queries PostgreSQL for data, processes the data, and returns the response to Watson Assistant.
Ready to get started? Check out the README for detailed instructions on how to:
- Create an instance of Db2 database
- Clone the repo
- Build and deploy the legacy application
- Set up legacy database
- View sample data
- Log in to IBM Cloud Pak for Data SaaS and Create Services
- Get credentials of PostgreSQL database
- Set up PostgreSQL database
- Import the project in IBM Cloud Pak for Data
- Set up chatbot application
- Analyze the results