将结果从Azure机器人技术机器人

时间:2020-10-01 03:58:39

标签: node.js azure-bot-service

我已经使用了示例https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/javascript_nodejs/81.skills-skilldialog

清单:

技能javascript:

await context.sendActivity({
                        value: {
                            result: context.activity.text
                        },
                        valueType: 'object',
                        type: ActivityTypes.EndOfConversation,
                        code: EndOfConversationCodes.CompletedSuccessfully
                    }, undefined, InputHints.IgnoringInput);

在清单中:


    "skillOutput": {
        "type": "object",
        "required": [
        ],
        "properties": {
            "result": {
                "type": "string",
                "title": "selected string"
            }
        }
    }

可以帮忙吗?该机器人不会将结果委托给PVA

0 个答案:

没有答案