# GMail integration

> Build workflow automations with 7 public GMail actions.

Source: [https://genhealth.ai/docs/workflows/integrations/gmail](https://genhealth.ai/docs/workflows/integrations/gmail)

## Available actions

7 actions. Connection types: None required.

### [Check Message Labels](https://genhealth.ai/docs/workflows/integrations/gmail/gmail_check_message_labels.md)

- Handler: `gmail_check_message_labels`

- External effect: `write`
- Inputs: `message_id`, `labels`, `match_mode`
- Outputs: `success`, `message_id`, `has_labels`, `matched_labels`, `missing_labels`, `message_labels`, `error`, `error_message`, `error_code`

Perform Check Message Labels through GMail.

### [Fetch Email PDF Attachments](https://genhealth.ai/docs/workflows/integrations/gmail/gmail_fetch_pdf_attachments.md)

- Handler: `gmail_fetch_pdf_attachments`

- External effect: `write`
- Inputs: `message_id`, `document_type`, `source`, `show_documents_in_inbox`, `deduplicate_by_content`, `content_hash_mode`, `preserve_existing_stored_pdf`, `document_status`, `workflow_id_override`, `reuse_existing_document`, `body_field_label`, `body_field_labels`
- Outputs: `success`, `message_id`, `document_ids`, `new_document_ids`, `existing_document_ids`, `duplicate_count`, `all_attachments_existing`, `attachments`, `attachment_results`, `attachment_count`, `failed_count`, `email_body_field`, `email_body_fields`, `count`, `skipped`, `skip_reason`, `error`, `error_message`, `error_code`

Perform Fetch Email PDF Attachments through GMail.

### [Get Gmail Message Body](https://genhealth.ai/docs/workflows/integrations/gmail/gmail_get_message_body.md)

- Handler: `gmail_get_message_body`

- External effect: `read`
- Inputs: `message_id`
- Outputs: `success`, `message_id`, `email_body`, `error`, `error_message`, `error_code`

Perform Get Gmail Message Body through GMail.

### [List Inbox Messages](https://genhealth.ai/docs/workflows/integrations/gmail/gmail_list_inbox_messages.md)

- Handler: `gmail_list_inbox_messages`

- External effect: `read`
- Inputs: `search_phrase`, `since_days`, `max_results`, `with_labels`, `without_labels`, `untagged_only`, `unread_only`
- Outputs: `success`, `messages`, `message_ids`, `count`, `scanned`, `scan_limit_hit`, `unknown_labels`, `error`, `error_message`, `error_code`

Perform List Inbox Messages through GMail.

### [Modify Message Labels](https://genhealth.ai/docs/workflows/integrations/gmail/gmail_modify_message_labels.md)

- Handler: `gmail_modify_message_labels`

- External effect: `write`
- Inputs: `message_id`, `add_labels`, `remove_labels`, `create_missing_labels`, `dry_run`
- Outputs: `success`, `message_id`, `added_labels`, `removed_labels`, `created_labels`, `skipped_labels`, `dry_run`, `error`, `error_message`, `error_code`

Perform Modify Message Labels through GMail.

### [Reply To Gmail Message](https://genhealth.ai/docs/workflows/integrations/gmail/gmail_reply_to_message.md)

- Handler: `gmail_reply_to_message`

- External effect: `write`
- Inputs: `message_id`, `subject`, `body`, `html`, `trust_reply_to`
- Outputs: `success`, `message_id`, `recipients`, `error`

Perform Reply To Gmail Message through GMail.

### [Verify Authenticated Gmail Ingress](https://genhealth.ai/docs/workflows/integrations/gmail/gmail_verify_authenticated_ingress.md)

- Handler: `gmail_verify_authenticated_ingress`

- External effect: `write`
- Inputs: `message_id`, `allowed_senders`, `allowed_forwarders`, `allow_direct`, `test_auto_forward_route`
- Outputs: `success`, `accepted`, `ingress_type`, `reason_code`, `provenance`, `trusted_route_id`, `has_attachment`, `accepted_count`, `rejected_unverified_count`, `chatter_count`, `accepted_with_attachment_count`, `retryable`, `error`, `error_message`, `error_code`

Perform Verify Authenticated Gmail Ingress through GMail.
