This demo aims to automate the banking experience for customers regarding loans on Cloud Pak for Data using Watson Studio, Watson Assistant and Cloud Functions. The project is currently built on the cloud, this documentation aims to provide step-by-step details to implement the same on CP4D on any infrastructure.
- User can interact with the system using a web application or through Watson Assistant
- Watson Assistant can answer the following questions:
- Queries about loans (Loan Predicition, recommending loans and tips to be eligible for loans)
- History transactions
- Loan Prediction model, using Auto AI, to predict user eligibility for loan.
Demo is currently in progress but can be found here and the assistant can be found here.
In this project we are using German credit data set: https://online.stat.psu.edu/stat857/node/215/
- We found a German credit data set: https://online.stat.psu.edu/stat857/node/215/
- We decided to go with the Cloud Pak for Data as a service (Watson Studio). This will help us connect Watson Assistant to our service later.
- We uploaded the data set to Watson Studio.
- Cleaned the data using data refinery
- Built Auto AI Experiment for Loan Prediction. Works with 0.81 accuracy, results are good so far.
- Deployed Auto AI in a deployment space.
In this step we mainly focused on building the Loan Assistant with Watson Assistant. Skill can be found in the "loan-skill.json" file.
The assistant can do the following:
- Predict whether user is eligible for loans by asking them a series of questions and then passing into Cloud functions to get results based on the auto ai model we built earlier.
- Recommend Loans for users based on their data.
- Users can apply for loans if they are eligible or can ask more information about how to apply for loan or check required documents.
- Help users with general FAQ questions about loans.
The final step in this project is connecting Watson Assistant to the model we built using Cloud functions.
- On Watson Assistant, we enabled webhooks, and added the HTTP link to the assistant.
- In the loan prediction dialog node, we enabled the webhook and added the parameters that their values will be processed into the model to get the final results.
- The cloud functions code that is used as middleware between the assistant and ml model can be found here