• Home

  • Automation with Zapier

  • Zapier tutorials

Zapier tutorials

8 min read

Zapier for Alfred: Run Zaps from your Mac keyboard

By Krystina Martinez · November 28, 2022
The Zapier logo on an orange background

Keyboard shortcuts are the quickest way to do most things on your computer. But they can only do one thing at a time—and only work if you have the specific app open in the foreground. 

Alfred is a productivity app for macOS that can quickly launch apps, insert text snippets, search through files, and even launch workflows—in just a few keystrokes. 

Since we're all about automation at Zapier—and happen to be Alfred power users—we made  Zapier for Alfred. It's an Alfred workflow that allows you to launch Zaps (what we call our automated workflows) right from your keyboard. 

In this tutorial, we'll explain what Zapier for Alfred can do, how to set it up, plus we'll share some ideas for getting started.

You'll need access to Webhooks by Zapier for this tutorial, which is available on paid Zapier plans and during a paid trial period.

Jump ahead: 
  • What you can do with Zapier for Alfred

  • Before you begin

  • How Zapier for Alfred works

  • How to install Zapier for Alfred

  • Create a Zap that connects to Zapier for Alfred

Zapier is the leader in workflow automation—integrating with thousands of apps from partners like Google, Salesforce, and Microsoft. Use interfaces, data tables, and logic to build secure, automated systems for your business-critical workflows across your organization's technology stack. Learn more.

What you can do with Zapier for Alfred

The best thing about Zaps is that they automate tasks and processes in the background for you. And you can even use Zapier like a web clipper within Google Chrome. 

But what about those ad-hoc moments where you need to jot down a note, set a reminder, or save something quickly—and you don't have the time or patience to open a specific app or browser tab?

Zapier for Alfred takes care of those ad-hoc automation situations, so you can take care of business without disrupting your flow. 

Before you begin

You'll need to purchase and install Alfred first. You can purchase a single license or a mega supporter license. We recommend the mega license because you'll get free lifetime upgrades, but you can compare the licenses to see which one will best suit you. 

Once you make your purchase, make sure to save the license code you receive in your email to a password manager. You'll need the code if you're setting up Alfred for the first time and if you  ever want to upgrade your existing license. 

After you've activated your license, make sure you've set your Alfred hotkey. This is the keyboard shortcut you'll use to call on Alfred. 

How it works

In order to start Zaps with a keyboard shortcut, you'll need to do two things:

  1. Install Zapier for Alfred.

  2. Create a Zap with a webhook as the trigger—the event that starts your workflow. 

If you're not familiar with webhooks, they allow apps to send automated messages or information to other apps when there's new data available. Webhooks use a unique URL to send this information—often called a payload—to other apps. 

Zapier for Alfred is a beginner-friendly way to get started with webhooks. We'll use Webhooks by Zapier, our built-in tool, to automatically generate that unique URL we'll need to start Zaps from Alfred. 

How to install Zapier for Alfred

Once you've set up Alfred, download Zapier for Alfred by clicking the link below. 

Download Zapier for Alfred. 

You'll be directed to its Github repository. If you've never used Github before, don't panic. Click Go to file, which is located in the upper-right corner. 

Click on the "Go to file" button located in the top-right of the GitHub page.

After you install Alfred, just download Zapier for Alfred and double-click the Zapier for Alfred.alfredworkflow file to add it to your collection of Alfred workflows.

You'll see two files listed: a README, which has the instructions for installing the workflow, and the actual file itself. Click on Zapier for Alfred.alfredworkflow. 

Click on the Zapier for Alfred file located below the README file.

Then click Download. 

Click on the "Download" button located to the right.

 Save the file somewhere on your computer and open it. 

Once it's downloaded, double-click on the file, which will automatically open in Alfred. Click Import. 

Alfred will show you the details of the workflow. Click the "Import" button at the bottom-right.

Alfred will automatically take you to its workflow editor, located within the Workflows tab of your settings. 

Alfred's workflow editor will show you all the steps in a given workflow, visualized like a flow chart.

We'll come back to this in a few minutes. 

Create a Zap that connects to Zapier for Alfred

Next, we need to create a Zap that triggers from a webhook. This is how our Alfred workflow will communicate with Zapier. 

Here's how to set it up: 

  1. Set up your webhook trigger

  2. Add the webhook URL to your Alfred workflow

  3. Test your webhook by sending something through Alfred

  4. Set up the rest of your Zap and make sure it's on

  5. Copy the Zapier for Alfred workflow and repeat for anything else you want to automate!

Set up your webhook trigger

Open up a browser tab, log in to your Zapier account, and create a new Zap from scratch. 

Select Webhooks by Zapier as your trigger app, Catch Hook as your event, and click Continue. 

Webhooks by Zapier is the trigger app and "Catch Hook" is the event.

You'll be asked if you want to pick off of a Child Key. This option is for situations where you want Zapier to narrow the results your webhook returns to a specific property. We won't need to do that for our example, so click Continue. 

You'll see that Zapier generated a webhook URL. Click the Copy button to copy the URL to your clipboard. 

Click the "Copy" button next to the webhook URL to copy it to your clipboard.

Add the webhooks URL to Zapier for Alfred

Toggle back to your Alfred preferences. Within the workflow editor for Zapier for Alfred, click the [x] button located in the top-right corner. 

Click on the environment variable button located in the top-right of the Alfred workflow editor.

A pop-up window will prompt you to add any environment variables to your workflow. Environment variables are any values you need to reference throughout an Alfred workflow. 

You'll see that this workflow already has an environment variable called ZAP_URL, but the Value is blank. Double-click the Value field next to ZAP_URL, paste your webhook URL, and click Save. 

Paste the webhook URL in the "Value" field, right next to "ZAP_URL".

Send something to Alfred to test your webhook

Now, we need to send something to Zapier for Alfred in order to test our webhook trigger and set up the rest of our Zap.

Open your Alfred search pane using the custom keyboard shortcut you set. Enter the keyword zap to call upon the Zapier for Alfred workflow.

Type in "zap" in your Alfred search pane and hit the space bar.

Then, type in the text you want to send to Zapier. If you type in your text as-is and hit Enter, it will appear in your webhook in one field when you test your trigger. 

This may not be ideal if you need to populate multiple fields—for example, adding a task with a due date. Instead, you can use Zapier's named variables. 

How to use named variables

Named variables can separate a block of text, assign it to individual fields, and pass those fields to your action—and you don't have to use a formatter step either. The key is how you format the original text. 

To use named variables in Alfred, you'll type in yourFieldName(The value associated with your field), a space, and then repeat for each individual field you want to populate, then hit Enter. 

This format tells Zapier which parts are fields and what information belongs to each field. 

A few formatting notes: 

  • Your field names cannot contain spaces. If your field name is two or more words, you can use underscores or camel case (where the first letter of each word is capitalized except for the first word). 

  • Your field names can only contain letters, numbers, and underscores. 

  • Your values must be in parenthesis. As long as they're enclosed in parenthesis, there's no rules on spaces or characters.

Need more help with named variables? Check out our help doc and the Zapier Community for a thorough explanation.

For our Alfred example, I'm going to add a task to my to-do list in Notion. I want to send the name of the task, the date I'm going to start working on the task, and the project I want to assign the task to.

So for my to-do list, I typed in the following and hit Enter:

task(The task I need to do) doDate(The date I want to start writing) project(The project I want to assign the task to)

Type in the text you want to send to your webhook.

Once you've entered the text you want Alfred to send to your webhook, go back to the Zap editor and click Test trigger.

Click the "test trigger" button.

You'll see a success message if Zapier found information in your webhook. If you used named variables, you'll see the raw data in the note field, plus the individual fields and corresponding values you created.

Note: If you plan to use named variables every time, make sure the field names stay the same so your Zap works consistently. 

In this example, that long line of text I sent to Alfred has been broken up into separate fields, based on how I formatted my named variables. 

Sample data from the trigger test, which includes raw text and fields created from named variables.

When you're happy with your test, click Continue. 

Set up the rest of your Zap

Set up the rest of your Zap with any actions you'd like. If you've used named variables to test your trigger, you can map those fields where you want them in your action step. 

In the example below, you'll see how I've mapped my named variables to the corresponding Notion properties, such as Task to the Name field. 

Map the fields in your action using information from your webhook test.

Set up the rest of your Zap and make sure it's on. Now you can start Zaps no matter what you're doing!

Rinse and repeat!

Want to use Zapier for Alfred to trigger more than one Zap? Just right-click on Zapier for Alfred within the Workflows section of your Alfred preferences, and select Duplicate. 

Right-click on the Zapier Alfred workflow and select "Duplicate."

Right-click on your copied workflow again and select Edit Details. You can rename your copied workflow something descriptive, like the name of your Zap. You can also drag and drop a different icon for workflow if you're a visual person. When you're done, click Save. 

Edit the details of your copied Alfred workflow. Change the name, description, and even change the icon.

Then double-click the Keyword object in the Alfred workflow editor, and give your Zap a different keyword. By default, it's zap, but give it a keyword you'll remember. Feel free to change the icon too if you'd like. 

In the example below, I modified the Subtext field to specify which Zap the workflow will send to. 

Edit the keyword object in your copied workflow. You can change the keyword, title, icon, and subtext.

 Then, repeat the steps above to create your Zap. Just don't forget to swap out the environment variable in Alfred with your new webhook URL.


Ideas for getting started with Zapier for Alfred

In a hurry? We've made some Zapier workflows so you can get started with Zapier for Alfred quickly.

Just remember: Make a new copy of the Zapier for Alfred workflow for each Zap, give the Alfred workflow its own keyword, and always copy the Zap's Webhooks URL and add it to your Alfred workflow.

To get started with a Zap template—what we call our pre-made workflows—just click on the button. It only takes a few minutes to set up. You can read more about setting up Zaps here.

Save contact information quickly

There are many ways to keep track of contact information automatically, but there are those rare situations your existing Zaps may not account for. For example, when someone verbally gives you their information in a meeting.  

These Zaps will get you started:

Add Mailchimp list subscribers from newly-caught webhooks

Add Mailchimp list subscribers from newly-caught webhooks
  • Webhooks by Zapier logo
  • Mailchimp logo
Webhooks by Zapier + Mailchimp

Create ActiveCampaign contacts from new caught webhooks

Create ActiveCampaign contacts from new caught webhooks
  • Webhooks by Zapier logo
  • ActiveCampaign logo
Webhooks by Zapier + ActiveCampaign

Add new Google Contacts from webhooks

Add new Google Contacts from webhooks
  • Webhooks by Zapier logo
  • Google Contacts logo
Webhooks by Zapier + Google Contacts

Create Salesforce leads with new webhooks

Create Salesforce leads with new webhooks
  • Webhooks by Zapier logo
  • Salesforce logo
Webhooks by Zapier + Salesforce

Create HubSpot contacts from newly-caught webhooks

Create HubSpot contacts from newly-caught webhooks
  • Webhooks by Zapier logo
  • HubSpot logo
Webhooks by Zapier + HubSpot

Send emails and messages

Opening your inbox or team chat app can be a slippery slope. You might go in to send a business-critical message, but then you find yourself an hour later reading your backlog of newsletters or chatting with a coworker about Taylor Swift tickets. Try these workflows so you can still send important messages while minimizing distractions.

Send emails with new caught webhooks

Send emails with new caught webhooks
  • Webhooks by Zapier logo
  • Email by Zapier logo
Webhooks by Zapier + Email by Zapier

Send Slack channel messages from a Webhook

Send Slack channel messages from a Webhook
  • Webhooks by Zapier logo
  • Slack logo
Webhooks by Zapier + Slack

Send Microsoft Teams messages from new caught webhooks

Send Microsoft Teams messages from new caught webhooks
  • Webhooks by Zapier logo
  • Microsoft Teams logo
Webhooks by Zapier + Microsoft Teams

Catch new webhooks and create drafts in Gmail

Catch new webhooks and create drafts in Gmail
  • Webhooks by Zapier logo
  • Gmail logo
Webhooks by Zapier + Gmail

Send Microsoft Outlook emails from a webhook

Send Microsoft Outlook emails from a webhook
  • Webhooks by Zapier logo
  • Microsoft Outlook logo
Webhooks by Zapier + Microsoft Outlook

Create reminders and tasks

I'm the type of person who instantly forgets tasks if I don't capture it somewhere right away. That's why I have to reduce the barriers for logging to-dos, such as needing to open certain apps or finding the correct project. These Zaps make it easy to create reminders and tasks quickly.

Create a Trello card when a webhook is received

Create a Trello card when a webhook is received
  • Webhooks by Zapier logo
  • Trello logo
Webhooks by Zapier + Trello

Catch new webhooks and create a Todoist task

Catch new webhooks and create a Todoist task
  • Webhooks by Zapier logo
  • Todoist logo
Webhooks by Zapier + Todoist

Create Asana tasks from caught webhooks

Create Asana tasks from caught webhooks
  • Webhooks by Zapier logo
  • Asana logo
Webhooks by Zapier + Asana

Create database items in Notion with new caught webhooks

Create database items in Notion with new caught webhooks
  • Webhooks by Zapier logo
  • Notion logo
Webhooks by Zapier + Notion

Create a Slack reminder from a webhook

Create a Slack reminder from a webhook
  • Webhooks by Zapier logo
  • Slack logo
Webhooks by Zapier + Slack

Save information for later

My friend Laurie likes to use Zapier for Alfred to save good feedback and praise to her personal brag sheet. And my editor Deb tracks everything in a Google Sheet, including her to do list, because she's a monster. 

Get started with the Zaps below to start tracking whatever you like, wherever you like.

Create database items in Notion with new caught webhooks

Create database items in Notion with new caught webhooks
  • Webhooks by Zapier logo
  • Notion logo
Webhooks by Zapier + Notion

Add info to a Google Sheet from new Webhook POST requests

Add info to a Google Sheet from new Webhook POST requests
  • Webhooks by Zapier logo
  • Google Sheets logo
Webhooks by Zapier + Google Sheets

Create Airtable records with new caught webhooks

Create Airtable records with new caught webhooks
  • Webhooks by Zapier logo
  • Airtable logo
Webhooks by Zapier + Airtable

Create a spreadsheet row in Microsoft Excel from a webhook

Create a spreadsheet row in Microsoft Excel from a webhook
  • Webhooks by Zapier logo
  • Microsoft Excel logo
Webhooks by Zapier + Microsoft Excel

Automation is just a hotkey away

Running Zaps from Alfred can help you take care of business-critical tasks without disrupting your flow—or needing to memorize random keyboard shortcuts. 

Need more options for automating your most important processes? Check out some other ways you can trigger Zaps: 

  • How to start Zaps from Siri Shortcuts

  • Create your own web clipper with the Zapier Chrome extension

This article was originally published in August 2017 by Matthew Guay and was substantially updated in November 2022 by Krystina Martinez.

Get productivity tips delivered straight to your inbox

We’ll email you 1-3 times per week—and never share your information.

tags
mentioned apps

Related articles

Improve your productivity automatically. Use Zapier to get your apps working together.

Sign up
See how Zapier works
A Zap with the trigger 'When I get a new lead from Facebook,' and the action 'Notify my team in Slack'