Dialogflow请求未接收到所有数据

时间:2018-07-02 21:17:31

标签: json swift curl dialogflow

我制作了一个Dialogflow代理,它可以完美地在Web版本上运行,但是当查询与实体匹配时,iOS客户端不会接收到实现字段。

以下是网络json响应的一个示例:

{
  "responseId": "da8588ce-c447-412f-a71e-e98b8552e1a1",
  "queryResult": {
    "queryText": "metlife",
    "action": "qualify.wantToMakeCoPayCardQuestion",
    "parameters": {
      "prov": "Metlife"
    },
    "allRequiredParamsPresent": true,
    "fulfillmentText": "Yes you Metlife qualifies<Would you like to generate a co-pay card?",
    "fulfillmentMessages": [
      {
        "text": {
          "text": [
            "Yes you Metlife qualifies<Would you like to generate a co-pay card?"
          ]
        }
      }
    ],
    "outputContexts": [
      {
        "name": "projects/h-ac087/agent/sessions/061f4b0d-7622-54a4-b43d-57f9c0421807/contexts/provider",
        "lifespanCount": 5,
        "parameters": {
          "prov.original": "metlife",
          "prov": "Metlife"
        }
      },
      {
        "name": "projects/h-ac087/agent/sessions/061f4b0d-7622-54a4-b43d-57f9c0421807/contexts/canyoucheckifmyinsurancecovershumira-followup",
        "lifespanCount": 1,
        "parameters": {
          "prov.original": "metlife",
          "prov": "Metlife"
        }
      },
      {
        "name": "projects/h-ac087/agent/sessions/061f4b0d-7622-54a4-b43d-57f9c0421807/contexts/canyoucheckifmyinsurancecovers-custom-followup",
        "lifespanCount": 2,
        "parameters": {
          "prov.original": "metlife",
          "prov": "Metlife"
        }
      }
    ],
    "intent": {
  "name": "projects/h-ac087/agent/intents/77983090-84b2-4c19-86c1-790b1dd9eaff",
  "displayName": "What is the name of your insurance provider?"
},
"intentDetectionConfidence": 1,
"diagnosticInfo": {},
"languageCode": "en"
  }
}

但是,iOS客户端仅收到以下信息: client json

任何帮助将不胜感激!

0 个答案:

没有答案