What is the best practice to avoid utterance conflicts


#1

Hi,
In the screenshot below, I have got an utterance conflict, which is obvious because I am using similar patterns of samples in both the utterances.

My question is, the skill I am developing requires similar kind of patterns in multiple utterances and I cannot force users to say something like “Yes I want to continue”, or “I want to store…”, something like this.

In such a scenario what is the best practice to avoid utterance conflicts and that too having the multiple similar patterns?

I can use a single utterance and based on what a user says, I can decide what to do.

Here is an example of what I have in my mind:

User says something against {note}
In the skill I check this:
if(this$inputs.note.value === "no") {
// auto route to stop intent
} else if(this$inputs.note.value === "yes") {
// stays inside the same intent
} else {
// does the database stuff and saves the value. asks the user whether he wants to continue
}

The above loop continues until the user says “no”.

But is this the right way to do it? If not, what is the best practice?
Please suggest.


#2

Can you share sample utterances o both your NotesBuilderIntent and HaveMoreNotesIntent?