Hi everyone,
I’m encountering an issue in my n8n workflow involving the Gmail Trigger node and the Gmail Reply operation. Here’s my setup:
- I’m using the Gmail Trigger node to listen for emails with a specific subject.
- Once an email is received, my workflow uses an AI node to generate a response, which is then sent back using Gmail’s “Reply” operation.
The problem occurs when the recipient replies to that email. The Gmail Trigger node receives the new email, but:
- The AI node has no context of the previous conversation.
- The
snippet
object in the Gmail Trigger node only contains a truncated version of the previous messages, and I can’t seem to retrieve the full conversation history (as shown in the attached screenshot).
I need a way to fetch the full email thread or access the previous conversation context so my AI can generate meaningful responses.
Can anyone guide me on how to achieve this? Is there a workaround to fetch the complete email content for the entire conversation thread using the Gmail Trigger node or any other solution?
Thanks in advance for your help!
Information on your n8n setup
- n8n version: Latest
- Database (default: SQLite): default
- n8n EXECUTIONS_PROCESS setting (default: own, main): default
- Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
- Operating system: ubuntu