greenido / apiai-webhook-template-nodejs

API.AI Webhook Template for Actions on Google

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Actions on Google Webhook Template using Node.js

This webhook template sets up everything you need to build your fulfillment business logic for your API.AI agent.

Setup Instructions

Pre-requisites

  1. API.AI account: https://api.ai
  2. Google Cloud project: https://console.cloud.google.com/project

See the developer guide and release notes at https://developers.google.com/actions/ for more details.

Steps

  1. Create a new agent in API.AI https://api.ai.
  2. Deploy this action to your preferred hosting environment (we recommend Google Cloud Functions).
  3. Set the "Fulfillment" webhook URL to the hosting URL.
  4. In any relevant intents, enable the Fulfillment for the response.
  5. Build out your agent and business logic by adding function handlers for API.AI actions.
  6. For each API.AI action, set a new key/value pair on the actionMap, reflecting the action name and corresponding function handler on the actionMap in index.js.
  7. Make sure all domains are turned off.
  8. Enable Actions on Google in the Integrations.
  9. Provide an invocation name for the action.
  10. Authorize and preview the action in the web simulator.

For more detailed information on deployment, see the documentation.

References and How to report bugs

How to make contributions?

Please read and follow the steps in the CONTRIBUTING.md.

License

See LICENSE.md.

Terms

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.

Google+

Actions on Google Developers Community on Google+ https://g.co/actionsdev.

About

API.AI Webhook Template for Actions on Google

License:Apache License 2.0


Languages

Language:JavaScript 100.0%