Sending DTMF digits
At any stage of the conversation, VoiceAI Connect can receive DTMF digits from the bot.
How do I use it?
For sending DTMF digits to VoiceAI Connect, the bot should send a sendDtmf event.
The DTMF digits should be specified on the dtmfDigits parameter.
See Sending activities page for instructions on how to send events using your bot framework.
Example:
{
"type": "event",
"name": "sendDtmf",
"activityParams": {
"dtmfDigits": "12345*#"
}
}
{
"type": "event",
"name": "sendDtmf",
"channelData": {
"activityParams": {
"dtmfDigits": "12345*#"
}
}
}
Send event named sendDtmf (see Sending event to VoiceAI Connect Enterprise)
{
"activityParams": {
"dtmfDigits": "12345*#"
}
}
[Activity
type = event
name = sendDtmf
channelData = ${json('
{
"activityParams": {
"dtmfDigits": "12345*#"
}
}
')}
{
"activities": [
{
"type": "event",
"activityParams": {
"dtmfDigits": "12345*#"
},
"name": "sendDtmf"
}
]
}
{
"activities": [
{
"type": "event",
"name": "sendDtmf",
"activityParams": {
"dtmfDigits": "12345*#"
}
}
]
}
{
"type": "event",
"name": "sendDtmf",
"activityParams": {
"dtmfDigits": "12345*#"
}
}
Event parameters
The following table lists the parameters associated with this event:
See Changing call settings for details on how these parameters can be applied.
|
Parameter |
Type |
Description |
|---|---|---|
|
String |
Defines the DTMF digits to send. The valid value is a string that can include only digits, *, and/or #, and can be to 20 characters. If empty or illegal characters are received, the “sendDtmf” event is ignored. |