在IBM Watson聊天对话框中,IBM CLOUD函数操作需要很长时间才能响应

问题描述 投票:1回答:1

enter image description here

嗨,我正在创建一个聊天机器人。我在IBM开发了一个IBM云功能(动作)。

这是动作代码..

{
  "context": {
    "my_creds": {
      "user": "ssssssssssssssssss",
      "password": "sssssssssssssssssssssss"
    }
  },
  "output": {
    "generic": [
      {
        "values": [
          {
            "text": ""
          }
        ],
        "response_type": "text",
        "selection_policy": "sequential"
      }
    ]
  },
  "actions": [
    {
      "name": "ssssssssssss/user-detail",
      "type": "server",
      "parameters": {
        "name": "<?input.text?>",
        "lastname": "<?input.text?>"
      },
      "credentials": "$my_creds",
      "result_variable": "$my_result"
    }
  ]
}

现在我的动作用户详细信息在我调用代码时给出响应。 enter image description here

但是当我用聊天机器人检查输出时,我正在执行云功能操作花了太长时间。

ibm-watson
1个回答
2
投票

对于从对话节点调用的云功能,处理时间目前有5秒的限制。如果您的流程需要的时间超过此时间,则需要通过应用层在客户端进行。

© www.soinside.com 2019 - 2024. All rights reserved.