【问题标题】:Azure Bot transcripts not being savedAzure Bot 脚本未保存
【发布时间】:2022-01-09 11:39:15
【问题描述】:

我有一个在 Bot Framework Composer 中开发的机器人,并实现了 Blob 脚本存储。当我在本地运行机器人时,成绩单存储工作。但是,一旦我将机器人发布到 azure,就不会保存任何成绩单。

我认为 azure bot 访问 blob 存储时出现了一些错误,但我没有看到 azure 中生成任何错误。 Blob 存储未显示任何访问尝试,向我表明该请求永远不会到达 Blob 存储。

我更新了 Blob 存储上的 CORS 以允许所有来源和方法,但这没有任何效果。

有什么建议要寻找什么或接下来要尝试什么?

【问题讨论】:

    标签: azure botframework azure-blob-storage bot-framework-composer


    【解决方案1】:

    问题在于将脚本添加到现有机器人有两个步骤。

    在 Composer 中,设置:

    1. 在 runtimeSettings > components > features 部分添加 blob 存储设置:
          "blobTranscript": {
            "connectionString": "DefaultEndpointsProtocol=https;AccountName=bottranscripts;AccountKey=<your key here>;EndpointSuffix=core.windows.net",
            "containerName": "transcripts"
          }
    

    此时,在本地运行机器人应该将脚本存储在 Azure 的 blob 存储中。

    1. 同样,在 Composer 中,检查发布设置以发布到 Azure。应该有设置
        "blobStorage": {
          "connectionString": "<ConnectionString>",
          "container": "transcripts",
          "name": "<myBotName>"
        }
    

    确保连接字符串与您在 runtimeSettings 部分中输入的内容匹配。 Azure 中的机器人将使用发布设置,而不是脚本的 runtimeSettings。

    【讨论】:

      猜你喜欢
      • 2023-04-10
      • 1970-01-01
      • 2014-12-13
      • 2020-12-22
      • 1970-01-01
      • 2021-07-27
      • 2013-02-08
      • 2020-12-21
      • 1970-01-01
      相关资源
      最近更新 更多