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