Skip to content

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: 

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. 

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.

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

  • Webhooks by Zapier logo
  • Mailchimp logo
Webhooks by Zapier + Mailchimp
More details
    Use a webhook to create a powerful bridge between your favorite app and Mailchimp. If the app you're working with supports webhooks, set up this Zap to easily add a webhook URL that will send data automatically to a Mailchimp list.

    Create ActiveCampaign contacts from new caught webhooks

    • Webhooks by Zapier logo
    • ActiveCampaign logo
    Webhooks by Zapier + ActiveCampaign
    More details
      If you use webhooks that capture client contact information, Zapier can automatically add that information to ActiveCampaign for you. Once the webhook is activated, Zapier will automatically extract the necessary information from the webhook and add it to ActiveCampaign.

      Add new Google Contacts from webhooks

      • Webhooks by Zapier logo
      • Google Contacts logo
      Webhooks by Zapier + Google Contacts
      More details
        If you've got contact data flowing through your webhook pipeline, you might as well take capture it for every list you need. Set up this webhook-Google Contacts integration and we'll act as your ears. Then, whenever your custom webhook URL catches a new payload, Zapier will create a new Google Contact from the data, making sure you're never missing anyone.

        Create Salesforce leads with new webhooks

        • Webhooks by Zapier logo
        • Salesforce logo
        Webhooks by Zapier + Salesforce
        More details
          Set this integration up to scan for any data on a custom webhook URL. Any caught payloads will automatically create a lead in Salesforce. Keep your lead contacts up to date without the need for manual data entry.

          Create HubSpot contacts from newly-caught webhooks

          • Webhooks by Zapier logo
          • HubSpot logo
          Webhooks by Zapier + HubSpot
          More details
            Every time a webhook is activated, this Zap automatically creates or updates a contact in HubSpot. Update your contact list with this custom workflow and save yourself from tedious data entry.

            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

            • Webhooks by Zapier logo
            • Email by Zapier logo
            Webhooks by Zapier + Email by Zapier
            More details
              Let's be honest, writing

              Send Slack channel messages from a Webhook

              • Webhooks by Zapier logo
              • Slack logo
              Webhooks by Zapier + Slack
              More details
                When you want to send information to Slack from a tool you're using that isn't integrated with Zapier, webhooks are a great solution. Just copy the webhook URL we give you into your app, and then Zapier can receive new information from the app and send it to your team in a Slack message.

                Send Microsoft Teams messages from new caught webhooks

                • Webhooks by Zapier logo
                • Microsoft Teams logo
                Webhooks by Zapier + Microsoft Teams
                More details
                  You know better than anyone when your teams need to be updated, but do you know how much time you spend crafting team messages? If you'd like to put that time to better use, set up this integration to automatically send new messages in Microsoft Teams as soon as new a webhook is caught from a specified source. Customize the conditions for getting in touch with your team, then keep them in the loop without even opening your email app.

                  Catch new webhooks and create drafts in Gmail

                  • Webhooks by Zapier logo
                  • Gmail logo
                  Webhooks by Zapier + Gmail
                  More details
                    If you've got info available through webhooks that you want merged into an email draft, this integration can connect your tools. Once active, it will catch new POSTs to a specific URL and then create a new draft in Gmail, pulling in all the details you need.

                    Send Microsoft Outlook emails from a webhook

                    • Webhooks by Zapier logo
                    • Microsoft Outlook logo
                    Webhooks by Zapier + Microsoft Outlook
                    More details
                      Send timely emails without needing to open Microsoft Outlook! Whenever new information is sent to a Zapier-generated webhook URL, this Zap will automatically send an email from your Microsoft Outlook account.

                      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

                      • Webhooks by Zapier logo
                      • Trello logo
                      Webhooks by Zapier + Trello
                      More details
                        This automation creates new Trello cards whenever a webhook is received. Zapier automatically uses your webhook data to create a new card which can easily be seen by you and your team.

                        Catch new webhooks and create a Todoist task

                        • Webhooks by Zapier logo
                        • Todoist logo
                        Webhooks by Zapier + Todoist
                        More details
                          If you've got info available through webhooks that also belongs in your task management tool, this integration connects your tools. Once active, it will catch new requests to a Zapier-generated webhook URL and then create a task in Todoist. With your tools working together, you won't miss another task.

                          Create Asana tasks from caught webhooks

                          • Webhooks by Zapier logo
                          • Asana logo
                          Webhooks by Zapier + Asana
                          More details
                            Only you can delegate your project's tasks. But creating those tasks on your team collaboration platform? That's something you can automate. Set up this integration and you'll see. Each time we catch a webhook from a source you specify, we'll create a task on Asana. You can keep your project moving on Asana without even having to sign in.

                            Create database items in Notion with new caught webhooks

                            • Webhooks by Zapier logo
                            • Notion logo
                            Webhooks by Zapier + Notion
                            More details
                              Activate this integration to keep your documents, tasks, and/or projects up to date with your custom workflows. As soon as a webhook request is caught at a specified URL, this Zap automatically adds an item to your Notion database.

                              Create a Slack reminder from a webhook

                              • Webhooks by Zapier logo
                              • Slack logo
                              Webhooks by Zapier + Slack
                              More details
                                Need to create Slack reminders quickly? No need to remember how to format slash commands with this integration. Whenever your Zapier-generated webhook receives new information, this Zap will automatically create a Slack reminder. Use webhooks for those apps that don't have a Zapier integration, iOS Shortcuts, or any other app you'd like!

                                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

                                • Webhooks by Zapier logo
                                • Notion logo
                                Webhooks by Zapier + Notion
                                More details
                                  Activate this integration to keep your documents, tasks, and/or projects up to date with your custom workflows. As soon as a webhook request is caught at a specified URL, this Zap automatically adds an item to your Notion database.

                                  Add info to a Google Sheet from new Webhook POST requests

                                  • Webhooks by Zapier logo
                                  • Google Sheets logo
                                  Webhooks by Zapier + Google Sheets
                                  More details
                                    Keeping an updated record of key information means you never have to wonder if there are missing or forgotten items. Set up this integration, and Zapier can catch a webhook POST from any source you want, automatically adding the information to a new row on Google Sheets once you've chosen which items go into different columns during setup. From then on, you can be sure we'll catch everything while you're free to work on other tasks.

                                    Create Airtable records with new caught webhooks

                                    • Webhooks by Zapier logo
                                    • Airtable logo
                                    Webhooks by Zapier + Airtable
                                    More details
                                      If you need to pull data from apps with webhook integrations, this automation can save you time and effort. Set it up so that, each time a webhook is received at a specified URL, Zapier will automatically extract the data you need to create a new record in Airtable. It's the perfect way to link Airtable to your internal business apps.

                                      Create a spreadsheet row in Microsoft Excel from a webhook

                                      • Webhooks by Zapier logo
                                      • Microsoft Excel logo
                                      Webhooks by Zapier + Microsoft Excel
                                      More details
                                        You know that important data is going to end up on a spreadsheet, so why not connect your webhooks to it in the first place? During set-up, this Zap will provide you with a custom webhook URL. Direct your webhook traffic to it and we'll do the rest, catching each payload and entering the data automatically on a new Excel row for you.

                                        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: 

                                        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.

                                        Related articles

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

                                        A Zap with the trigger 'When I get a new lead from Facebook,' and the action 'Notify my team in Slack'