searchThreads searches Gmail conversations using the same query syntax as Gmail’s search box. Use it when each matching conversation should appear once, even if several messages in that conversation match.
The action returns identifiers only. Pass a result to Get thread to retrieve and parse every message in the conversation.
Example
automations/find-customer-threads.automation.ts
Inputs
Each input can also be a compatible
Signal from an earlier trigger or action.
Output
Returns aSignal<ThreadIdentifier[]>:
limit or exhausts the search.
Choose Search
messages when you need
a separate result for each matching email. Choose
searchThreads when you
need one result per conversation.