Watson:Slots JSON中的快速回复

时间:2018-04-23 18:51:44

标签: json watson watson-conversation

我试图在Watson对话框插槽中插入Facebook快速回复。我设法在节点级别执行此操作,但无法在插槽级别执行此操作。我使用的语法是这个 - 与节点级别的语法相同,除了我指定上下文变量@ stress_q1:

{
  "context": {
    "stress_q1": "@stress_q1"
  },
  "output": {
    "text": {
      "values": [
        "Q1: I've been feeling optimistic about the future."
      ],
      "selection_policy": "sequential"
    },
    "context": {
      "facebook": {
        "text": "I've been feeling optimistic about the future.",
        "quick_replies": [
          {
            "title": "None of the time",
            "payload": "None of the time",
            "content_type": "text"
          },
          {
            "title": "Rarely",
            "payload": "Rarely",
            "content_type": "text"
          },
          {
            "title": "Some of the Time",
            "payload": "Some of the Time",
            "content_type": "text"
          },
          {
            "title": "Rarely",
            "payload": "Rarely",
            "content_type": "text"
          },
          {
            "title": "All of the time",
            "payload": "All of the time",
            "content_type": "text"
          }
        ]
      }
    }
  }
}

0 个答案:

没有答案