Skip to main content
gmail_save_attachments Save an email’s attachments into a HERO project folder as documents (PDF, Word .docx, images, video, audio), fetched directly from Gmail — nothing passes through you, so size is no obstacle. Use this to file client documents that arrived by email. Pick the project and folder first (search_projects, list_project_tree; gmail_get_message to see the sender, subject and attachment names). Each saved document records the email it came from, so calling this again for the same message reports the files as alreadySaved instead of duplicating them. Unsupported types (Excel, ZIP, …) come back under skipped with the reason. At most 10 attachments per call.

Parameters

string
required
Gmail message id (from the trigger payload or a search/get call).
string
Project to file the attachments in.
string
Folder to file them under (from list_project_tree). Omit for the project root.
array<string>
Only these attachments (exact filenames). Omit to save every real attachment — inline images such as signature logos are skipped.