Add-on to tutorial
The tutorial on how to build a Db2-based chatbot leverages dialog actions to reach out to a database system and return the result in a bot response. The code for the news integration is a Python action deployed as IBM Cloud Functions. You bind the action to an existing Discovery service. That way, the code has access to the credentials and connect to the News collection.With the code in place, you need to extend the skill from the tutorial and create an intent, an entity and two dialog nodes. Details are in the linked GitHub repository.
Once everything is in place, you can use the preview to test the news integration. Here is a screenshot of the rough output after a search for "bodensee".
If you have feedback, suggestions, or questions about this post, please reach out to me on Twitter (@data_henrik) or LinkedIn.