DTMF collection

500 views
Skip to first unread message

Chun-Yang Chen

unread,
Apr 5, 2022, 3:56:08 PM4/5/22
to Dialogflow CX Edition users
Hi,

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"
    ]
  }
}
=========================================================================

Dilpreet Kaur

unread,
Apr 15, 2022, 3:27:06 PM4/15/22
to Dialogflow CX Edition users

You can get details on DTMF parameters  here. It seems you are missing DTMF input to terminate that can be set using Finish digit.

Please also note that Google Groups forum is meant for general discussion of the platform, not specific technical issues. You can find more info about Community Support Overview on Google Groups here.

In case there are any technical issues or you would like to request any feature regarding Google Cloud Platform on your issue, you can report it at the Public Issues by selecting the right component here. If you need to select any project specific information please select the private component of the Public Issue so that the information is not visible to the public. After that a Google Cloud Platform support agent would assist you. 

In case If you have any technical queries or think your issue is related to code, you can post at the Stack Overflow or Server Fault and a community of developers will assist you.


Reply all
Reply to author
Forward
0 new messages