Skip to content

How to automate adding companies to your Affinity + Notion Pipelines using Zapier

Published: at 12:00 AMSuggest Changes

VC teams often need an efficient way to forward emails and ensure they are accurately added to their CRM, like Affinity. This guide outlines how to set up the automation in Zapier using an Email Parser and Formatter.


Step 1: Set Up the Email Parser Trigger

  1. Select “Email Parser by Zapier” as the Trigger App

    • Start by searching for Email Parser by Zapier in the Zap editor.
    • Set the trigger event to New Email.
    • Connect your Email Parser account.

    Email Parser Trigger Setup

  2. Configure the Email Parser Mailbox

    • Select your mailbox (e.g., pipelineinbox@robot.zapier.com).
    • This mailbox will receive emails forwarded from your team.

    Configure Email Parser Mailbox

  3. Test the Parser Connection

    • Ensure that the parser is connected and ready to process incoming emails.

Step 2: Use the Formatter to Process the Email Content

  1. Add a New Step with “Formatter by Zapier”

    • After the Email Parser step, add Formatter by Zapier as the next action.
    • Choose the Text action event to manipulate the email content.

    Add Formatter by Zapier

  2. Extract Specific Data Using Regex

    • Select the Extract Pattern transform type.
    • Input your regex pattern to extract the desired information.
      For example, to extract domains from email addresses, use:
      (?<=@)[^.]+(?=\.).

    Regex Pattern Setup

  3. Map and Test the Input Data

    • Map the input field to the data from the previous Email Parser step.
    • Run a test to ensure the formatter extracts the correct information.

    Test Formatter Output


Step 3: Extract Email Addresses (Optional)

  1. Add Another Formatter Step

    • If you need to extract email addresses from the body of the email, add another Formatter by Zapier step.
    • Choose the Extract Email Address transform type.

    Extract Email Address

  2. Map the Input Field

    • Map the email body content from the parser into this step.
    • Test the output to confirm the extraction works properly.

Completing the Automation: Adding Emails to Affinity

In the second half of this guide, we will finish building the automation that forwards emails and updates Affinity with the parsed and formatted data.


Step 4: Advanced Pattern Extraction

  1. Set Up Advanced Regex for Domain Extraction

    • Use the Extract Pattern feature in Formatter by Zapier to pull domains from email addresses using an advanced regex pattern:
      (?<=@)[\w.-]+.[a-zA-Z]{2,}.

    Regex Extraction Setup


Step 5: Connect Affinity to the Automation

  1. Add the Affinity App

    • Search for the Affinity app in Zapier.
    • Select an action event, such as Create a Organization.
  2. Create a New Organisation

    • Select Create a Organisation as the action event.
    • Map the extracted data (e.g., organisation name or domain) from previous steps.

    Create Organisation Event

  3. Map Dynamic Input Data

    • Use dynamic fields like Output 0 from Formatter to populate the organisation name and domain.

    Map Data for Organisation


Step 6: Searching for Existing Organisations

  1. Add a “Find Organisation” Action

    • Use the Find an Organisation event to check if the organisation already exists in Affinity.

    Find Organisation Setup

  2. Handle Search Results

    • Configure the automation to proceed only if no results are found, to avoid duplicates.

    Search Results Configuration


Step 7: Add to a Pipeline List

  1. Add Organisations or Contacts to a List

    • Use the Add a Person, Organisation, or Opportunity to a List action.

    Add to List Setup

  2. Configure the List Field

    • Select the desired pipeline or list in Affinity for the new data.
    • Map the data dynamically from previous steps.

    Configure List Field

  3. Test the Pipeline Update

    • Test the step to confirm the organisation is correctly added to the specified list.

    Pipeline Test


Adding Organisations to a Pipeline with Dynamic Data

  1. Map the Organisation Field Dynamically

    • In the Add a Person, Organisation, or Opportunity to a List action, click the Organisation field.
    • Use dynamic data from the previous steps, such as the Organisation ID retrieved from the Find an Organisation step.

    Map Organisation Field

  2. Test and Validate

    • Test this step to ensure the correct organisation is being added to the selected pipeline in Affinity.

Finalising the Automation

  1. Test the Entire Workflow

    • Perform a full test run from email parsing to updating Affinity to ensure all steps are functioning as intended.

    Full Workflow Test

  2. Publish the Zap

    • Once everything works correctly, publish your Zap and start using the automation.

This automation ensures that emails forwarded by your VC team are seamlessly captured and organised in Affinity, saving time and improving workflow accuracy.