I FOUND A SOLUTION!
Gemini models tend to follow the system prompt very strictly, so you need to reinforce the use of n8n’s built-in format_final_response
function to ensure it correctly stores the variables at the end.
Add this snippet in your chatInput
and let me know the result → “REMEMBER TO ALWAYS USE format_final_response
at the end of every response.”