Hi,
I've found a bug with Dialogflow CX when using DTMF inputs over voice and a Generator. I'm using a Generator which looks at the past conversation and last user utterance to decide on what response to give to the user. I want to respond on free text and DTMF input from the user as our voice system accepts voice and DTMF input of booking reference which is a 6 digit number so works for both.
$last-user-utterance and $conversation outlined here; https://cloud.google.com/dialogflow/cx/docs/concept/generators
The generator is fairly straightforward and the prompt is not relevant except for the part that uses the $last-user-utterance
Prompt
"You are an AI assistant specializing in booking reference validation. Your primary function is to guide users towards inputting the correct booking reference number........
User: $last-user-utterance
Agent:"
Everything is working as expected until I want to pass a DTMF input over to the Generator and this is the bug, the $last-user-utterance variable is empty so it seems that any DTMF inputs are treated differently. This may be by "design" but even if that is the case, how can I actually access this value to send to the Generator? Whats even stranger is that when I look in the $conversation parameter also being passed to the Generator the DTMF inputs are in the conversation.
Also for some reason there is no way to access the dtmf input at page/route level or anywhere else, so it's impossible to fix this issue. I was thinking if i had access to them I could pass them into the Generator manually.
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |