Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Dialogflow cx v3 DetectIntentRequest returning no-match

I am trying to create and manage agents using exclusively the api.  I have created an agent with one intent only:

name: "projects/???/locations/global/agents/1828e34b-78bc-48f5-9212-6dd83497d409/intents/b9e91883-f358-46ea-9661-a8a39c7d2557"
display_name: "test-age"
training_phrases {
parts {
text: " I am "
}
parts {
text: " 23 "
parameter_id: "p0"
}
repeat_count: 1
}
training_phrases {
parts {
text: " my age is "
}
parts {
text: " 68 "
parameter_id: "p1"
}
repeat_count: 1
}
training_phrases {
parts {
text: " I am "
}
parts {
text: " 44 "
parameter_id: "p2"
}
repeat_count: 1
}
training_phrases {
parts {
text: " age "
}
parts {
text: " 81 "
parameter_id: "p3"
}
repeat_count: 1
}
training_phrases {
parts {
text: " age is "
}
parts {
text: " 35 "
parameter_id: "p4"
}
repeat_count: 1
}
training_phrases {
parts {
text: " the age is "
}
parts {
text: " 29 "
parameter_id: "p5"
}
repeat_count: 1
}
training_phrases {
parts {
text: " 37 "
parameter_id: "p6"
}
parts {
text: " years of age "
}
repeat_count: 1
}
training_phrases {
parts {
text: " 45 "
parameter_id: "p7"
}
parts {
text: " years "
}
repeat_count: 1
}
training_phrases {
parts {
text: " 52 "
parameter_id: "p8"
}
parts {
text: " years old "
}
repeat_count: 1
}
parameters {
id: "p0"
entity_type: "projects/-/locations/-/agents/-/entityTypes/sys.number-integer"
}
parameters {
id: "p1"
entity_type: "projects/-/locations/-/agents/-/entityTypes/sys.number-integer"
}
parameters {
id: "p2"
entity_type: "projects/-/locations/-/agents/-/entityTypes/sys.number-integer"
}
parameters {
id: "p3"
entity_type: "projects/-/locations/-/agents/-/entityTypes/sys.number-integer"
}
parameters {
id: "p4"
entity_type: "projects/-/locations/-/agents/-/entityTypes/sys.number-integer"
}
parameters {
id: "p5"
entity_type: "projects/-/locations/-/agents/-/entityTypes/sys.number-integer"
}
parameters {
id: "p6"
entity_type: "projects/-/locations/-/agents/-/entityTypes/sys.number-integer"
}
parameters {
id: "p7"
entity_type: "projects/-/locations/-/agents/-/entityTypes/sys.number-integer"
}
parameters {
id: "p8"
entity_type: "projects/-/locations/-/agents/-/entityTypes/sys.number-integer"
}
priority: 500000

However, when I try to detect that intent using the DetectIntentRequest as shown in the github samples I keep getting no-match results:

====================
Query Text: ' I am 55 '
Detected Intent: text: " I am 55 "
language_code: "en"
response_messages {
text {
text: "Sorry, could you say that again?"
}
}
current_page {
name: "projects/???/locations/global/agents/1828e34b-78bc-48f5-9212-6dd83497d409/flows/00000000-0000-0000-0000-000000000000/pages/START_PAGE"
display_name: "Start Page"
}
intent_detection_confidence: 0.3
diagnostic_info {
fields {
key: "Alternative Matched Intents"
value {
list_value {
}
}
}

I did train the agent in advance. 

Appreciate any help

0 1 310
1 REPLY 1

Hi, mihai527,

I understand that you are experiencing the issue with the transcription which is not responding as expected, and this is a transient issue. Instead of identifying the user age, it is Invoking the No-Match event. Please let me know if I have misunderstood.

Here it seems like an issue with the speech adaption. In regards to that, can you please Enable speech adaptation? The auto speech adaptation feature improves the speech recognition accuracy of your agent by automatically using conversation state to pass relevant entities and training phrases as speech context hints for all detect intent requests. This feature is disabled by default.

You may follow this doc to achieve this. Please let me know if this resolves your issue or not. Also, you may follow this doc, which talks about Voice agent design best practices.

Please let me know if you have any questions regarding the information provided above. I will be happy to assist you.

I will be looking forward to your response.