pythonamazon-web-servicesslackaws-lex

Uploading a file to Amazon Lex


I'm creating a chatbot with Amazon Lex and the idea is that a user can drop an Excel file into a Slack channel and the bot sends the file to the appropriate Lambda function. What is the best way to achieve this goal?

It would also be acceptable if the Lex bot uploads the file somewhere else accessible (s3, EC2, Github, etc.) and then sends the address to the Lambda functions.

I do not see any SlotTypes that support this type of input.


Solution

  • Lex PostText or PostContent method doesn't support the upload load files.