Skip to content

Google Actions Dialog flow code example with JS function and array usage

License

Notifications You must be signed in to change notification settings

chefgs/aog_trivia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aog_trivia

Google Actions Project for JS function example

This project has been created for developers, interested to getting started with Google Actions using Dialogflow and Google Actions Console.

Instructions to use the repo


1. Users can download the source code as zip from here
or
Install Git Bash for Windows and use below commands to clone the repo code
2. Use git command to checkout the code
git clone https://github.com/chefgs/aog_trivia.git

Source file details

agent.json - Dialog flow agent file
package.json - Agent version file
"intent" Directory - contains the Default intents and custom intents made for the Google actions conversations
"fulfillment_webhook" Directory - contains the node.js source files. These files can be used to create the Fulfillment webhook for the agent. These webhooks are written in node.js, uses "Google Cloud functions" deployed in Google Firebase.

Tutorials and Guides

Google Actions Getting Started
https://developers.google.com/actions/smarthome/

Google Actions create actions
https://codelabs.developers.google.com/codelabs/actions-1/#0

Dialogflow Console Getting Started
https://dialogflow.com/docs/getting-started

Dialogflow Agents
https://dialogflow.com/docs/agents

Dialogflow Fullfillment for Google Actions
https://dialogflow.com/docs/getting-started/integrate-services-actions-on-google
Use source files available in "fulfillment_webhook" Directory

Quick start tips

Developers who has experience in Dialogflow can download the "aog_trivia.zip" file.
Create an agent with the preferred name.
Export the aog_trivia.zip file as instant agent from "Dialogflow agent settings".
Once the agent is created fullfilment webhook can be enabled and use the files available in "fulfillment_webhook" Directory to add firebase code.