Get data back from Google Script

Hi guys,

I am triggering a Google Script via a Http post node in n8n.
At the end of the Google Script I am simply returning a value that I would like to use in my n8n flow.

In my Google Script :
return ContentService.createTextOutput(variable_to_send);

But it’s not working. On forums it’s been told that ContentService is using another url to send back the data and that the http client should enable “follow redirect”. Therefore I enabled it on the n8n flow but I get an error saying that “the document has moved” … I am lost.

Did anybody encounter the same issue or feature need (sending back data from a Google Script to n8n via a doPost function ?) ?

Regards