【问题标题】:How to automate addition of intents from existing intents list to existing AWS LEX BOT using python如何使用 python 自动将现有意图列表中的意图添加到现有 AWS LEX BOT
【发布时间】:2020-09-30 18:30:05
【问题描述】:

创建了一个带有意图的 json 文件并将其上传到 S3。

从 S3 使用 python 创建(put_intent api)AWS lex 中的意图。

意图已添加到现有意图列表中。

如何使用 python 将新创建的意图添加到现有 BOT,或者如何从现有意图自动将意图添加到现有 Lex Bot

【问题讨论】:

    标签: python amazon-web-services android-intent automation amazon-lex


    【解决方案1】:

    我能够找到解决方案,解决方案是在 boto3 库中使用 put_bot api。我们应该在 put_bot api 中提到意图列表。 put_bot 将更新或创建具有上述意图的机器人。如果我们正在使用 put_bot api 更新具有意图的机器人,那么它会删除所有现有意图,并且只删除 api 调用中提到的意图,这意味着它将现有机器人替换为新机器人。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-06-17
      • 2018-08-02
      • 2022-01-06
      • 1970-01-01
      • 2015-08-03
      • 1970-01-01
      • 2014-06-14
      相关资源
      最近更新 更多