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

Chaining Dialogflow CX Generators

Im currently doing the google cloud skill boost course "Conversational AI on Vertex AI and Dialogflow CX". One of the videos states: 

dzelt17_0-1729200776604.png

 

"You can add several generators in one fulfillment, which would be executed sequentially, one taking the output from the other as input. That way you can chain multiple LLMs, which might make it easier for debugging specific steps. One generator could provide information about destinations and the other could format or summarize that destination output to the user. That way you only have one concise response, but you have 2 separate prompts with clear instructions."

 
Im currently trying to implement this but it seems like the second generator isnt taking the input of the previous generator:
dzelt17_1-1729201036376.png

And the final answer, the one I print is $request.generative.fallback_location. I can see that the second generator isnt taking the first generated output as a parameter:

dzelt17_2-1729201229832.png

Both generators are giving me an output and the second generator's output should be the [AI] text:

dzelt17_3-1729201498171.png

But its just asking me what text do I want to extract. I wonder if I misunderstood someting or doing something wrong?

0 1 240
1 REPLY 1