履行数据 dialogflow v2

Fulfillment data dialogflow v2

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

现在是 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."
    }
  }