Expose API over Google Assistant Bot| Dialogflow and Actions on Google
Published in
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:
- Select Fulfillment from the left menu
- Enable the Inline Editor
- 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.