Archive for the ‘Google Assistant’ Category

Google Assistant – How to create a chatbot

December 6, 2018

Hi,

I have played with Google Assistant this year and built a chatbot that lets the users to manage team building locations (venues). A venue consists of these properties: number of rooms, number of guests, location and a short description.

The tools and technologies I’ve used are:

  1. Node.js
  2. DialogFlow – Platform used for building bots (owned by Google)
  3. Firebase – Development platform used to build, monitor and host projects (owned by Google)
  4. Cloud DataStore – NoSql database service (owned by Google)

If you want to create, test and deploy a chatbot you need to perform the steps below:

  1. Install Node.js.
  2. Install Firebase CLI – Firebase will be used to create the deploy Google cloud functions. The commands are listed below:
  • npm install firebase-functions@latest firebase-admin@latest –save
  • npm install -g firebase-tools
  • firebase login
  • firebase init – this command installs dependencies with npm. After that we can start writing our cloud functions. The code can be found here.
  • firebase deploy – deploy the cloud functions as fulfillment to google cloud. You will see a functions url available:

       3. Create the intents using DialogFlow console – the intents can be found here.

The source code can be found at this github repo.