Databases

Updated Tutorial: Database-Driven Chatbot

Share this post:

Database-driven chatbot tutorial adapted to latest IBM Watson Assistant features

If you want to build a chatbot that gets its content from a database, there is good news—the existing tutorial “Build a Database-Driven Slackbot” was just updated to adapt to latest features of IBM Watson Assistant.

First, define a skill that reaches out to a database service like Db2. Thereafter, use the built-in integrations to easily tie in the assistant with Slack or Facebook Messenger. With the updated tutorial and code, you no longer need Botkit or Conversation Connector for the Slack integration—everything is built into Watson Assistant. This means that you have more UI options available. Chat using the preview, embed the chatbot into your own application, or use the WordPress plugin.

 

Database-driven Slackbot - Architecture

Database-driven Slackbot: Architecture

Database-driven chatbot

With the acceptance of chatbots to support business tasks and assist in enterprise workflows, it is critical to access systems of record from within a dialog. The tutorial shows how to build a database-driven chatbot and integrate it with Slack as user interface. Instead of Slack, you can also use the Assistant-provided preview, Facebook Messenger integration, or WordPress plugin as alternative user interfaces. Dialog actions, realized as IBM Cloud Functions, query a Db2 or PostgreSQL database or insert new records. Therefore, a messenger application can serve dynamic, user-specific content from a database.

Get started

It is easy to build a database-driven chatbot. Reach out to systems of record from within a dialog so that Slack or other messenging systems can support enterprise workflows. The updated tutorial all information to get started. Finally, check out the following resources to learn even more.

If you have feedback, suggestions, or questions about this post, please reach out to me on Twitter (@data_henrik) or LinkedIn.

Technical Offering Manager / Developer Advocate

More Databases stories
May 1, 2019

Two Tutorials: Plan, Create, and Update Deployment Environments with Terraform

Multiple environments are pretty common in a project when building a solution. They support the different phases of the development cycle and the slight differences between the environments, like capacity, networking, credentials, and log verbosity. These two tutorials will show you how to manage the environments with Terraform.

Continue reading

April 29, 2019

Transforming Customer Experiences with AI Services (Part 1)

This is an experience from a recent customer engagement on transcribing customer conversations using IBM Watson AI services.

Continue reading

April 26, 2019

Analyze Logs and Monitor the Health of a Kubernetes Application with LogDNA and Sysdig

This post is an excerpt from a tutorial that shows how the IBM Log Analysis with LogDNA service can be used to configure and access logs of a Kubernetes application that is deployed on IBM Cloud.

Continue reading