Skip to content

Db2 database actions triggered from Slack and IBM Watson Conversation, based on OpenWhisk / IBM Cloud Functions

License

Notifications You must be signed in to change notification settings

data-henrik/db2-slack-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack Chatbot with a Db2 Backend

This repository contains code snippets to build a Slack chatbot backed by IBM Watson Conversation. Depending on the dialog, data is fetched from a Db2 database.

The Slack chatbot uses the Conversation Connector which is based on IBM Cloud Functions and Cloudant. The IBM Cloud Functions provide a serverless messaging channel between Slack and Watson Conversation. The Cloudant datbase is utilized to store messaging contexts.

IBM Cloud Functions are also used to access Db2 directly from dialog nodes via dialog actions.

Files

  • action.js: Action for IBM Cloud Function (ICF / OpenWhisk) to perform a parameterized query against Db2.
  • insert-action.js: Action for IBM Cloud Function (ICF / OpenWhisk) to insert a single row into a Db2 table.
  • dialog-node.json: JSON version of a dialog node showing the call to the ICF action.

About

Db2 database actions triggered from Slack and IBM Watson Conversation, based on OpenWhisk / IBM Cloud Functions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published