This webhook example for bitcoin-info codelab sets up everything you need to build your fulfillment business logic for your API.AI bitcoin agent. It could fetch the current price, market cap or the total amount of bitcoins.
- Check it live as Assistant App Bitcoin Info or on the web
- Read more about it here
- (!) Psst... Want to get a cool intro to bitcoin? Checkout this short video I made.
- Dialogflow account: https://dialogflow.com
- Google Cloud project: https://console.cloud.google.com/project or you can use this glitch template to have your webhook hosted on Glitch.
See the developer guide and release notes at https://developers.google.com/actions/ for more details.
- Create a new agent in API.AI https://api.ai. You can also take this repo as a zip and import it to API.AI
- Deploy this action to your preferred hosting environment (we recommend Google Cloud Functions).
- Set the "Fulfillment" webhook URL to the hosting URL.
- In any relevant intents (price and total), enable the Fulfillment for the response.
- Build out your agent and business logic by adding function handlers for API.AI actions.
- 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.
- Make sure all domains are turned off.
- Enable Actions on Google in the Integrations.
- Provide an invocation name for the action.
- Authorize and preview the action in the web simulator.
For more detailed information on deployment, see the documentation.
- Actions on Google documentation: https://developers.google.com/actions/.
- If you find any issues, please open a bug here on GitHub.
- Questions are answered on StackOverflow.
Please read and follow the steps in the CONTRIBUTING.md.
See LICENSE.md.
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.
Actions on Google Developers Community on Google+ https://g.co/actionsdev.