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?

gefragt vor einem Jahr318 Aufrufe
1 Antwort
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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen