# Actions on Google / Google Assistant

### How does Actions on Google work?

10k view:\
`voice -> parse (via API.AI) -> fullfillment (via API.AI or Lambda)`

Detail view:\
`Voice -> API.AI -> Intents -> Entity (similar to enum) + Action (ex, 'list.tasks') -> Response: in API.AI or webhook (-> Lambda)`

For fullfillment, you can use local machine with ngrok or, you can deploy Lambda directly to staging.

## Actions on Google

Componenet:

* <https://github.com/actions-on-google/conversation-components-nodejs/blob/master/api-ai/index.js>
* <https://developers.google.com/actions/reference/nodejs/Carousel>

Sample with Lambda:

* <https://github.com/bradyholt/google-action-tiger/blob/master/lambda-function/index.js>

## API.AI

the doc is outdates, UI is different now

* <https://docs.api.ai/docs/concept-events>

## TODO

* Get Started page: <https://developers.google.com/actions/distributing-your-apps>
* <https://developers.google.com/actions/components/>
* Deployment guide: <https://developers.google.com/actions/apiai/deploy-fulfillment>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://zurassic.gitbook.io/10x-developer/serverless/actions_on_google.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
