简体   繁体   English

API.ai Webhooks

[英]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. 我正在尝试使用API​​.ai创建一个机器人,并且为了创建全局参数,我需要添加一个Webhook。 The doc says I need Google Cloud Project but I need to put billing info which I don't have. 文档说我需要Google Cloud Project,但是我需要输入我没有的账单信息。 Is there any way not to do that or maybe use an alternative webhook option? 有没有办法不这样做,或者使用其他的webhook选项?

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. 您可以按照入门指南中的说明使用Cloud Functions for Firebase,而无需设置结算,但是,如果不设置结算,就不能调用非Google API或URL。

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. 您还可以使用任何其他托管服务提供商(Google的AppEngine,Compute Engine,Amazon的Lambda,EC2,Heroku,Azure等)来实现API.AI代理,只要您拥有可以响应HTTPS请求的服务器,将与API.AI的webhook实现配合使用。 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/ 首先,您甚至可以使用本地计算机和工具,例如ngrok来将连接从HTTPS URL隧道传输到本地开发计算机: 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. 如果您要创建一个Webhook,则需要将其托管在aws / azure / google云上,以便通过http / https来使用服务,这肯定会在免费服务过期或达到支出限额后开始向您收费。 Instead, api.ai (dialogflow) has now an inbuilt inline editor where you can build and manage fulfillment directly & deploy your services to firebase. 取而代之的是,api.ai(dialogflow)现在具有内置的内联编辑器,您可以在其中直接构建和管理实现,以及将服务部署到Firebase。 You can get more details over following link, please refer, 您可以通过以下链接获取更多详细信息,请参考,

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

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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