Building an action
To build a Google Assistant Action, we need to start from Dialogflow. Broadly, the steps are as follows:
- Build a Dialogflow agent.
- Create a web app that accesses the Todoist service.
- Integrate the agent with Google Actions.
- Test it in the simulator.
- Test it on Google Home.
Building a Dialogflow agent
To build a Dialogflow agent, follow these steps:
- Go to dialogflow.com and sign in using your Google account.
- Click the drop-down menu on the left and click
Create new agent
:

- Add agent info and click
SAVE
:

- This will create a new Google project assigned to the agent. You can view the settings info by clicking the Settings icon next to the agent's name on the drop-down list.

- Let's add four intents to the agent to begin with:
greet
add_task
inform_task_description
list_all_tasks
We assume here that the user will begin the conversation with a greeting (the greet
intent) followed by a request to either add a task (add_task
) or list all tasks for the day (list_all_tasks
). In the following request...