We love Slack at ChartMogul, and we know our customers do too.
That's why we wrote our Ultimate Slack Cheat Sheet [pdf], which contains lots of helpful tips to take you from a Slack beginner to pro.
Step 1. Set up a Gmail label for ChartMogul notifications
In order for IFTT to identify the emails to forward onto your Slack group, you need to set up a filter and corresponding label in Gmail, which applies to all of the ChartMogul notifications you want to post.
1. In your Gmail account, click your search field, and enter the following:
This search should match notifications you receive for:
- New customers (the best kind of notification)
- Switched customers (upgraded plans)
- Downgraded customers
- Churned customers (eek)
2. Click the “Create filter with this search” link.
3. On the next page of options, select “Apply the label:” and create a new label – let’s call it ChartMogul Notifications
4. Finally, select “Also apply filter to matching conversations”, then go ahead and create it by clicking “Create filter”. We’re done with the Gmail part!
Step 2. Create a recipe in IFTTT
1. If you don’t have an account, go ahead and set one up on ifttt.com. You don’t need the mobile app for this, unless you want to install it.
2. Now for the good bit: Go to ifttt.com/myrecipes/personal/new to start creating a new recipe.
3. Click the “This” part of the rule, then search for and click the Gmail Trigger Channel.
4. On the “Choose a Trigger” page, click “New email in inbox labeled”, and then in the Label field type the exact name of the Gmail label we created: ChartMogul Notifications.
1. Now click the “That” part of the rule, search for the Slack Action Channel and click it.
2. You’ll need to then Authenticate with your Slack login, so that IFTTT can post to Slack for you.
3. Then we just need to configure the Slack settings:Select the channel you want the notifications to go to.
- Message – let’s leave it as “Subject”.
- Title – we can make this field blank.
- Title URL – leave this blank too.
- Thumbnail URL – Edit this and set it to “FirstAttachmentPublicURL” – then we’ll get a ChartMogul thumbnail with the post.
4. Save these settings to go to the next page, and give the recipe a title (leave it as the default if you like). Then create the recipe and wait for your first notification to come in – you should see it in the Slack channel that you selected, posted by the IFTTT bot. Awesome!
Of course, you can use this method to get any kind of email notifications forwarded to Slack – just re-use the IFTTT template, and change the Gmail label name that you want to use.