Extract Data from Monthly Reports and Send via Email

  1. Create an Integromat Scenario
  2. Configure the Module
  3. Run the Module
  4. Set up the Gmail Module
  5. Configure the Gmail Module
  6. Run the Scenario

In this demonstration, we will show you how to extract data from monthly reports and send it via Gmail using PDF.co and Integromat. We will use this analytics report and extract the highlighted value in the table.

Sample Analytics Report
Screenshot of Sample Analytics Report

1. Create an Integromat Scenario

First, let’s create an Integromat Scenario and add the PDF.co Parse a Document module.

Add PDF.co Parse A Document Module

2. Configure the Module

Let’s configure the Document Parser module.

Configure PDF.co Document Parser Module

  • In the Input File field, select Import a File from URL.
  • In the URL field, enter the source file link.
  • In the Document Parser Template ID field, type in the template id.

To learn how we created the template to extract the value in the table for this file, jump to the 3 Ways to Create the Document Parser Template section.

NOTE: If you are new to PDF.co Document Parser, you can check out our guides here.

3. Run the Module

Now, run the module and it will return the selected value in the table.

PDF.co Document Parser Result

4. Set up the Gmail Module

Next, let’s set up the Gmail Send an email module.

Setup Gmail Send An Email Module In Integromat

5. Configure the Gmail Module

Now, let’s configure the Send Email module.

Enter The From And To Email Addresses
Add Subject And Email Body

  • Tick off the box for Show advanced settings.
  • In the From field, choose the email address you want to send the email from.
  • In the To field, enter the recipient’s email address.
  • In the Subject field, enter the email’s subject.
  • In the Content field, enter your message and select the PDF.co parsed value.

6. Run the Scenario

Run the Scenario and it will send the email to the recipient’s email address. Below is what the email looks like.

Email Sent To The Recipient
Screenshot of the email sent to the recipient

3 Ways to Create the Document Parser Template

  1. Using The Virtual Grid
  2. Using The Macros
  3. Using The Regex

We will use (3) three different ways on how to parse the value in the table. To follow along, you can get the sample Monthly Report here.

Using The Virtual Grid

The Virtual Grid object is the easiest way to parse a table value. In the Document Parser Online Template Editor, click on the Add Object button and select Add FIELD mapped from VIRTUAL GRID.

Click Target Icon To Open Table

Click on the Target icon button next to the Select Cell text field. This will open the table where the values are placed in individual cells.

Selectable Table Generated By Virtual Grid

Choose the Value in the table and click on the Use Selected Cell button.

Virtual Grid Value Parsing Result

Click on the Run Template button and it will return the value you selected.

Using The Macros

The second way to parse a value in a table is using the PDF.co Document Parser Macros. The Macros is made up of Regular Expressions and the way to simplify search pattern creation.

In the Document Parser Online Template Editor, click on the Add Object button and select Add FIELD based on TEXT SEARCH.
Search Value Using Macros

In the Expression field, enter the search pattern. You can copy and paste this expression Organic Search{{Spaces}}(?{{Number}}) to find the Organic Search but only display the value 410. Put a checkmark on the Regex check box.

Add The Search Pattern In the Expression Field

Click on the Run Template button to see the extracted value.

Using The Regex

And the 3rd way to parse a table value is using the Regular Expression or Regex. We will use the same Add FIELD based on TEXT SEARCH object.

Find Table Value Using Regex

In the Expression field, paste this Organic Search\s+(\d+) search pattern to get the value 410 in the table. Tick the box in the Regex check box and Run the template.

Add The Regex Pattern In The Expression Field
In this tutorial, we learned how to use the PDF.co Document Parser to parse PDF data. We tried (3) three parsing techniques in the Online Template Editor. And we used the parsed text and emailed it via Gmail.

Related Pages:

Related Samples: