简体   繁体   English

如何在 google DialogFlow Webhook 中添加本地主机 URL?

[英]How to add localhost URL in google DialogFlow Webhook?

I want to link my c# api to Google DialogFlow but when I enabled webhook and past localhost URL into it, it shows error that local urls can not be added.我想将我的 c# api 链接到 Google DialogFlow,但是当我启用 webhook 并将本地主机 URL 传递给它时,它显示无法添加本地 URL 的错误。

Is there any way to add localhost url into webhook?有没有办法将 localhost url 添加到 webhook 中?

If you need to debug your code locally.You can use https://ngrok.com/ , to host local URLas web URL, This Web URL can be used in webhook .如果你需要在本地调试你的代码,你可以使用https://ngrok.com/ ,将本地 URL 作为 web URL 托管,这个 Web URL 可以在 webhook 中使用。

https://www.sitepoint.com/use-ngrok-test-local-site/ https://www.sitepoint.com/use-ngrok-test-local-site/

You cannot do it.你做不到。 Dialogflow needs public https url. Dialogflow 需要公共 https url。

However you can try some 3rd party tools like ngrok , webhookrelay但是,您可以尝试一些 3rd 方工具,例如ngrokwebhookrelay

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

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