最近在C#中使用Lex时,我引用了AWSCore.dll和AWSLex.dll,并且仍然试图获得一个方法来公开我在Aamazon服务器中创建的所有可用的Lexchatbots机器人。
var amazonPostRequest = new Amazon.Lex.Model.PostContentRequest();
var amazonPostResponse = new Amazon.Lex.Model.PostContentResponse();
使用这两种方法来获取所有其他信息。请求机器人名称和别名的方法是用于设置的,并且没有响应方法来获取服务器中可用的Lexchatbots机
我能够成功地
1)使用Amazon lex和自定义意图创建聊天机器人,我在测试机器人中进行了测试
2) I used the amazon javascript sdk : aws-sdk-2.41.0.min.js to access the amazon lex bot from my web application
根据亚马逊文档上的定义:
只有两种方式可以发送数据
postContent(params = {}, callback) ⇒ AWS.Request
Sends user input (text or speech) to Amazon Lex.
post
我在使用Amazon服务。我的输入总是一条短信,但有时除了文字之外,我还想要一个口头回应。我在Lex设置中配置了一个输出语音。
我尝试向请求中添加一个头amz-lex:accept-content-types=SSML,但是它会返回Invalid Bot Configuration: No usable messages given the current slot and sessionAttribute set. (Service: AmazonLexRuntime; Status Code: 400; Error Code: BadRequestException;。当我请求PlainT
我对Amazon Lex的语音输入编码有问题。
如果我将InputStream赋值为null,它就会起作用,我会收到来自Lex的默认语音回答:“我能帮你什么吗?”
var amazonLexClient = new AmazonLexClient("APPID", "APPSECRET", Amazon.RegionEndpoint.USEast1);
var amazonPostRequest = new Amazon.Lex.Model.PostContentRequest();
var
我正在尝试从lambda函数访问amazon。Lambda函数从聊天机器人向lex发送输入消息。当我试图发送文本时,它给了我一个错误。
errorMessage: "An error occurred (AccessDeniedException) when calling the RecognizeText operation: User: arn:aws:sts::524709025091:assumed-role/LF0-role-0nuz6ho1/LF0 is not authorized to perform: lex:RecognizeText on resource: a