/bitcoin-info-action

App for the google assistant that give you information on bitcoin (e.g. price, market cap etc')

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Actions on Google Webhook example for bitcoin-info codelab (using Node.js)

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.

Demo

  • 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.

bitcoin logo

Setup Instructions

Pre-requisites

  1. Dialogflow account: https://dialogflow.com
  2. 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.

Steps

  1. 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
  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 (price and total), 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.

Analytics