-
Notifications
You must be signed in to change notification settings - Fork 1
Deployment
Kohei Nishikawa edited this page Apr 27, 2020
·
5 revisions
https://www.ibm.com/cloud/free
- Node-RED Apps x 2 instances
- Watson Assistant
- Watson Discovery
- Db2 on Cloud
- Cloud Object Storage
- Create Skill on Watson Assistant
- Crate Table on Db2
- RUN SQL : cretea table using script
- Create Custom data collection on Discovery
- Upload these documents(discovery-docs)
- Node-RED Running on IBM Cloud
- Import flows.json for LINE to Node-RED
- Create Providers and new channel on LINE Messaging API.Channel's name is "Work at Home bot".
- You input webhook URL and get access token, download QR Code.
- webhook URL : https://node-red-URL/linepost
- Edit settings below on Node-RED
- name of node
- assistant V2
- change: Your Watson Assistant API Key
- change: Your Watson Assistant Service Endpoint URL
- change: Your Watson Assistant Assistant ID
- check: Return Context
- discovery query builder
- change: Your Watson Discovery API Key
- change: Your Watson Discovery Service Endpoint URL
- Environment: byod
- Collection: custom data collection name
- function:query
- change: Your Watson Discovery Environment ID
- change: Your Watson Discovery Collection ID
- discovery
- change: Your Watson Discovery API Key
- change: Your Watson Discovery Service Endpoint URL
- Method: Search in collection
- change: Your Watson Discovery Environment ID
- change: Your Watson Discovery Collection ID
- insert Db2 on Cloud
- connect table on Db2
- Create Reply type:Message
- change: Your access token for LINE Messaging API
- Create PUSH type:Message
- change: Your access token for LINE Messaging API
- assistant V2
- name of node
- Click deploy on Node-RED
- Upload the QR code to object storage and issue a public URL
- Node-RED Running on IBM Cloud: It uses Node-RED which is different from chatbot's Node-RED.
- add node below
- Import flows.json for Portal Site to Node-RED
- Edit settings below on Node-RED
- name of node
- template (Bot List UI)
- change: src attribute specifies the public URL of the QR Code image
- template (Bot List UI)
- name of node
- Click deploy on Node-RED
- Go to https://portalsite's-node-red-URL/ui/