ibm-cloud / cloudco-insurance Goto Github PK
View Code? Open in Web Editor NEWA modern insurance company. The application showcases cognitive and cloud computing ideas in the context of insurance.
License: Other
A modern insurance company. The application showcases cognitive and cloud computing ideas in the context of insurance.
License: Other
Add an iOS setting that will allow the chat backend to be changed.
Default value should be prod (http://insurance-bot.mybluemix.net)
The conversation service now has an API to create a workspace and load content into it.
Would be great to get rid of the manual step of uploading ana.json:
https://www.ibm.com/watson/developercloud/conversation/api/v1/#create_workspace
For World of Watson, let's get to a state where master contains the latest and most stable dev.
Log in the website:
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...
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.
Should be only a matter of redeploying the apps from the build pipeline
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.
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?
Would be a good example together with Istio.
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.
On mobile app sign-in screen, replace
“Don’t have an account? Sign up”
with
“Sign up at http://cloudco.mybluemix.net”
(and open web browser with that address)
Use deployment manager and ensure Privacy statement is added to each repo and to the main cloudco-insurance repo.
Please integrate App ID Service https://console.bluemix.net/catalog/services/AppID
Some URLs for the API Endpoints maybe different, I could not deploy it, Toolchain will contain no delivery stages in the delivery pipeline.
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
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:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.