How do I get user input Slot name in Lambda

0

Hi, I am working on AWS lex v2 console. My Lambda is in JavaScript. I can retrieve user input with following command: let userInput = event.inputTranscript;

I want to know how do I get slot name of current user input?

profile picture
asked 24 days ago275 views
1 Answer
0

Hi,

You can use the version GetSlotTypes (plural) API in your favorite (SDK): JavaScript in your case.

You will receive a list of all current slot types, where you can filter the one interesting for you.

See https://docs.aws.amazon.com/cli/latest/reference/lex-models/get-slot-types.html to understand this API via its CLI version.

Best,

Didier

profile pictureAWS
EXPERT
answered 24 days ago
  • Hi Didier, Thanks for your prompt reply. I am looking for Slot name not Slot types.

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