Skip to content

How to Automatically Send Slack Messages from Gmail Using Email Parser

  • by

Let us look at how you can integrate Gmail with Slack and automatically share your emails with team members on Slack using Email Parser.
This automation requires a one-time setup, for which we will use Pabbly Connect.
We will first link Gmail with Pabbly Connect using Email Parser to capture the emails, then link Pabbly Connect with Slack and share the captured emails on a Slack channel.

Steps to Automatically Send Slack Messages from Gmail Using Email Parser

1. Sign In / Sign Up to Pabbly Connect and Create a Workflow
2. Setup Email Parser by Pabbly as the Trigger App to Capture Emails
3. Add a Filter to the Workflow
4. Setup Slack as the Action App to Send Channel Messages

Step 1:- Sign In / Sign Up to Pabbly Connect and Create a Workflow

A. Sign In / Sign Up

To begin this process, visit Pabbly Connect and create your account by clicking on the ‘Sign Up Free’ button. You can also click on Sign In if you already have an account.

Click on the Pabbly Connect ‘Access Now’ button

B. Create Workflow

To create a new workflow, click the ‘Create Workflow’ button.

Name your workflow, and click on ‘Create’.

Step 2:- Setup Email Parser by Pabbly as the Trigger App to Capture Emails

We will now look at the steps through which we will establish a link between Gmail and Pabbly Connect. This will help us to fetch the emails.

A. Trigger App

Trigger allows us to choose the application that will receive the data for Pabbly Connect. In our case, it would be Email Parser by Pabbly.

Choose ‘Email Parser by Pabbly’ as the Trigger App and copy the Email – this Email Address will be used to fetch the emails from your Gmail account.

B. Connect Gmail Account

Login to your Gmail account, and click on ‘Settings’ > ‘See all settings’.

Select ‘Forwarding and POP/IMAP’ and click on ‘Add a forwarding address’.

Paste the Email Address we copied earlier, and click on ‘Next’.

A dialogue box will pop up asking you for confirmation. ‘Proceed’ with forwarding to the given email address.

You will be asked to enter a confirmation code, which you will find under Response Received on Pabbly Connect.

Expand Response Received, copy the Confirmation Code, paste it into its given field, and click on ‘Verify’.

Enable Forwarding, click on ‘Save Changes’ and your connection will be established.

C. Test Connection

To test the established connection, click on ‘Re-Capture Email Parser Response’ and send a test email to your account using a different ID.

Switch to Pabbly Connect, and expand Response Received – under which the latest email details must be visible, thus confirming our connection.

Step 3:- Add a Filter to the Workflow

Since we want to forward only the relevant emails to Slack and filter out all other irrelevant ones – we will add a filter to our Workflow.

Choose ‘Filter by Pabbly’ as the Action App, select ‘Subject’ as your Label, select ‘Equal to’ as the Filter Type, and enter a keyword from the subject as Value. At last, click on ‘Save & Send Test Request’ – This will ensure that the next step in our workflow will only be executed if the subject of your email contains that specific keyword, thus forwarding only the relevant emails.

Step 4:- Setup Slack as the Action App to Send Channel Messages

Action allows us to choose the application that will get executed by the workflow trigger.
We essentially want to share the captured emails on a Slack channel. Therefore, Slack will be our Action App.

Add another Action Step to your workflow by clicking the + button.

A. Action App

Choose ‘Slack’ as your Action App, select ‘Send Channel Message’ as an Action Event, and click on ‘Connect’.

B. Connect with Slack Account

To connect with your Slack account, select ‘Add New Connection’ and click on ‘Connect With Slack’.

Enter your Token Type and click on ‘Save’. Also, grant the authorization.

C. Compose Message

Now that you have connected your Slack account, all you need is to map the necessary details from the step above. Mapping ensures our data remains dynamic and changes as per the received responses.

Select the Channel at which you want to send the message.

Compose your message by mapping data from the step above.

Enter / Map the other fields, leaving the unnecessary ones empty, and click on ‘Save & Send Test Request’.

The moment you click on Save & Send Test Request, email details will be shared on your Slack channel.

Our automation is complete. We have successfully integrated Gmail with Slack. Each time you receive a new email, it will now automatically be shared on your Slack channel.

You can copy this entire workflow by clicking this link.

Sign Up for a free Pabbly Connect account, and start automating your business
Subscribe to our Youtube Channel for more such automation
For any other queries, visit our forum