是否可以根据用户参数输入自动生成 amazon lex 聊天机器人?

Is it possible to automatically generate an amazon lex chatbot based on user parameter input?

是否可以根据用户的输入生成 amazon lex bot。我想创建一个软件,它接受某些参数的输入,从而生成 amazon lex 文件,然后上传并发布到 AWS?我已经开始研究这样做的方法,我可以看到在某种程度上我可以创建 amazon lex bot 文件并手动导入它们,但是有没有更简单的方法可以使这个过程自动化。

生成 Lex 机器人的最简单方法是使用 AWS Sam to upload JSON files describing the desired Lex features. You may need to add additional instructions for permissions through the aws command-line utility

首先,您可能希望在 Lex 中构建 shared/common 功能,导出它们,然后修改 JSON 文件以实现自动化。

使用这样的部署过程还可以在将来部署自动更新。