0

I have created an Agent using API.ai and was wondering if it's possible to prompt the user in the Google Home app for the webhook URI. My use case involves multiple users each with their own instance of a web service that they maintain. I'd like for the agent to be public, but allow the users via the Google Home app or otherwise to specify the webhook URI.

4

2 に答える 2

0

はい、できます!ユーザーに Webhook を要求し、それをアプリ内のアカウントに結び付けます。

アカウントからリクエストが届いたら、アプリで Webhook を呼び出します。

ここで例を見る

于 2016-12-18T02:23:49.810 に答える
0

Google は、使用するすべての Webhook が承認された ID まで追跡できることを確認する必要があるため、人々が独自の Webhook をエージェントに直接接続できるようにする方法を実装する可能性は低いです。

最も明白な回避策は、ユーザーがサービスでアカウントを作成し、Webhook を登録できるようにすることです。次に、Google アシスタントとその実装の間のプロキシとして機能します。

于 2016-12-19T18:24:53.733 に答える