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

Transition to Previous Page in Dialogflow

I would like to go to the previous page and have it repeat what the agent said in that page. I thought you could do it with the symbolic page of transitions: 

 
In the documentation it says the following: "The page state from the previous page will be restored after transition." Wouldn't this mean that it will restart and go through the "agent says" section of the fulfillment? I have tested this and it does not actually go through the entry fulfillment:

Here is the transition that is going to the previous page (Test):
karlgardner_0-1705445767926.png

I have tested this and it does not repeat what the agent says in the "Test Page":

karlgardner_1-1705445904169.png

 

As you can see in the red it will go back to the "Test Page" but it will not repeat and go through the agent says of the entry fulfillment. 
Solved Solved
0 5 710
1 ACCEPTED SOLUTION

I understand that statement as the state will be restored as it was when the user was in that page

View solution in original post

5 REPLIES 5

Hi @karl-gardner you have to think about transitions like if it was a stack. when you go back, if the page was used already, it will keep the state.

Best,

Xavi

Hello @xavidop,

Ok sure, but even if it were a stack and it keeps the previous state isn't this statement incorrect in the documentation of the PREVIOUS_PAGE symbolic transition (link below):

"The page state from the previous page will be restored after transition."

https://cloud.google.com/dialogflow/cx/docs/concept/handler#symbolic

I understand that statement as the state will be restored as it was when the user was in that page

Interesting @xavidop now that I am thinking about it that makes more sense! I was interpreting that statement as the page state (meaning initial state) would be restored so it would start over. Guess your interpretation is right though. Thanks again!

yeah, it is not easy!