aws-lex-web-ui
aws-lex-web-ui copied to clipboard
Send and receive .xml( Excel Files) and .jpg/.png (Image Files) through aws Lex Lambda in the form of Attachment
def fulfilled_close(session_attributes):
return {
"sessionAttributes": session_attributes,
"dialogAction": {
"type": "Close",
"fulfillmentState": "Fulfilled",
"message": {
"contentType": "PlainText",
"content": "message"
}
}
}
In this code Instead of content type as plain Text, I would like to pass an Image and an Excel file
So the "content type" should be : "Image" or "Excel" And the "content" should be: image_object or an s3 bucket file containing .xls or .jpg file, or any file as a matter of fact.
I want the client to be able to receive the attached image and excel file, and the client should be able to download it. I also want to receive the attachments sent from clients in my 'event' object.
I am using twilio service along with my Lex bot. And I am wanting to achieve it specifically for WhatsApp service?
Is there a way to achieve it?