Reputation: 710
Is there a way to receive or get the image sent from Facebook Messenger Chatbot to Amazon Lex?
Currently when I send an image to my chatbot in Facebook Messenger it doesn't reply or have the "seen" status.
Upvotes: 0
Views: 548
Reputation: 6800
You should setup an API Gateway which will connect to your FB bot.
This API Gateway will forward the request to Lambda function, which will do pre-processing, image processing etc, then forward the request to Lex using PostText (if required) or directly reply to your FB bot. Lex, then, can call one more Lambda function as it normally does.
Your architecture will then look like below image:
Instead of Twillio you can use Facebook, and in the Lambda function you can decide which requests to forward to Lex and where you need to apply image processing or anything.
See this link for detailed information.
Hope it helps.
Upvotes: 1
Reputation: 2655
Unfortunately, no.
AWS Lex is a conversation bot that only responds to voice and text.
Upvotes: 5