GithubHelp home page GithubHelp logo

data-henrik / db2-slack-chatbot Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 2.0 12 KB

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

License: Apache License 2.0

JavaScript 100.00%
db2 ibm watson-conversation ibm-cloud slack-bot openwhisk ibm-cloud-functions

db2-slack-chatbot's Introduction

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.

db2-slack-chatbot's People

Contributors

data-henrik avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.