An example capsule of the following solution is provided as an attachment to show the code in action.
This is a multi-part solution:
- Create a new Action that accepts zero inputs and outputs all the possible values you would like the user to select from to input into your original Action.
- Add a default-init to your original Action's input collect that launches the new Action. This will ensure that, if no valid inputs are provided by the user's utterance, the new Action will be launched first
- Create an `input-view` that lists out the values outputted by your new Action and requests the user to select one. Once this is done, your original Action will take over at this point.
Explanation of specifics of example capsule:
You can run the utterance "Show me news" to initiate the conversation. You will be presented with a list of News options. Either click on your desired option or, if you are using the Hands Free mode, say "Choose [YOUR CHOICE]". You should be presented with the News content of your choice.
The reason the continuation utterance must contain "Choose..." is, because if you simply train a one word utterance, Bixby may consider ALL one word utterances to be news choices being made. This may disrupt your plan. Training Bixby to learn "Choose" as an indication word is a good way to prevent this.
Alternatively, choosing an option by using ordinals, such as "First", "Second", "Third", etc. is allowed as well.
Please sign in to leave a comment.