亚马逊lex chatbot可以接受图像作为输入吗?
问题描述:
我想构建一个接受图像作为输入的深度学习聊天机器人应用程序。
我已经构建了一个集成了接受图像的AWS识别功能的lambda函数。现在,我想扩展此lambda函数,并将其连接到Amazon Lex bot,用户可以在其中上传图像进行分析。
I want to build a deep learning chatbot application which accepts image as input. I have built a lambda function integrating AWS rekognition that accepts image.Now, i want to extend this lambda function, and connect it to Amazon Lex bot , where user can upload the image for analysis.
答
AWS Lex Chatbot无法接受图像,但有可能通过整合您的 Amazon Lex Bot 和 Amazon API Gateway 。
AWS Lex Chatbot can't accept image but Its possible by Integrate your Amazon Lex Bot with Amazon API Gateway.
- 您的应用程序API调用由
AWS API Gateway托管的HTTPS终端节点。 - API网关处理Lambda函数。
- Lambda函数运行您的业务逻辑并使用PostText / PostContent与您的Chatbot通信或调用AWS Rekognition服务完成后,使用Lambda函数调用您的Chatbot。
- 您将获得响应。
- Your application API call to the HTTPS endpoint hosted by AWS API Gateway.
- API Gateway deal With Lambda function.
- Lambda function runs your business logic and uses the PostText/PostContent to communicate with your Chatbot or call AWS Rekognition service on completion call your Chatbot using Lambda function.
- You will get response.
更多详细信息。