Fetch Email PDF Attachments
Perform Fetch Email PDF Attachments through GMail.
gmail_fetch_pdf_attachmentsInputs
- Message Id
message_idexpressionrequiredRequired literal value or workflow expression.
- Document Type
document_typeselectOptional selected identifier or value.
Default:
"Other"Options: Prescription ("Prescription"), Demographics ("Demographics"), Insurance ("Insurance"), Qualifying Test ("Qualifying Test"), Physician Notes ("Physician Notes"), Other ("Other")
- Source
sourcetextOptional text value.
Default:
"gmail_inbox" - Show Documents In Inbox
show_documents_in_inboxbooleanOptional true-or-false value.
Default:
false - Deduplicate By Content
deduplicate_by_contentbooleanOptional true-or-false value.
Default:
false - Content Hash Mode
content_hash_modeselectOptional selected identifier or value.
Default:
"raw_bytes"Options: Raw Bytes (SHA-256) ("raw_bytes"), Content (re-encoding robust) ("content")
- Preserve Existing Stored Pdf
preserve_existing_stored_pdfbooleanOptional true-or-false value.
Default:
false - Document Status
document_statusselectOptional selected identifier or value.
Default:
"complete"Options: Complete ("complete"), Processing ("processing"), Review ("review")
- Workflow Id Override
workflow_id_overridetextOptional text value.
- Reuse Existing Document
reuse_existing_documentbooleanOptional true-or-false value.
Default:
false - Body Field Label
body_field_labeltextOptional text value.
- Body Field Labels
body_field_labelsjsonOptional JSON value.
Outputs
successSuccessmessage_idMessage Iddocument_idsDocument Idsnew_document_idsNew Document Idsexisting_document_idsExisting Document Idsduplicate_countDuplicate Countall_attachments_existingAll Attachments ExistingattachmentsAttachmentsattachment_resultsAttachment Resultsattachment_countAttachment Countfailed_countFailed Countemail_body_fieldEmail Body Fieldemail_body_fieldsEmail Body FieldscountCountskippedSkippedskip_reasonSkip ReasonerrorErrorerror_messageError Messageerror_codeError Code
Output schema completeness: best_effort_declared
Safety
- External effect
- write
- Confirmation recommended
- No
- Retry safe
- No
- Dry run supported
- No
Schemas
These schemas are first-pass authoring guidance. Runtime validation remains authoritative.
Input schema
{
"type": "object",
"required": [
"message_id"
],
"properties": {
"source": {
"type": "string",
"default": "gmail_inbox",
"description": "Optional text value.",
"x-workflow-field-type": "text"
},
"message_id": {
"description": "Required literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"document_type": {
"enum": [
"Prescription",
"Demographics",
"Insurance",
"Qualifying Test",
"Physician Notes",
"Other"
],
"type": "string",
"default": "Other",
"description": "Optional selected identifier or value.",
"x-workflow-field-type": "select"
},
"document_status": {
"enum": [
"complete",
"processing",
"review"
],
"type": "string",
"default": "complete",
"description": "Optional selected identifier or value.",
"x-workflow-field-type": "select"
},
"body_field_label": {
"type": "string",
"description": "Optional text value.",
"x-workflow-field-type": "text"
},
"body_field_labels": {
"description": "Optional JSON value.",
"x-workflow-field-type": "json"
},
"content_hash_mode": {
"enum": [
"raw_bytes",
"content"
],
"type": "string",
"default": "raw_bytes",
"description": "Optional selected identifier or value.",
"x-workflow-field-type": "select"
},
"workflow_id_override": {
"type": "string",
"description": "Optional text value.",
"x-workflow-field-type": "text"
},
"deduplicate_by_content": {
"type": "boolean",
"default": false,
"description": "Optional true-or-false value.",
"x-workflow-field-type": "boolean"
},
"reuse_existing_document": {
"type": "boolean",
"default": false,
"description": "Optional true-or-false value.",
"x-workflow-field-type": "boolean"
},
"show_documents_in_inbox": {
"type": "boolean",
"default": false,
"description": "Optional true-or-false value.",
"x-workflow-field-type": "boolean"
},
"preserve_existing_stored_pdf": {
"type": "boolean",
"default": false,
"description": "Optional true-or-false value.",
"x-workflow-field-type": "boolean"
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"properties": {
"count": {},
"error": {},
"skipped": {},
"success": {},
"error_code": {},
"message_id": {},
"attachments": {},
"skip_reason": {},
"document_ids": {},
"failed_count": {},
"error_message": {},
"duplicate_count": {},
"attachment_count": {},
"email_body_field": {},
"new_document_ids": {},
"email_body_fields": {},
"attachment_results": {},
"existing_document_ids": {},
"all_attachments_existing": {}
},
"additionalProperties": true
}