Hi Team,
I'm currently working with Dialogflow CX detectintent api. I'm facing issues on differentiating static agent response and webhook response. Let me ellaborate. I have a Route Transition for (Default welcome intent) where I have configured agent response (ex: Hello! How I can help you?). I do also enabled Fulfillment response for the same which returns (ex: Hi, thank you for contacting. I'm Nova Bot, your virtual support. How can I help you today?).
In Dialogflow ES, if an intent has webhook enabled, then the text response from webhook is available in fulfillmentText attribute in webhook response and same will be shown to user. If any timeout or error occured in webhook, then user will see the static response configured.
In Dialogflow CX, even when webhook call is success, I'm seeing both responses (static agent response + webhook response) in the responseMessages attribute in webhook response. And in simulator, im seeing both messages. Is there a way in webhook response to differentiate both response types.
Below is the fulfillment response
"responseMessages": [
{"text": {"text": ["Hello! How I can help you?"]}},
{"text": {"text": ["Hi, thank you for contacting. I'm Nova Bot, your virtual support. How can I help you today?"]}}
]
And this is how I'm sending the fulfillment response
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |