Web Components Multiple Slots

Web Components Multiple Slots Average ratng: 5,8/10 646 votes
  1. Web Components Multiple Slots Games
  2. Web Components Multiple Slots Numbers
How to call multiple slots of a single slot type in one utterance?
Posted on: Jun 19, 2018 8:59 AM
This question is not answered. Answer it to earn points.
I'm trying to do something like this: 'find {TestSlot} and {TestSlot} and {TestSlot} and .....' except Amazon Lex doesn't necessarily let us do this (we get an error). Also, there would theoretically be a variable number of slots that we would call in the utterance, so it could be 'find {TestSlot} and {TestSlot} or it could be three, or four, and so on and so forth.
Any idea on how to do this?
Replies: 3 Pages: 1 - Last Post: Dec 10, 2020 4:51 PM by: TimManns
Re: How to call multiple slots of a single slot type in one utterance?
Posted on: Jun 19, 2018 9:03 AM
In addition, because there is a variable number of slots that could be called in the utterance, I can't simply just add another slot type with the same information.
Re: How to call multiple slots of a single slot type in one utterance?
Posted on: Jan 29, 2019 3:18 PM
Hello,
Thank you for your interest in Lex.
One approach for your use case would be to have multiple slots by different names with the same slot type. For example, {TestSlot1}, {TestSlot2}, etc. Since there can be a variable number of slots, you can specify only a minimum as required and the rest as optional. You would then provide multiple sample utterances with varying numbers of expected slot values: “find {TestSlot1} and {TestSlot2}”, “find {TestSlot1} and {TestSlot2} and {TestSlot3}”.
In order to provide further guidance, I have reached out over private message to request more details of your bot and use case.
Regards,
--Trevor
Re: How to call multiple slots of a single slot type in one utterance?
Posted on: Dec 10, 2020 4:51 PM
I too am having this same issue: I have a requirement that the same slot be called multiple times in the same utterance.
It should be possible to use the same slot multiple times in a single utterance - I consider this an undesired bug.
Using the Lex order pizza demo as an example, suppose a slot of 'pizza_type' matches to types of pizza's and a single utterance can involve a single order for multiple pizza's. I don't want to have to duplicate the slot 'pizza_type1', 'pizza_type2' etc. This is not a practical workaround (for logistical reasons).
Reply to this Thread
Answered question
Unanswered question with answer points still available
Unanswered question
Ace: 2000+ pts
Expert: 750-1999 pts
Guide: 300-749 pts
Enthusiast: 50-299 pts
Newbie: 5-49 pts
Amazonian
Web Components Multiple Slots

Web Components Multiple Slots Games

Web Components Multiple Slots

Web Components Multiple Slots Numbers

Web Components slots implementation #55. Closed GianlucaGuarini opened this issue Jun 11, 2017 6 comments Closed Web Components slots implementation #55. I'm particularly interested in composing them correctly. I have read about slots and have them working, although my efforts have not resulted in slotted webcomponents that work the way I expected. If I have compose nested web components like this, the DOM from the nested/slotted webcomponent does not get inserted in the slot of the parent. Angular ng-content and Content Projection: A Complete Guide - How To Use ng-content To Improve Component API Design Last Updated: 24 April 2020 localoffer Angular Core One of the Angular features that help us the most in building reusable components is Content Projection and ng-content. GitHub is where the world builds software. Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world. A nice solution for this is using slots. First create your 'layout component'. 'Hello world' will appear where the slot/ tag is. You can also have multiple.