【问题标题】:Fulfillment data dialogflow v2履行数据对话流 v2
【发布时间】:2018-03-01 09:43:11
【问题描述】:

如何在 dialogflow 版本 2 中返回或替换履行数据字段? 当我收到 fullfillment 时,未通知此字段,并且在文档中未提及 https://dialogflow.com/docs/reference/v2-comparison

【问题讨论】:

    标签: dialogflow-es


    【解决方案1】:

    现在是payload。 看看:https://dialogflow.com/docs/fulfillment#response

    "data": {
        "google": {
          "expectUserResponse": true,
          "richResponse": {
            "items": [
              {
                "simpleResponse": {
                  "textToSpeech": "this is a simple response"
                }
              }
            ]
          }
        },
        "facebook": {
          "text": "Hello, Facebook!"
        },
        "slack": {
          "text": "This is a text response for Slack."
        }
    }
    

    现在:

    "payload": {
        "google": {
          "expectUserResponse": true,
          "richResponse": {
            "items": [
              {
                "simpleResponse": {
                  "textToSpeech": "this is a simple response"
                }
              }
            ]
          }
        },
        "facebook": {
          "text": "Hello, Facebook!"
        },
        "slack": {
          "text": "This is a text response for Slack."
        }
      }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-09-14
      • 1970-01-01
      • 1970-01-01
      • 2018-07-30
      • 2019-11-23
      • 1970-01-01
      • 2019-01-16
      相关资源
      最近更新 更多