I'm trying out the DTMF collection via Go API. QueryInput_Dtmf is used to deliver individual digit to the flow. In my sample dialogflow, I have a parameter set with DTMF enabled along with max-digits=4 and endpointing timeout duration = 5. When I use QuerInput_Dtmf to send a digit, it would advance to the next block rather than waiting for more digits to be entered. Here is a snippet from the log. The flow is asking for 4 digits SSN. But as soon as dtmf 1 is entered. It moved on to the next prompt.
Q: Is QueryInput_Dtmf meant to be used as a way to deliver individual DTMF digit and the dialogflow can manage the digit buffer and timers filing in the parameter ?
Q: I can see interactiveVoiceResponseSettings/DtmfSettings are presented in the diagnostic_info. Is there a reliable way to retrieve this information if the client is supposed to manage the digit buffer?
Thank you.
=========================================================================
{
"Query": {
"Text": "James Bond"
},
"language_code": "en",
"parameters": {
"name": "James Bond"
},
"response_messages": [
{
"Message": {
"Text": {
"text": [
"What is the last 4 digits of your SSN?"
]
}
}
},
{
"Message": null
}
],
"current_page": {
"name": "projects/mpaas-lab/locations/us-east1/agents/73603c73-454e-4920-a40e-5fe9d6ff59df/flows/00000000-0000-0000-0000-000000000000/pages/1a138195-9d1c-4212-94bb-ab183d698c59",
"display_name": "Collect Customer Info"
},
"intent_detection_confidence": 0.3,
"match": {
"parameters": {
"name": "James Bond"
},
"resolved_input": "James Bond",
"match_type": 3,
"confidence": 0.3
},
"diagnostic_info": {
"Alternative Matched Intents": [
{
"Active": true,
"Parameters": {
"name": {
"original": "James Bond",
"resolved": "James Bond",
"type": "@sys.any"
}
},
"Score": 0.30000001192092896,
"Type": "NLU_SLOT"
}
],
"Execution Sequence": [
{
"Step 1": {
"InitialState": {
"FlowState": {
"FlowId": "00000000-0000-0000-0000-000000000000",
"Name": "Default Start Flow",
"PageState": {
"ActiveParameter": "name",
"FormFilled": false,
"Name": "Collect Customer Info",
"PageId": "1a138195-9d1c-4212-94bb-ab183d698c59",
"Status": "PROCESSING_FORM"
},
"Version": 0
},
"MatchedIntent": {
"Active": true,
"Parameters": {
"name": {
"original": "James Bond",
"resolved": "James Bond",
"type": "@sys.any"
}
},
"Score": 0.30000001192092896,
"Type": "NLU_SLOT"
},
"SessionParameters": {
"name": "James Bond"
}
},
"Type": "INITIAL_STATE"
}
},
{
"Step 2": {
"FunctionExecution": {
"Responses": [
{
"responseType": "PARAMETER_PROMPT",
"source": "VIRTUAL_AGENT",
"text": {
"redactedText": [
"What is the last 4 digits of your SSN?"
],
"text": [
"What is the last 4 digits of your SSN?"
]
}
},
{
"interactiveVoiceResponseSettings": {
"audioExportGcsDestination": {},
"dtmfSettings": {
"enabled": true,
"maxDigits": 4
},
"speechSettings": {
"endpointerSensitivity": 50,
"noSpeechTimeout": "5s"
}
}
}
]
},
"StateMachine": {
"FlowState": {
"FlowId": "00000000-0000-0000-0000-000000000000",
"Name": "Default Start Flow",
"PageState": {
"ActiveParameter": "ssn",
"FormFilled": false,
"Name": "Collect Customer Info",
"PageId": "1a138195-9d1c-4212-94bb-ab183d698c59",
"Status": "PROCESSING_FORM"
},
"Version": 0
}
},
"Type": "STATE_MACHINE"
}
}
],
"Session Id": "GV83vEzyA7",
"Transition Targets Chain": [],
"Triggered Transition Names": []
}
}
=========================================================================
{
"Query": {
"Dtmf": {
"digits": "1"
}
},
"language_code": "en",
"parameters": {
"name": "James Bond",
"ssn": 1
},
"response_messages": [
{
"Message": {
"Text": {
"text": [
"What country are you visiting?"
]
}
}
},
{
"Message": null
}
],
"current_page": {
"name": "projects/mpaas-lab/locations/us-east1/agents/73603c73-454e-4920-a40e-5fe9d6ff59df/flows/00000000-0000-0000-0000-000000000000/pages/b5d19279-f890-4c0a-ba15-ef5b7e8327fb",
"display_name": "Collect Travel Info"
},
"intent_detection_confidence": 0.3,
"match": {
"parameters": {
"ssn": 1
},
"resolved_input": "dtmf_digits_1",
"match_type": 3,
"confidence": 0.3
},
"diagnostic_info": {
"Alternative Matched Intents": [
{
"Active": true,
"Parameters": {
"ssn": {
"original": "1",
"resolved": 1,
"type": "@sys.number"
}
},
"Score": 0.30000001192092896,
"Type": "NLU_SLOT"
}
],
"Execution Sequence": [
{
"Step 1": {
"InitialState": {
"FlowState": {
"FlowId": "00000000-0000-0000-0000-000000000000",
"Name": "Default Start Flow",
"PageState": {
"ActiveParameter": "ssn",
"FormFilled": false,
"Name": "Collect Customer Info",
"PageId": "1a138195-9d1c-4212-94bb-ab183d698c59",
"Status": "PROCESSING_FORM"
},
"Version": 0
},
"MatchedIntent": {
"Active": true,
"Parameters": {
"ssn": {
"original": "1",
"resolved": 1,
"type": "@sys.number"
}
},
"Score": 0.30000001192092896,
"Type": "NLU_SLOT"
},
"SessionParameters": {
"name": "James Bond",
"ssn": 1
}
},
"Type": "INITIAL_STATE"
}
},
{
"Step 2": {
"FunctionExecution": {
"Responses": []
},
"StateMachine": {
"FlowState": {
"FlowId": "00000000-0000-0000-0000-000000000000",
"Name": "Default Start Flow",
"PageState": {
"FormFilled": true,
"Name": "Collect Customer Info",
"PageId": "1a138195-9d1c-4212-94bb-ab183d698c59",
"Status": "TRANSITION_ROUTING"
},
"Version": 0
},
"TargetPage": "b5d19279-f890-4c0a-ba15-ef5b7e8327fb",
"TriggeredCondition": "$page.params.status = \"FINAL\"",
"TriggeredTransitionRouteId": "5f3779f9-0000-210f-859a-f403043d09f0"
},
"Type": "STATE_MACHINE"
}
},
{
"Step 3": {
"FunctionExecution": {
"Responses": []
},
"StateMachine": {
"FlowState": {
"FlowId": "00000000-0000-0000-0000-000000000000",
"Name": "Default Start Flow",
"PageState": {
"Name": "Collect Travel Info",
"PageId": "b5d19279-f890-4c0a-ba15-ef5b7e8327fb",
"Status": "ENTERING_PAGE"
},
"Version": 0
}
},
"Type": "STATE_MACHINE"
}
},
{
"Step 4": {
"FunctionExecution": {
"Responses": [
{
"responseType": "PARAMETER_PROMPT",
"source": "VIRTUAL_AGENT",
"text": {
"redactedText": [
"What country are you visiting?"
],
"text": [
"What country are you visiting?"
]
}
},
{
"interactiveVoiceResponseSettings": {
"audioExportGcsDestination": {},
"speechSettings": {
"endpointerSensitivity": 50,
"noSpeechTimeout": "5s"
}
}
}
]
},
"StateMachine": {
"FlowState": {
"FlowId": "00000000-0000-0000-0000-000000000000",
"Name": "Default Start Flow",
"PageState": {
"ActiveParameter": "travelCountry",
"FormFilled": false,
"Name": "Collect Travel Info",
"PageId": "b5d19279-f890-4c0a-ba15-ef5b7e8327fb",
"Status": "PROCESSING_FORM"
},
"Version": 0
}
},
"Type": "STATE_MACHINE"
}
}
],
"Session Id": "GV83vEzyA7",
"Transition Targets Chain": [
{
"TargetPage": "b5d19279-f890-4c0a-ba15-ef5b7e8327fb"
}
],
"Triggered Transition Names": [
"5f3779f9-0000-210f-859a-f403043d09f0"
]
}
}
=========================================================================