API.AIエージェントを試しています。私はWebHooksによって達成される意図への応答を望みます。Zapier WebhooksをAPI.AIのfufillmentとして機能させる方法
WebhooksをトリガーとしてZapを作成しました。 「キャッチフック」トリガーは、API.AI履行で入力したhttps://hooks.zapier.com/hooks/catch/1111111/9aaaaa/のようなURLを私に与えました。 API.AIはこのURLに正しくJSONを送信し、ザップがトリガされ、次の例JSONを受ける:
result__fulfillment__messages: \t speech:
type: 0
id: \t 8551d99c-1ce9-4a0c-b24e-27d4c2090dbf
result__actionIncomplete: \t False
result__action: \t Trip-recommendations
result__resolvedQuery: \t all inclusive
result__metadata__intentId: \t 314e8e2f-312f-4ebd-93e1-c92da8648725
result__metadata__webhookForSlotFillingUsed: \t false
status__code: \t 200
timestamp: \t 2017-05-16T00:04:37.773Z
result__metadata__intentName: \t trip-recommendations
result__parameters__trip-who: \t family
result__parameters__trip-interest: \t all inclusive
status__errorType: \t success
lang: \t en
result__score: \t 1.0
result__source: \t agent
result__metadata__webhookUsed: \t true
sessionId: \t e28bd01f-2852-4c0c-98d8-ea03d58d87fa
Fields with no value:
result__parameters__trip-destinations
result__fulfillment__speech
result__contexts
result__speech
result__parameters__trip-recomendation-Country
result__parameters__date
result__parameters__unit-currency
result__parameters__date-period
今私は、第二段階で応答を送信しようとしています私のAPI.AIエージェントはウェブフックからの応答をインテントの実現として使用するようにZapを使用します。
- URL:API.AI履行メニューにhttps://hooks.zapier.com/hooks/catch/1111111/9aaaaa/
- ペイロードを入力したURLと同じように、私は次のパラメータを使用してウェブフックカスタム・リクエスト・アクションとしてザップの第二段階が設定されていることを行うには
タイプ:JSON
- 方法:POST
- データ:
unflatten: \t yes
url: \t https://hooks.zapier.com/hooks/catch/1111111/9aaaaa/
"fulfillment": {
"speech": "Today in Boston: Fair, the temperature is 37 F",
"source": "apiai-weather-webhook-sample",
"displayText": "Today in Boston: Fair, the temperature is 37 F"
}
method: \t POST
pass_through:
しかし、ときに私が意図に対する応答をシミュレータグーグルアシスタントにエージェントをテストするときは常にある
誰が何で私を指すことができない「私は申し訳ありません、エージェント名は現在利用できません」私は間違っている?
ありがとうございます。プログラマー以外の人々のためにその応答データを管理することを可能にする他のオートメーションサービスまたは同様のものを知っていますか? –