Expose API over Google Assistant Bot| Dialogflow and Actions on Google

Vaibhav Malpani
Vaibhav Malpani’s Blog
1 min readAug 25, 2018
Want to use an API over Google Assistant?

To see a sample try

‘Okay Google, talk to NASA pic of the day’

Prerequisites:

How to create a agent in Google Dialogflow

How to publish your agent on Google Actions

Billing account linked to your Google Project of the Dialogflow Agent

Writing Firebase function:

  1. Select Fulfillment from the left menu
  2. Enable the Inline Editor
  3. Copy the following Code

4.Edit the following code according to your need

let options = {
host: 'HOST_ADDRESS',
path: 'PATH',
port: 443,
method: 'GET',
"rejectUnauthorized": false,
};

5. You can now form Rich Responses for Google Assistant according to your need.

6. You are now ready to test and publish your Action on Google Assistant.

--

--

Vaibhav Malpani
Vaibhav Malpani’s Blog

Google Developer Expert for Google Cloud. Python Developer. Cloud Evangelist.