Trigger your Zapier workflows from Mac productivity app Alfred.
Zapier is a web app automation tool that lets you build workflows with over 5000 popular web apps — from Salesforce to Gmail, Stripe to Evernote — to automate your tasks and get more done, with search actions to find data in your apps, actions to add data to your tasks and get work done automatically, and multiple steps to get a whole workflow of tasks done at once. And with Alfred, you can trigger those Zap workflows right from your Mac keyboard.
You can use this workflow to trigger any Zap that starts with a Webhooks trigger, via its bash CURL command. Download Zapier for Alfred, and install it in Alfred. Here's how to use it:
- Make a Zap, if you don't already have one. Open zapier.com, log in to your Zapier account, and make a new Zap with the Webhooks by Zapier app, using the Catch Hook trigger.
- Copy the Webhooks URL from your Zap. It'll look something like
https://hooks.zapier.com/hooks/catch/123456/1abcde/
. - Double-click the Value field beside ZAP_URL in the Environment Variables tab in the workflow settings in Alfred (click the
{x}
), then paste your Webhooks URL and click save. - Open Alfred, type
zap
followed by the text you want to send, then press enter. - Go back to Zapier and finish setting up your Zap.
- Whenever you want to run that Zap, just open Alfred, type
zap
, and enter the text you want to send to Zapier.
If you run into any trouble with the information coming through the Zap, please make sure that you are not escaping Spaces and Brackets:
These settings can be found by clicking Configure Object in the Run Script object.
Want to use this workflow with more than one Zap? Just right-click on "Zapier for Alfred" in your Workflows sidebar, select Duplicate, then add your new Zap's Webhook URL to the environment variables and add a new keyword to the keyword option.
Enjoy!
For more info, see our full tutorial for How to Use Zapier with Alfred.