getThread retrieves one Gmail conversation and parses every message in it. Use it when the relationship between replies matters, rather than loading a single message.
Pass the threadId returned by a message, trigger, or thread search. A thread ID is not interchangeable with a message ID.
Example
automations/read-thread.automation.ts
Inputs
Each input can also be a compatible
Signal from an earlier trigger or action.
Output
Returns aSignal<GmailThread>:
messages follows Gmail’s returned message order. Attachments for every message are downloaded as File objects.