简体   繁体   中英

API.ai Webhooks

I'm trying to create a bot with API.ai and in order to create global parameters and such I need to add a webhook. The doc says I need Google Cloud Project but I need to put billing info which I don't have. Is there any way not to do that or maybe use an alternative webhook option?

You can use Cloud Functions for Firebase as mentioned in the getting started guide without setting up billing, but you can't call non-Google APIs or URLs without setting up billing.

You can also use any other hosting providers (Google's AppEngine, Compute Engine, Amazon's Lambda, EC2, Heroku, Azure, etc.) for fulfilling API.AI agents, as long as you have a server that can respond to a HTTPS request, it'll work with API.AI's webhook fulfillment. To get started you can even use your local machine and tools like ngrok to tunnel the connection from a HTTPS url to your local development machine: https://ngrok.com/

If you're creating a webhook, you need to host it somewhere like on aws/azure/google cloud to consume services through http/https, which will surely start billing you after free services are expired or if you reach to your spending limit. Instead, api.ai (dialogflow) has now an inbuilt inline editor where you can build and manage fulfillment directly & deploy your services to firebase. You can get more details over following link, please refer,

https://dialogflow.com/docs/how-tos/getting-started-fulfillment

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM