2
votes

Dialogflow documentation mentions that agents can be set in two modes, Hybrid(Rule-base and ML) and ML Only. How do we set up rules in Dialogflow? Can't find any documentation for this. Or is it only through training phrases? For example I want to set a rule that says any utterance that starts with 'XYZ' should be matched against Intent A.

I've tried marking 'XYZ' as an entity at the beginning of the training phrases in Intent A hoping that all such utterances are matched with this intent, however that does not seem to be happening.

'XYZ needs some goods to be transferred to location 23'

I expect such utterances to be matched against Intent A but that doesn't happen always

1

1 Answers

2
votes

Rule based agent will match only those request which will match the training phrases as it is (or maybe it will match lemma values also).

It will match the sentence and extract the parameters as well if you have annotated the parameters in the training phrase.

But it will not match the variant of the sentence.

rule-1
rule-2

Hope it helps.