A Python Client for Explainable AI Chatbots
In the previous chapters, we have explored several interactions between all types of users and machines. It is now time to introduce chatbots in our explainable AI (XAI) process. Progressively, personal assistants will replace keyboards. As more and more connected objects enter the Internet of things (IoT) market, chatbots will emerge as a useful communication tool.
In this chapter, we will implement a Python client to write a flexible XAI program for a user to interact with a Dialogflow AI expert agent. We will start by installing the Python client for Dialogflow on a local machine.
We will then create a Dialogflow agent on Dialogflow using Google's intuitive interface. The agent will simulate a human support agent that will answer user requests. The local Python client cannot communicate with Google Dialogflow online without APIs and services.
Activating the Google APIs and services will provide a private...