How to Reply in Thread when using Zenphi Mail (or non-Gmail Triggers)
Hello Zenphi community! 👋
We all know that keeping automated email responses organized within a single thread is crucial for tracking conversations and maintaining a clean inbox.
If you are using the standard Gmail "Email Arrival" trigger, doing this is straightforward. You simply add a "Send Email" action, toggle the "Reply to Existing Thread" option, and map the Thread ID, Message ID, and References directly from your trigger.
If you need a refresher on the standard method, check out this quick official tutorial: Gmail Reply in Thread Automatically
🛑 The Challenge: Using Non-Gmail Triggers
What happens if your flow starts with the "Zenphi Mail" trigger or another third-party service?
Because the email wasn't caught by the native Gmail trigger, you won't have those essential Thread ID or References fields readily available to map into your Send Email action.
💡 Important Prerequisite: For this workaround to function, a copy of the original email MUST exist in a searchable Gmail inbox. This works perfectly if your Zenphi Mail trigger is receiving emails via a Gmail Auto-Forwarding rule, or if the Zenphi Mail address is CC'd as part of a Google Group.
✅ The Solution: List Emails & Query Collection
To reply in the same thread, you essentially need to "find" that email inside your Gmail service first. Here is the step-by-step workaround:
Step 1: Use the 'List Emails' Action
Add a Gmail List Emails action to your flow. To find the exact email that triggered the flow, construct a specific Search Query using tokens from your trigger.
Example Search Query:
from: [Sender Token] subject: [Subject Token]Step 2: Isolate the Email with 'Query Collection'
The 'List Emails' action returns a collection (a list) of emails, even if it only finds one match. Add a Query Collection action to extract that specific email item from the list (set as 'First item') so you can use its individual properties.
Step 3: Send Your Reply
Now, add your Gmail Send Email action.
Toggle "Reply to Existing Thread".
Instead of looking at your trigger, use the Token Picker to map the Thread ID, Reply-to Message ID, and Reply-to References straight from the Query Collection output.
And that's it! Your automated email will now neatly nestle itself into the existing thread, just as if you had used the native Gmail trigger.
Has anyone else used this workaround for other services? Let me know below!