Skip to content

Deployment

Kohei Nishikawa edited this page Apr 27, 2020 · 5 revisions

preparation

registration IBM Cloud

https://www.ibm.com/cloud/free

enable services below

  • Node-RED Apps x 2 instances
  • Watson Assistant
  • Watson Discovery
  • Db2 on Cloud
  • Cloud Object Storage

setup

Deploy Chatbot

node-red flows linebot

  • Node-RED Running on IBM Cloud
    1. Import flows.json for LINE to Node-RED
    2. Create Providers and new channel on LINE Messaging API.Channel's name is "Work at Home bot".
    3. You input webhook URL and get access token, download QR Code.
    4. 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
    5. Click deploy on Node-RED

Deploy Portal Site

poralsite's node-red-flow

poralsite

Clone this wiki locally