# Gmail + DigiParser | Import Invoice Attachments and Email Bodies

Source: https://www.digiparser.com/integrations/gmail

[<- All integrations](/integrations)

![Gmail logo](/img/icons/gmail.png) Gmail + Google Workspace

# Your invoice inbox.  
Without the downloads.

Connect Gmail directly to your parser. Choose the senders and messages to process, then extract data from their attachments, email bodies, or both.

[Start free ↗](https://app.digiparser.com/auth/join)[Setup documentation ->](/docs/guides/integrations/importing-from-gmail)

Example - supplier invoice intake

Sender ruleOnly process listed suppliers

Email conditionSubject contains "invoice"

Email contentAttachments only

Resultinvoice-1042.pdf -> Invoice parser

## Send supplier attachments straight to your parser.

Choose the Gmail account and senders that supply your documents. DigiParser imports matching attachments into the selected parser.

1.  1Connect the Gmail account.
2.  2Set the sender rules for incoming messages.
3.  3Process the attachments in your parser.

![](/_next/image?url=%2Fimages%2Fintegrations%2Fgmail-workflow-v1.webp&w=3840&q=75&dpl=dpl_H7ELf8o3TqrdP1rfMmWwKoVbpCeQ)

## Let the right emails through

### Sender access

Process all senders, only listed addresses and domains, or everyone except your exclusion list. Enter one address or domain per line.

### Message conditions

Match subject or visible body text with contains, starts with, ends with, or equals. Choose to include or skip matches.

### Attachment rules

Filter each attachment by filename. Enable downloadable links when supported public file links should be imported too.

Matching is case-insensitive and the rule checks do not use AI credits. Parser-wide email rules remain an additional filter.

## Choose what becomes a document

Gmail content modes

Mode

DigiParser receives

Example use

Attachments only

Each supported non-inline attachment separately

Supplier PDF invoices

Email body only

One document from the message body

Orders written directly in email

Email body and attachments

Body and each supported attachment separately

An order email with supporting documents

Inline signature images are skipped. Body documents and attachments use processing credits separately, so select only the content you need.

## Connect the mailbox and test a new message

1.  01
    
    ### Add Import from Gmail
    
    Open the parser's Integrations page, add Gmail under Import sources, and expand its settings.
    
2.  02
    
    ### Authorize the Google account
    
    Click Connect Gmail and select the mailbox. One Gmail account is monitored by this parser at a time.
    
3.  03
    
    ### Set the filters and content mode
    
    Configure Sender access, Email processing rules, attachment filename conditions, and Email content.
    
4.  04
    
    ### Save the configuration
    
    Confirm Monitoring active. Monitoring watches new messages received after this configuration is saved.
    
5.  05
    
    ### Send a fresh test email
    
    Send one supported attachment from an allowed sender. Check the Document Inbox after a few minutes and inspect the extracted fields.
    

## Start with today's inbox. Import older mail when needed.

### New messages

Gmail is checked regularly, so imports may take a few minutes. DigiParser leaves the original message in place without marking it read, moving it, or deleting it.

### Existing messages

Use Import existing Gmail emails for older mail. Each manual import creates new documents, including messages imported before, using current parser settings and processing credits.

## An inbox for each document workflow

Use a supplier invoice parser for accounts payable. Use a separate customer PO parser for sales orders, with its own sender and subject rules. If multiple parsers monitor the same Gmail account, each can import the same matching message.

The new email did not arrive.

Check Monitoring active, sender access, message conditions and attachment rules. Test with one small supported attachment from an allowed sender.

Can DigiParser download a login-protected link?

Linked files must download without signing in. Enable Process downloadable links for supported public links.

Gmail shows Needs reconnection.

Reconnect the mailbox and approve access again, then save the configuration and test a new message.

[Start free ↗](https://app.digiparser.com/auth/join)[Setup documentation ->](/docs/guides/integrations/importing-from-gmail)