Client Insight for Wealth Management
In this code pattern, we will explore the Client Insight for Wealth Management service. We will use the service to retrieve and display client data and analytics. These analytics include attrition score, predicting life events and segmenting your clients based on their attributes. This can provide wealth management companies key insights to provide greater service and retaining clients. In this code pattern, we walk through the service in a Jupyter Notebook to understand the calls and data retrieved from the service. Next, we display the retrieved data through a dashboard by creating a Python Flask web application using the service.
This code pattern is designed for developers with interest in financial services or providing enhanced customer service. When the reader has completed this code pattern, they will understand how to:
- Retrieve client insight through the Client Insight for Wealth Management (CIWM) service
- Walk through Notebook to understand use of the service
- Create a web application with a dashboard to display client insights
- The user accesses the application through a web interface to view client profile
- The application will retrieve client information and analytics through the Client Insight for Wealth Management service
- The user can walk through notebook to understand the Client Insight for Wealth Management service use case
- The notebook will allow user to call the Client Insight for Wealth Management service and display retrieved raw data
- Client Insight for Wealth Management: Client Insight for Wealth Management service provides a set of analytical models that help you obtain client insights for use in marketing, distribution, and services provision
- IBM Watson Studio: Analyze data using RStudio, Jupyter, and Python in a configured, collaborative environment that includes IBM value-adds, such as managed Spark.
- Jupyter Notebook: An open source web application that allows you to create and share documents that contain live code, equations, visualizations, and explanatory text.
- Python Python is a programming language that lets you work more quickly and integrate your systems more effectively.
1. Clone the repo
Clone the Client Insight for Wealth Management code locally. In a terminal, run:
git clone https://github.com/IBM/client-insight-wealth-management cd client-insight-wealth-management/
2. Explore the Notebook
The notebook in the repo provides a descriptive walk through of the service and how it can guide a financial advisor with key insights about the client. It provides API calls to the service and displays the data returned from the service. The notebook can be explored on the cloud through Watson Studio, or setup locally with Jupyter Notebook.
Explore in Watson Studio
Watson Studio provides all the resources to run the notebook.
Follow the steps below to launch Watson Studio and open the notebook from this repository.
- First using your IBM Cloud account, sign into Watson Studio. Here you can create a new project by choosing the
New Projectlink on the right.
- You can give your project a name and provide a description. Ensure you have a
Cloud Object Storagewhich can be linked to the project for storing project assets.
- Once you have your project opened, you can use the
Add to Projectlink to add a
Notebookto the project. Here we will choose the
From URLtab to add notebook from this repository. Provide a name and description for the notebook, and in the
Notebook URLfield provide the following url:
Create Notebook to open the notebook.
- Once you have the notebook opened in Watson Studio, you can walk through each cell by clicking the
Runbutton in the menu.
Locally with Jupyter notebook
The notebook can be opened locally using Jupyter Notebook. This will open the notebook in a web browser with the Python kernal to run the notebook.
- First install the notebook's dependencies
pip install -r requirements.txt
- Next open a terminal and go to the
notebookfolder. Use the following command to open the notebook in a web browser.
cd notebook/ jupyter notebook
This will open the notebook in a browser. Here, walk through the notebook running each cell to gain understanding for the Client Insight for Wealth Management service.
3. Run the Application
To run the application, go to the root folder and:
- Install dependencies
pip install -r requirements.txt
- Access the running app in a browser at http://0.0.0.0:8080/
Deploy Application to IBM Cloud
You can deploy the application to IBM Cloud using the
Deploy to IBM Cloud button or deploy using the IBM Cloud CLI.
Deploy to IBM Cloud button
- Deploy the application directly on IBM Cloud using the
Deploy to IBM Cloudbutton
Use IBM Cloud CLI
- This will use the specifications provided in the
manifest.ymlfile. You can update the manifest.yml file to provide certain attribute including the url name.
applications: - path: . name: client-insight memory: 128M random-route: true instances: 1 buildpack: python_buildpack
- Use the IBM Cloud CLI to push the app to IBM Cloud. Login and then inside folder run:
- Finance Code Patterns: Enjoyed this Code Pattern? Check out our other Finance Code Patterns.
- Data Analytics Code Patterns: Enjoyed this Code Pattern? Check out our other Data Analytics Code Patterns
- Watson Studios: Master the art of data science with IBM's Watson Studios
This code pattern is licensed under the Apache Software 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 (DCO) and the Apache Software License, Version 2.