首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Bot Framework Composer切换请求错误

Bot Framework Composer切换请求错误
EN

Stack Overflow用户
提问于 2022-09-07 13:13:10
回答 1查看 37关注 0票数 0

在中,我似乎无法成功地发送切换请求。在单击"Start bot“时,我得到了错误错误: Dialog.onComputeId():not。完全错误日志:

代码语言:javascript
复制
Error occurred building the bot

Error: Dialog.onComputeId(): not implemented. 
at SendHandoffActivity.onComputeId (C:\Users\User\Handoff\Handoff\node_modules\botbuilder-dialogs\lib\dialog.js:336:15) 
at SendHandoffActivity.get id [as id] (C:\Users\User\Handoff\Handoff\node_modules\botbuilder-dialogs\lib\dialog.js:133:29) 
at C:\Users\User\Handoff\Handoff\node_modules\botbuilder-dialogs-adaptive\lib\actions\actionScope.js:276:57 
at Array.map (<anonymous>) 
at ActionScope.onComputeId (C:\Users\User\Handoff\Handoff\node_modules\botbuilder-dialogs-adaptive\lib\actions\actionScope.js:276:34) 
at ActionScope.get id [as id] (C:\Users\User\Handoff\Handoff\node_modules\botbuilder-dialogs\lib\dialog.js:133:29) 
at DialogSet.add (C:\Users\User\Handoff\Handoff\node_modules\botbuilder-dialogs\lib\dialogSet.js:126:71) 
at C:\Users\User\Handoff\Handoff\node_modules\botbuilder-dialogs-adaptive\lib\adaptiveDialog.js:140:75 
at Array.forEach (<anonymous>) 
at AdaptiveDialog.ensureDependenciesInstalled (C:\Users\User\Handoff\Handoff\node_modules\botbuilder-dialogs-adaptive\lib\adaptiveDialog.js:140:43)

bot是一个空的机器人,具有“未知意图”中的“发送切换请求”。完整的机器人代码:

代码语言:javascript
复制
{
  "$kind": "Microsoft.AdaptiveDialog",
  "$designer": {
    "name": "Handoff",
    "description": "",
    "id": "A79tBe"
  },
  "autoEndDialog": true,
  "defaultResultProperty": "dialog.result",
  "triggers": [
    {
      "$kind": "Microsoft.OnConversationUpdateActivity",
      "$designer": {
        "id": "376720"
      },
      "actions": [
        {
          "$kind": "Microsoft.Foreach",
          "$designer": {
            "id": "518944",
            "name": "Loop: for each item"
          },
          "itemsProperty": "turn.Activity.membersAdded",
          "actions": [
            {
              "$kind": "Microsoft.IfCondition",
              "$designer": {
                "id": "641773",
                "name": "Branch: if/else"
              },
              "condition": "=string(dialog.foreach.value.id) != string(turn.Activity.Recipient.id)",
              "actions": [
                {
                  "$kind": "Microsoft.SendActivity",
                  "$designer": {
                    "id": "859266",
                    "name": "Send a response"
                  },
                  "activity": "${SendActivity_Greeting()}"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "$kind": "Microsoft.OnUnknownIntent",
      "$designer": {
        "id": "mb2n1u"
      },
      "actions": [
        {
          "$kind": "Microsoft.SendHandoffActivity",
          "$designer": {
            "id": "74xAHm"
          },
          "context": {
            "context": "c"
          },
          "transcript": {
            "transcript": "t"
          }
        }
      ]
    }
  ],
  "generator": "Handoff.lg",
  "id": "Handoff",
  "recognizer": "Handoff.lu.qna"
}

我没有在Google/Stack溢出上找到任何东西。任何帮助都将不胜感激。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-09-14 17:29:25

根据交给人或虚拟代理,您需要为平台安装一个适当的切换包,当您使用一个发送越区切换请求活动时,您希望将对话传递给该平台。

以下是可用的切换包

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73636177

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档