如何使用其余API构建Amazon Lex Bot?

编程入门 行业动态 更新时间:2024-10-11 19:14:22
本文介绍了如何使用其余API构建Amazon Lex Bot?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

根据 docs.aws.amazon/lex/latest/dg/API_Operations_Amazon_Lex_Model_Building_Service.html 您可以创建或更新漫游器和意图/插槽(放置{Bot | Intend | Slot},创建{Bot | Intend | Slot} Version).

According to docs.aws.amazon/lex/latest/dg/API_Operations_Amazon_Lex_Model_Building_Service.html you can create or update bots and intents/slots (Put{Bot|Intend|Slot}, Create{Bot|Intend|Slot}Version).

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

So by using Put* I can configure a bot and with Create*Version I can publish one, but in order to publish it, first you need to build it and I can't find an API method for that.

推荐答案

使用PutBot时,可以为--process-behavior标志提供值BUILD来强制构建.

When using PutBot you can supply the --process-behavior flag with value BUILD to force a build.

从文档中:

如果将processBehavior元素设置为Build,则Amazon Lex会构建机器人以使其可以运行.如果将元素设置为Save,Amazon Lex将保存该机器人,但不会对其进行构建.如果未指定此值,则默认值为Save.

If you set the processBehavior element to Build, Amazon Lex builds the bot so that it can be run. If you set the element to Save Amazon Lex saves the bot, but doesn't build it. If you don't specify this value, the default value is Save.

更多推荐

如何使用其余API构建Amazon Lex Bot?

本文发布于:2023-11-28 05:58:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641204.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何使用   API   Amazon   Lex   Bot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!