简体   繁体   English

履行数据对话流 v2

[英]Fulfillment data dialogflow v2

How is fulfillment data field returned or replaced in dialogflow version 2?在 dialogflow 版本 2 中如何返回或替换履行数据字段? When I receive the fullfillment this field is not informed, and in the documentacion https://dialogflow.com/docs/reference/v2-comparison is not mentioned.当我收到全文时,不会通知此字段,并且在文档https://dialogflow.com/docs/reference/v2-comparison中未提及。

This is now payload .现在是payload Have a look at: https://dialogflow.com/docs/fulfillment#response看看: 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."
    }
}

Is now:就是现在:

"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."
    }
  }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM