简体   繁体   中英

Any way to create custom slot values in Alexa Lambda function?

I am currently making a skill which has a custom slot type called "products", but this skill will be used by many different sellers that will have different products, so I cannot know ahead of time which values will populate this slot. If I define an empty slot type called "products", is there a way to fill the slot type with values IN the Lambda NodeJS code? All I would need to do is make a HTTP request to that specific person's database.

Or possibly could there be a way to define a pseudo-slot in the lambda code with words that Alexa will associate with a slot type?

I think the slot must be defined in the Intent Schema, and you would have to provide the list of possible names of products for that slot. Possible solution would be to use the LITERAL slot type.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM