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

Storing Generator Output in a session param

I'm trying to store the result from a Generator in a session param so I can re-use without having to re-call the Generator e.g if a user asks to repeat something and i need to access in further pages. For some reason I can't access the Generator output: $request.generative.sales if I try and store in a session.param on the page the Generator is being called on. I'm wondering if the Generator is called/returns before running the parameter presets?

Does anyone know how to do this? So far I've had no luck storing the output from the generator in a session param for later use.

Any help much appreciated.

thanks

Adrian

 

0 3 347
3 REPLIES 3

Hi! I believe you can access the  $request.generative at anytime!

This is the order of execution:

xavidop_0-1701178372275.png

best,

xavi

 

Doesn't work for me, the $request.generative.sales value is not available to set as a session param on the same page

What you can do is call a webhook and set that generative response in a session parameter so you can access it at anytime