【问题标题】:Dialogflow - Fulfillment Webhook Response different from DocumentationDialogflow - 与文档不同的实现 Webhook 响应
【发布时间】:2018-01-12 12:35:20
【问题描述】:

我目前正在将 Dialogflow 与fulfillment/webhooks 结合使用。

在履行的 documentation 中有一个 webhook 的示例 POST 请求:

POST body:

{
    "contexts": [
                    string
    ],
    "lang": string,
    "query": string,
    "sessionId": string,
    "timezone": string
}

我收到的请求与文档中定义的请求不同。有人知道为什么吗?

这是我收到的:

{
    "id": "GUID",
    "timestamp": "2018-01-12T12:25:32.202Z",
    "lang": "de",
    "result": {
        "source": "agent",
        "resolvedQuery": "Test",
        "speech": "",
        "action": "",
        "actionIncomplete": false,
        "parameters": {
            "Nummer": ""
        },
        "contexts": [],
        "metadata": {
            "intentId": "XYZ",
            "webhookUsed": "true",
            "webhookForSlotFillingUsed": "false",
            "intentName": "Intent"
        },
        "fulfillment": {
            "speech": "",
            "messages": [{
                "type": 0,
                "speech": ""
            }]
        },
        "score": 0.6700000166893005
    },
    "status": {
        "code": 200,
        "errorType": "success",
        "webhookTimedOut": false
    },
    "sessionId": "GUID"
}

【问题讨论】:

    标签: webhooks dialogflow-es


    【解决方案1】:

    我发现不同的调用源向网络挂钩发送的数据略有不同。

    例如,Google Action 模拟器将在上下文回复中发送与意图中的测试窗格不同的信息。

    我猜答案可能在于您调用网络钩子的位置/方式。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-21
      • 1970-01-01
      相关资源
      最近更新 更多