Integrating Google Calendar API with Dialogflow's Fulfillment & Knowledge Connectors
To create this agent from our template:
bike-shop-calendar
for the name and click Create. In the popup, select Create Without Role.
client_email
field// Ex:
bike-shop-calendar@${PROJECTID}.iam.gserviceaccount.com
Bike Shop
for the name of the calendar and select Create Calendar. Next, go to the Bike Shop
calendar that will appear on the left column.index.js
file in Dialogflow's Fulfillment section
<INSERT CALENDAR ID HERE>
on line 24 of index.js
.// Ex:
const calendarId = '[email protected]';
index.js
const serviceAccount = {}
.//Ex:
const serviceAccount = {
"type": "service_account",
"project_id": "bikesample",
...
};
bike-shop-faq.csv
in this repo > Raw > Copy the contents to a file on your computer.Bike Shop
then Save
Bike Shop FAQ
for document name,text/csv
for the "Mime Type",FAQ
for the "Knowledge type",Upload file from computer
to upload bike-shop-faq.csv
> Create.$Knowledge.Answer[1]
> Save.do you sell ebikes?
. You should see the exact response from the CSV you just uploaded: "We sell Electric bikes. We also can outfit your existing bike with a retrofit Bionx electric wheel kit. We do not do gas powered conversions."My bike is broken
and respond to the questions your Dialogflow agent asks. After getting the required information, an appointment will be added to the "Bike Shop Calendar" calendar.Please read and follow the steps in the CONTRIBUTING.md.
See LICENSE.
Your use of this sample is subject to, and by using or downloading the sample files you agree to comply with, the Google APIs Terms of Service.