Hi everyone,
I’m trying to build an n8n workflow with the following steps:
- Read data from a Google Sheet using a
GEToperation. - Send each row into an AI Agent prompt to generate new content based on the row data.
- Update the original Google Sheet using the
UPDATEoperation to insert the AI-generated result into the correct row.
The issue:
I can’t figure out how to match the AI response with the correct row in the Google Sheet. For example, I’d like to use a unique column like “Ticket Number” or “ID” to identify each row and make sure the correct row gets updated with the new data.
My question:
How can I reliably associate each AI result with its corresponding source row in the Google Sheet, based on a unique column value?
Are there any best practices to keep that link between the input data and the AI response throughout the flow?