Giter VIP home page Giter VIP logo

deb007 / slack-chatbot-database-watson Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ibm-cloud/slack-chatbot-database-watson

0.0 3.0 0.0 71 KB

Code to build a Slackbot to create and search Db2 database entries for events and conferences. The Slackbot is backed by the IBM Watson Conversation service. We integrate Slack and Conversation using the Conversation connector in a serverless way.

Home Page: https://console.bluemix.net/docs/tutorials/index.html

License: Apache License 2.0

Shell 27.93% JavaScript 72.07%

slack-chatbot-database-watson's Introduction

Note:
Code relating to a previous version of the tutorial that utilized the now deprecated web_action to call Cloud Function actions is available in the branch 20191211_web_action. The current version is using a webhook in IBM Watson Assistant to invoke the serverless functionality.

Code relating to a previous version of the tutorial that utilized Cloud Foundry organization and spaces for IBM Cloud Functions is available in the branch CloudFoundry-based-20191114. The current version is based on using IAM namespaces for Cloud Functions packages and actions.

An even older code version along with the related instructions is kept in the branch v1_upto_2019_04.

Build a database-driven Slackbot with IBM Watson™ Assistant

Code to build a Slackbot to create and search Db2 database entries for events and conferences. The Slackbot is backed by the IBM Watson Assistant service. In older versions of this tutorial, an IBM Cloud Databases for PostgreSQL database could be used instead of Db2. The related files have an additional .pg. in their name and code can be found in the historic branches.

The tutorial with detailed step-by-step instructions is available at https://cloud.ibm.com/docs/solution-tutorials?topic=solution-tutorials-slack-chatbot-database-watson#slack-chatbot-database-watson. The tutorial is part of the IBM Cloud tutorials

Files in this repository

The files in this repository have the following purpose:

  • changeActionSecret.sh: shell script to update (change) the secret for invoking the web actions used by the chatbot. You still need to manually update the related dialog node.
  • cleanup.sh: shell script to drop Db2 table and delete Db2-related Cloud Functions actions
  • skill-TutorialSlackbot.json: Skill / Workspace file used with IBM Watson Assistant service
  • db2-setup.js: code for Cloud Functions action which creates a Db2 table, fills it with sample data or cleans it up
  • dispatch.js: code for Cloud Functions action which dispatches the incoming webhook request to the individual subfunctions to search records or insert new data
  • setup.sh: shell script to set up Cloud Functions actions, bind credentials, create a Db2 table and fill sample data
  • tables.sql: table schema

Related Content

Chatbot-related blog posts:

slack-chatbot-database-watson's People

Contributors

data-henrik avatar lee-zhg avatar l2fprod avatar mhaderibm avatar

Watchers

James Cloos avatar Debjyoti Aich 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.