Search code examples
node.jsaws-lambdaalexa-skills-kit

How do I make Intent Slots dynamic?


I am trying to make my intent slots dynamic allowing users to say anything for the slot.


Example:

Alexa Skill: What is your email address

User: my email is [email protected]

Alexa Skill: Just to confirm, your email is, [email protected].


Solution

  • Use AMAZON.SearchQuery Slot Type to capture whatever user say in your endpoint.It will capture the whole phrase that the user said and then you can apply your business logic on it.