Awesome Open Source
Awesome Open Source

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.


  • 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


  1. Dialogflow account:
  2. Google Cloud project: or you can use this glitch template to have your webhook hosted on Glitch.

See the developer guide and release notes at for more details.


  1. Create a new agent in 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




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+


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,538,296
Php (402,597
Bitcoin (4,392
Google (3,224
Google Cloud (1,010
Dialogflow (427
Assistant (416
Glitch (219
Related Projects