如何在 IBM Watson Assistant(对话)中获取 vaule @sys-time?

How I can get the vaule @sys-time in IBM Watson Assistant (Conversation)?

如何获取时间的价值? 这是我的代码,但我看不到时间

{
  "context": {
    "time": "@sys-time"
  },
  "output": {
    "text": {
      "values": [
        "Is $time"
      ]
    }
  }
}

您需要使用 evaluation syntax:

{
  "context": {
    "time": "<? @sys-time ?>"
  },
  "output": {
    "text": {
      "values": [
        "Is $time"
      ]
    }
  }
}

您还需要确保在对话框中提到了与时间相关的内容。 sys-time没有系统时间,但用户输入与时间有关。

我有几个examples collected in this GitHub repository.