【问题标题】:How do I build an Amazon Lex Bot using the rest API?如何使用其余 API 构建 Amazon Lex 机器人?
【发布时间】:2017-11-10 12:28:04
【问题描述】:

根据http://docs.aws.amazon.com/lex/latest/dg/API_Operations_Amazon_Lex_Model_Building_Service.html 您可以创建或更新机器人和意图/插槽(Put{Bot|Intend|Slot}、Create{Bot|Intend|Slot}Version)。

因此,通过使用 Put*,我可以配置一个机器人,并使用 Create*Version 我可以发布一个,但要发布它,首先您需要构建它,而我找不到用于此的 API 方法。

【问题讨论】:

  • 我猜它不可用...

标签: amazon-web-services amazon-lex


【解决方案1】:

当使用PutBot 时,您可以提供带有值BUILD--process-behavior 标志来强制构建。

来自文档:

如果您将 processBehavior 元素设置为 Build,Amazon Lex 会构建机器人以便它可以运行。如果您将元素设置为Save,Amazon Lex 会保存自动程序,但不会构建它。如果不指定此值,则默认值为Save

【讨论】:

    【解决方案2】:

    如果您使用 CLI,您可以在 json 文件中添加以下行:

    “过程行为”:“构建”,

    它将构建机器人。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-01
      • 1970-01-01
      • 2021-01-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多