Detect phone number in Lex/Lambda from a Twilio SMS service

0

Hi all,

I'm building a chatbot using: Twilio -> Lexv2 -> Lambda

I would like to capture the phone number of the user that is currently texting the bot in order to log information about the interaction along with a couple of other things.

Right now the only request attribute that is coming across in the event is:

"x-amz-lex:channels:platform": "Twilio"

Is there anything I need to enable in order to get the phone number that started the interaction passed through in the request attributes?

asked a year ago311 views
1 Answer
0

Hi,

Unfortunately, at the moment Lex V2 is passing only the attribute you pointed and nothing can be done to get the phone number.

AWS
Satish
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions