Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Dialogflow CX conditional response always appears last - unable to reorder?

HI

In entry fulfilment for a page in a flow I'm trying to use a conditional response, followed by a custom payload response to provide suggestion chips for the user.

But the conditional response always appears last, and there are no arrows to move it up (or down) appearing. I've tried adding a conditional reponse to other flows, and also in completely separate agent, and it always appears last in the list of responses with no way of moving it up. 



Is this a bug in the dialogflow CX editor console?

0 7 395
7 REPLIES 7

Hi, @Joe_McFadden could you please share a screenshot of your response definition?

This order will depend how are you sorting it.

Hi @Mizar - here is a screenshot. This is from a tutorial project in a google codelabs, but I have the same issue in other projects.

Joe_McFadden_0-1727976977789.png

You can see that Conditional response section doesn't have any arrow buttons to move the response, while the custom payload will not let me move it below the conditional response. The same is true with a static text type of response. If I add further dialog options, they always appear above the conditional response and won't let me move them below it.

Hi @Joe_McFadden Im seeing you're using built-in coding.

For that window, you won't see any arrows. These appear outside and for each box that contains any response field. In this case you can move the conditional first and then add the chips bellow the conditional response.

Hi @Mizar - thank you for your response.

Yes, I'm using the inline editor in the console while I get familiar with dialogflow.
I'm not sure I follow the rest of your answer, but in the inline editor there doesn't appear to be any way to move the conditional response block, and if I delete the chips / custom payload and then add it back in, it always appears above the conditional response. Basically, it seems that with the inline editor a conditional response always appears last.

I realise I could move all this to a webhook and perhaps that is what I need to do to be able to properly control the order of the agent responses. But just wondered if this was a known issue with the inline editor and if there is any workaround for quick prototyping of flows. Thanks!

Hi,

Same problem here. The "conditional response" appears last, even though I create the "custom payload" after the "conditional response" in the inline editor. 

@Mizar or @Joe_McFadden  do you know how to fix it?

I have fixed from a webhook call when we can define an structure of responses, that wont be affected by this behavior of Dialogflow Cx.

I did report this a bug but it is still not fixed. So as Mizar says the only solution is to use a webhook that handles the conditional logic and correctly defines the order of responses.