Code Monkey home page Code Monkey logo

cloudco-insurance's Introduction

Cloud Insurance Co. - Overview

Cloud Insurance Co. is a modern insurance company for the 21st century.

The following projects are leveraged in the overall Cloud Insurance Co. solution:

  • insurance-bot - UI that provides a chat bot interface for users to query their health benefits and file claims.
  • insurance-bot-dashboard - A user interface showing an history of the bot chats for further analysis.

Code Status

๐Ÿ‘‡ Repositories ... Branches ๐Ÿ‘‰ master dev
insurance-bot Build Status Build Status
insurance-bot-dashboard Build Status Build Status

Deploy

To deploy the full system all at once, check out the Cloud Insurance Co. Toolchain

Architecture

Architecture Diagram

Visit the wiki for more details on Cloud Insurance Co. architecture and components.

License

See License.txt for license information.

cloudco-insurance's People

Contributors

data-henrik avatar l2fprod avatar vidyasagarmsc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cloudco-insurance's Issues

self-service-manager - request sign up failure

Start the sign up process, to create a Cloud Directory user i get self-service-manager - request sign up failure(Error code 403) after Obtained IAM token

PS C:..\insurance-bot> npm start

[email protected] start C:...\insurance-bot
node app.js

[2018-08-14 10:51:35.306] [DEBUG] appid-public-key-util - Initializing
[2018-08-14 10:51:36.068] [DEBUG] appid-token-util - Initializing
[2018-08-14 10:51:36.201] [INFO] appid-sdk - Initialized
Loaded local VCAP { services:
{ cloudantNoSQLDB: [ [Object] ],
conversation: [ [Object] ],
AppID: [ [Object] ] } }
[2018-08-14 10:51:37.279] [DEBUG] appid-webapp-strategy - Initializing
[2018-08-14 10:51:37.280] [DEBUG] appid-webapp-strategy-config - Initializing
[2018-08-14 10:51:37.280] [INFO] appid-webapp-strategy-config - tenantId e2
[2018-08-14 10:51:37.280] [INFO] appid-webapp-strategy-config - clientId 87
[2018-08-14 10:51:37.281] [INFO] appid-webapp-strategy-config - secret [NOT SHOWING]
[2018-08-14 10:51:37.281] [INFO] appid-webapp-strategy-config - oauthServerUrl https://appid-oauth.eu-gb.bluemix.net/oauth/v3/e2
[2018-08-14 10:51:37.281] [INFO] appid-webapp-strategy-config - redirectUri http://localhost:6001/health
[2018-08-14 10:51:37.281] [INFO] appid-webapp-strategy-config - preferredLocale undefined
[2018-08-14 10:51:37.282] [INFO] self-service-manager - using user IAM API key [NOT SHOWING]
[2018-08-14 10:51:37.282] [INFO] self-service-manager - iamTokenUrl https://iam.bluemix.net/oidc/token
[2018-08-14 10:51:37.283] [INFO] self-service-manager - managementUrl https://appid-management.eu-gb.bluemix.net/management/v4/e2
server starting on http://localhost:6001
Loaded local VCAP { services:
{ cloudantNoSQLDB: [ [Object] ],
conversation: [ [Object] ],
AppID: [ [Object] ] } }
{ url: 'https://gateway.watsonplatform.net/assistant/api',
username: '0f',
password: 'te' }
No conversation workspace configured in the environment.
Looking for a workspace named 'Ana'...
Loaded local VCAP { services:
{ cloudantNoSQLDB: [ [Object] ],
conversation: [ [Object] ],
AppID: [ [Object] ] } }
Database already exists: logs
Database already exists: benefits
Using Watson Conversation with username 0f and workspace 09
GET /health 200 310.081 ms - 3002
GET /isLoggedIn 200 2.558 ms - 27
GET /favicon.ico 404 4.247 ms - 150
GET /signup 200 46.224 ms - 3145
GET /isLoggedIn 304 1.400 ms - -
[2018-08-14 10:53:06.092] [DEBUG] self-service-manager - Obtained IAM token: exq
[2018-08-14 10:53:07.738] [DEBUG] self-service-manager - request sign up failure
{ Error: Forbidden
at Request._callback (C:....\insurance-bot\node_modules\ibmcloud-appid\lib\self-service\self-service-manager.js:269:16)
at Request.self.callback (C:...\insurance-bot\node_modules\request\request.js:188:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request. (C:....\insurance-bot\node_modules\request\request.js:1171:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage. (C:....\insurance-bot\node_modules\request\request.js:1091:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20) statusCode: 403, message: 'Forbidden' }
POST /signup 500 6748.472 ms - 35

AUTO SECTION TO BE DEVELOPED USING PHP

Would be great to expand the insurance demo for PHP developers.
For example, if the AUTO section to use PHP for the backend language while keeping the same database. In addition to also add the Watson image service to scan images when processing claims.

Sync master and dev branches

For World of Watson, let's get to a state where master contains the latest and most stable dev.

  • insurance-bot
  • insurance-catalog
  • insurance-orders
  • insurance-bot-ios
  • insurance-bot-dashboard

insurance-bot crashes if the user message is too detailed and the bot was not able to infer the chosen procedure yet

Log in the website:

  • Go to health
  • Say "Hi"
  • Say "I need to know my coverage for eyes"

No reply from Ana.

The insurance-bot app crashes at the same time:

Got response from Ana: {"intents":[{"intent":"get_info","confidence":0.9484212745612777}],"entities":[{"entity":"details","location":[18,26],"value":"coverage"},{"entity":"types","location":[31,35],"value":"vision"}],"input":{"text":"I need to know my coverage for eyes"},"output":{"log_messages":[],"text":["I can get your coverage for you. What service do you need info for? I've got information on your vision, dental, mental, and physical plans."],"nodes_visited":["node_12_1476151077484"]},"context":{"fname":"Frederic","lname":"Lavigne","services":["vision","dental","mental","physical"],"procedures":[["eye wear","eye exams"],["teeth cleaning","orthodontics","tooth repair"],["Psychologist"],["Chiropractor","Physiotherapy"]],"conversation_id":"0c7a49f3-9fac-4acd-ac55-bb7ff3706621","system":{"dialog_stack":["node_12_1476151077484"],"dialog_turn_counter":3,"dialog_request_counter":3},"chosen_detail":"coverage"}}
/Users/fred/dev/cloudco/insurance-bot/bot.js:324
text = "Your " + detail + " for " + procedure + " is " + procedure_details[detail];
^

TypeError: Cannot read property 'coverage' of undefined
at updateContextObject (/Users/fred/dev/cloudco/insurance-bot/bot.js:324:83)
at /Users/fred/dev/cloudco/insurance-bot/bot.js:85:21
at Request._callback (/Users/fred/dev/cloudco/insurance-bot/node_modules/watson-developer-cloud/lib/requestwrapper.js:75:5)
at Request.self.callback (/Users/fred/dev/cloudco/insurance-bot/node_modules/watson-developer-cloud/node_modules/request/request.js:187:22)
at emitTwo (events.js:100:13)
at Request.emit (events.js:185:7)
at Request. (/Users/fred/dev/cloudco/insurance-bot/node_modules/watson-developer-cloud/node_modules/request/request.js:1044:10)
at emitOne (events.js:90:13)
at Request.emit (events.js:182:7)
at IncomingMessage. (/Users/fred/dev/cloudco/insurance-bot/node_modules/watson-developer-cloud/node_modules/request/request.js:965:12)
at emitNone (events.js:85:20)
at IncomingMessage.emit (events.js:179:7)
at endReadableNT (_stream_readable.js:913:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
[nodemon] app crashed - waiting for file changes before starting...

Conversation Service Issues

i have deplyoed all API Services manually as documented. All Apps are running fine. nevertheless the conversation seems to have problems. ANA is telling me "I ran into an error. Could you please try again". This is independent of any message i enter into the dialogue.
Launching the conversation service directly from the Bluemix dashboard the conversation test seems to work fine.

Any idea?

Add deployment tracker to apps

Use deployment manager and ensure Privacy statement is added to each repo and to the main cloudco-insurance repo.

  • catalog
  • orders
  • bot
  • bot-dashboard

Reset password functionality and better error messages

No way to rest my password if you forgot the pass.
That is needed, tech seller reported that they cant login and the issue is that the error messages are not clear.

We need following:

  1. Add Rest Password functionality
  2. When creating an account, if user is already exist then better error message needs to be displayed.

Customer Suggestion - Extend CloudCo functionality

The one thing we thought could massively improve the CloudCo example would be the ability for the agent to actually take over a conversation in real time

โ€“ That would be a great functionality if it will be added.

Wrap insurance-bot-db into microservice

The db is used by two repositories and created as service in the deploy scripts for bot and dashboard. Clean up the architecture and wrap the db into a service or manage dependencies in a different way.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.