It includes:
- React chatbot UI.
- A JavaScript class BotSession that holds two methods for interacting with the chatbot.
getWelcomeMessage(string) -> Gets an inital welcome message if there is one.
sendMessageToBot(message) -> Sends the string to the bot and receives a reply in the form of a callback function with the reply.
Creating a BotSession instance will start a new session with the Dialogflow bot using a random 16 character string.
Interaction with the bot comes via calls to an API.