如何使用Zapier自动执行生活和日常任务

Every day, we perform hundreds of small tasks. On their own, they don’t take much time. But they can add up, especially if you consider that time for a whole year.

每天,我们执行数百项小任务。 靠自己,他们不需要花费很多时间。 但是它们可以加起来,特别是如果您考虑整个一年的时间。

But we’re technologists and it’s 2020. How can we use tools like Zapier to make robots do these things for us?

但是我们是技术专家,现在是2020年。我们如何使用Zapier之类的工具来使机器人为我们做这些事情?

什么是Zapier? (What is Zapier?)

Zapier is an automation tool that connects all of the apps you love and builds powerful fully automated workflows. Whether it’s automating sending an email or making sure that new blog post gets a tweet, we can remove the manual steps of mundane tasks to focus on other things that art important.

Zapier是一个自动化工具,可连接您喜欢的所有应用程序并构建功能强大的全自动工作流。 无论是自动发送电子邮件还是确保新博客文章得到了鸣叫,我们都可以删除繁琐任务的手动步骤,以专注于其他重要的事情。

Each time you create a new workflow, you’re creating a “Zap”. It’s essentially Zapier’s way to give a name to the workflow you create.

每次创建新工作流程时,都会创建一个“ Zap”。 从本质上讲,这是Zapier为您创建的工作流命名的方法。

Zapier Zaps能做什么? (What can we do with Zapier Zaps?)

The brilliant part about Zapier is each app integration makes its API available via Zapier to other app integrations giving you a ton of options to connect and build powerful workflows.

关于Zapier的杰出之处在于,每个应用程序集成都可以通过Zapier将其API应用于其他应用程序集成,从而为您提供了大量的选项来连接和构建强大的工作流程。

Particularly, we’re going to learn how to do a few things:

特别是,我们将学习如何做一些事情:

  • Sending a text every morning if it’s going to rain

    如果要下雨,每天早晨发送短信
  • Set up a weekly print job to keep your ink fresh

    设置每周打印作业以保持墨水新鲜
  • Receive emails for new jobs on Smashing Magazine’s job board

    在Smashing Magazine的工作板上接收有关新工作的电子邮件

While each of these tasks are small, they end up saving you a lot of time. And if you’re creative, you can build upon these workflows to customize a whole lot more.

尽管这些任务都很小,但最终却为您节省了大量时间。 而且,如果您很有创造力,则可以基于这些工作流来自定义更多内容。

Zapier帐户入门 (Getting started with a Zapier account)

Before we get into setting up workflows, you’ll need an account.

在开始设置工作流程之前,您需要一个帐户。

Signing up for Zapier is free and you get 5 free Zaps to start, so we don’t have to worry about cost here.

免费注册Zapier ,您可以免费获得5个Zaps ,所以我们不必担心这里的费用。

Now let’s get into the Zaps.

现在,让我们进入Zaps。

Zap 1:如果要用Zapier下雨,请获取文本 (Zap 1: Get a text if it’s going to rain with Zapier)

To get an idea of how this works, we’ll start with something simple. We’re going to set up a Zap that will send us a text message if the weather predicts rain.

为了了解其工作原理,我们将从简单的内容开始。 我们将设置一个Zap,如果天气预测会下雨,它将向我们发送一条短信。

To get started, click the big Make a Zap button on the top left of the page when you’re logged into your account.

要开始使用,请在登录帐户后点击页面左上方的“ 制作一个按钮。

如何使用Zapier自动执行生活和日常任务
Making a new Zap
制作新的Zap

Here, Zapier wants to know the first app we want to connect. Since we’re going to base our Zap on the weather, search for “weather” and select Weather by Zapier.

在这里,Zapier想知道我们要连接的第一个应用程序。 由于我们要根据天气选择Zap,因此请搜索“天气”,然后选择“ Zapier的天气”。

如何使用Zapier自动执行生活和日常任务
Selecting the Weather by Zapier integration
通过Zapier集成选择天气

It will then ask you to choose a Trigger Event, where you’ll select “Will It Rain Today?”, then you can click the Continue button.

然后它将要求您选择一个触发事件 ,在其中选择“今天会下雨吗?”,然后您可以单击“ 继续”按钮。

如何使用Zapier自动执行生活和日常任务
Choosing the Will it Rain Today? event
选择今天会下雨吗? 事件

When choosing Weather as an event, it requires a little bit of information to give us a personalized prediction. Particularly, it requires your Latitude and Longitude, which we can look up using latlong.net.

选择“天气”作为事件时,需要一点信息才能为我们提供个性化的预测。 特别是,它需要您的纬度和经度,我们可以使用latlong.net进行查找

如何使用Zapier自动执行生活和日常任务
Finding latitude and longitude with latlong.net
使用latlong.net查找纬度和经度

You can then enter your Latitude and Longitude into the Customize Forecast screen of Zapier, select your Units which defaults to Fahrenheit, and then click the big Continue button.

然后,您可以在Zapier的“ 定制预测”屏幕中输入纬度经度 ,选择默认为华氏度的 单位 ,然后单击大的继续按钮。

如何使用Zapier自动执行生活和日常任务
Configuring forecast with latitude and longitude
配置纬度和经度的预测

At this point, you can click Test Trigger, which simply makes sure it’s working, and click Continue again.

此时,您可以单击Test Trigger ,以确保其正常工作,然后再次单击Continue

Now we’re going to tell Zapier what to do with the information once it knows it’s going to rain.

现在,一旦知道即将下雨,我们将告诉Zapier如何处理这些信息。

In the "Do this..." panel, search for “sms” and select SMS by Zapier.

在“执行此操作...”面板中,搜索“ sms”,然后选择“ Sapi by Zapier”

如何使用Zapier自动执行生活和日常任务
Selecting SMS by Zapier
通过Zapier选择短信

We’re going to leave the App and Event as the defaults, so the next screen you can just click Continue.

我们将把“ 应用程序事件”保留为默认设置,因此在下一个屏幕中,您只需单击“ 继续”即可

如何使用Zapier自动执行生活和日常任务
SMS App and Event
短信应用和事件

Now, for Zapier to send you a text, it needs to verify that your phone number belongs to you or that the phone number is knowingly signing up for these texts. To do that, it sends you a one-time PIN that you’ll enter.

现在,要让Zapier向您发送文本,它需要验证您的电话号码属于您,或者该电话号码在有意地注册这些文本。 为此,它会向您发送一次输入的PIN码。

So click Sign in to SMS by Zapier, which will open a popup window.

因此,单击登录Zapier的SMS ,这将打开一个弹出窗口。

Here, enter your phone number, and choose Sms or Call as the verification method at which point it will contact you with a PIN.

在此处输入您的电话号码,然后选择“短信”或“呼叫”作为验证方法,此时它将通过PIN与您联系。

如何使用Zapier自动执行生活和日常任务
Sign in to SMS by Zapier and send a PIN
通过Zapier登录到SMS并发送PIN码

With that PIN, enter it into the field and click Continue.

使用该PIN,将其输入到字段中,然后点击继续

如何使用Zapier自动执行生活和日常任务
Entering the SMS verification PING
输入短信验证PING

At this point the window will close and move you back to the original flow. Here, click Continue again.

此时,窗口将关闭,并将您移回原始流程。 在这里,再次单击继续

Now we get to customize the text that we receive.

现在,我们可以自定义收到的文本。

In the From Number field, Zapier gives a bunch of phone numbers you can use. You can either select one number to always send from, which you can set up as a contact so you know it’s Zapier, or you can select Random, which will use a random number every time.

在“ 发件人”字段中,Zapier提供了许多您可以使用的电话号码。 您可以选择一个始终发送的号码,您可以将其设置为联系人,以使其成为Zapier,也可以选择Random ,每次都会使用一个随机数。

Then, click inside of Message, and it will bring up some options. I want to know everything possible if it’s going to rain, including the probability, max temperature, and summary, so we can select all or as much as we want and again click Continue.

然后,在“ 消息”内部单击,它将弹出一些选项。 我想知道下雨的一切可能,包括概率,最高温度和摘要,因此我们可以选择全部或全部,然后再次单击Continue

如何使用Zapier自动执行生活和日常任务
Configuring Weather message
配置天气信息

Finally we get to test if our Zap worked. At this point everything should be configured, so click the Test & Review button and you should receive a sample text!

最后,我们开始测试Zap是否有效。 此时,应配置所有内容,因此,单击“ 测试和复查”按钮,您将收到示例文本!

Note: If you choose a single From Number, you might be limited in how frequent you can receive texts, so if you don’t get it right away, that might be why. Setting random helps prevent that issue, but the the number isn’t consistent.

注意:如果您选择一个“发件人号码”,则接收文本的频率可能会受到限制,因此,如果您没有立即得到它,这可能就是原因。 设置随机数有助于防止该问题,但是数量不一致。

And once you’re happy with the configuration, you can click Turn On Zap.

对配置满意后,您可以点击开启Zap

如何使用Zapier自动执行生活和日常任务
Turning on the SMS Zap
开启SMS Zap

You’ll now get texts in the morning if the weather is predicting rain!

现在,如果天气预计会下雨,您将在早上收到短信!

Zap 2:每周使用Google Cloud Print打印测试 (Zap 2: Print a test every week with Google Cloud Print)

This one doesn’t sound exciting, but have you ever gone through a long period of time where you didn’t print something, only to end up with dried out printer heads or worse yet, a now unsalvageable printer?

这听起来并不令人兴奋,但是您是否经历了很长一段时间没有打印任何东西,却最终导致打印头变干,或者更糟糕的是,现在已经无法使用打印机了?

We can avoid this by simply running a weekly print job that keeps our printer ink nice and fresh.

我们可以通过每周运行一次打印作业来保持打印机的新鲜和新鲜,从而避免出现这种情况。

For this, we’ll use Google Cloud Print. To make this work, you’ll need to already have this configured with your Google account.

为此,我们将使用Google Cloud Print 。 要使其正常工作,您需要已经使用Google帐户对其进行了配置。

Let’s create a new Zap and this time for our “When this happens…” search for and select Schedule by Zapier.

让我们创建一个新的Zap,这次是为“何时发生……”搜索并选择Zapier的Schedule

如何使用Zapier自动执行生活和日常任务
Selecting Schedule by Zapier
通过Zapier选择时间表

We can then select a Trigger Event of Every Week and click Continue.

然后,我们可以选择每周 触发事件 ,然后单击继续

如何使用Zapier自动执行生活和日常任务
Setting Trigger Event as Every Week
将触发事件设置为每周

Next, you can choose the Day Of The Week and Time Of Day you’d like to print. I personally run this job weekly at 8pm on Sundays right before the start of a new week. Once configured, click Continue.

接下来,您可以选择要打印的星期几时间 。 我个人在新的一周开始之前,每周日晚上8点运行这项工作。 配置完成后,点击继续

如何使用Zapier自动执行生活和日常任务
Configuring Zapier schedule
配置Zapier时间表

At this point, we can click Test trigger, which just like before makes sure it’s working properly, and then we can click Continue.

此时,我们可以单击Test trigger,就像之前确保其正常工作一样,然后单击Continue

Now, for our “Do this…” we want to print, so search for and select Google Cloud Print.

现在,我们要打印“执行此操作...”,因此搜索并选择“ Google Cloud Print”

如何使用Zapier自动执行生活和日常任务
Selecting Google Cloud Print
选择Google云打印

And for the action, select Submit Print Job.

然后选择“ 提交打印作业”作为操作。

如何使用Zapier自动执行生活和日常任务
Setting Submit Print Job as Action Event
将“提交打印作业”设置为操作事件

At this point, you’ll need to sign into Google Cloud Print. This will open a window and have you log in through Google so that Zapier can interface with the service.

此时,您需要登录Google云打印。 这将打开一个窗口,让您通过Google登录,以便Zapier可以与该服务交互。

Once connected, click Continue.

连接后,点击继续

Now we can configure out print job. Here we’ll want to define what we print.

现在我们可以配置打印作业。 在这里,我们要定义我们要打印的内容。

如何使用Zapier自动执行生活和日常任务
Configuring Print Job in Zapier
在Zapier中配置打印作业

In the above, we’re configuring:

在上面,我们正在配置:

  • Which Printer: the printer we want to print to connected to Google Cloud Print

    哪台打印机:我们要打印的打印机已连接到Google Cloud Print

  • Content: this can be a URL to a document, HTML, or plain text. I’m using a URL which is a simple test page I made that has some color in it

    内容:这可以是文档,HTML或纯文本的URL。 我使用的是一个简单的测试页网址,其中包含一些颜色

  • Content Type:  you’ll want to set this depending on what you set in Content. If you set a URL like I did, it should be URL

    内容类型:您需要根据在内容中设置的内容进行设置。 如果像我一样设置URL,则应为URL

  • Title Of Print Job: the name of the job so you can see it in the print logs

    作业标题:作业的名称,以便您可以在打印日志中看到它

  • Number of Copies: probably just want 1 so it doesn’t waste ink and paper

    份数:可能只想要1,这样就不会浪费墨水和纸张

  • Color or Monochrome: you’ll want to explicitly set this if you want color. The idea is to refresh all of the ink cartridges, so only printing black won’t help the color ink, so in my case, I selected color

    颜色或单色:如果需要颜色,则需要明确设置。 这个想法是刷新所有墨盒,所以只打印黑色不会帮助彩色墨水,所以在我的情况下,我选择了彩色

The rest of the fields are optional, feel free to customize to your liking.

其余字段是可选的,您可以根据自己的喜好自定义。

With our configuration set, click Continue, and similar to before, we can click Test to see our print job in action and if we’re happy, we can click Turn on Zap!

设置好配置后,单击“ 继续” ,与之前相似,我们可以单击“ 测试”以查看我们的打印作业,如果愿意,我们可以单击“ 打开Zap”

如何使用Zapier自动执行生活和日常任务
Test print from Zapier print job
从Zapier打印作业测试打印

If you want to use the same document, you can find it here: https://fay.io/printer-test.pdf

如果要使用同一文档,可以在这里找到: https : //fay.io/printer-test.pdf

Zap 3:使用Gmail粉碎杂志工作警报 (Zap 3: Smashing Magazine Job Alerts with Gmail)

If we’re looking for a job, it can be a pain to have to visit every job board every day (or every hour, am I right?). But we can automate this process when the job board supports it.

如果我们正在寻找工作,每天都要(或每小时一次)拜访每个工作委员会可能会很痛苦。 但是,当工作委员会支持时,我们可以使该过程自动化。

Luckily, job boards like Smashing Magazine and a whole lot of others provide RSS feeds which we can hook right in to Zapier to automate getting an email whenever a new job is posted.

幸运的是,像Smashing Magazine这样的工作委员会以及许多其他工作委员会都提供RSS feed,我们可以直接将它们连接到Zapier,以便在发布新工作时自动接收电子邮件。

To get started, let’s create a new Zap, and this time, search for RSS and select RSS by Zapier.

首先,让我们创建一个新的Zap,这次,搜索RSS并选择Zapier的RSS

如何使用Zapier自动执行生活和日常任务
Selecting RSS by Zapier
通过Zapier选择RSS

For our Trigger Event, select New Item in Feed, then click Continue.

对于我们的触发事件 ,请在Feed中选择“ 新建项目” ,然后单击“ 继续”

如何使用Zapier自动执行生活和日常任务
Setting New Item in Feed as Trigger Event
将Feed中的新项目设置为触发事件

At this point, we want to enter a feed URL. This will be the URL to the XML RSS feed that websites make available. For Smashing Magazine, you can find it here:

此时,我们要输入一个提要URL。 这将是网站提供的XML RSS feed的URL。 对于《粉碎杂志》,您可以在这里找到它:

https://www.smashingmagazine.com/jobs/feed

https://www.smashingmagazine.com/jobs/feed

So enter that URL above into Feed URL (you can leave Username and Password blank), and keep Different GUID selected for What Triggers A New Feed Item. Then click Continue.

因此,将上面的URL输入到Feed URL中 (您可以将UsernamePassword留空),并在“触发新Feed项的触发方式”中选择“ 其他GUID” 。 然后单击继续

如何使用Zapier自动执行生活和日常任务
Setting RSS Feed URL
设置RSS Feed URL

Same as usual, now you can test the trigger to make sure it works. If the RSS feed is valid, this will be smooth, otherwise you might see an error. The above URL should be valid!

与平常一样,现在您可以测试触发器以确保其起作用。 如果RSS提要有效,这将很顺利,否则您可能会看到错误。 以上网址应有效!

如何使用Zapier自动执行生活和日常任务
Testing the RSS feed
测试RSS提要

Next, we need to choose what we want to do with the new item. Since we want it emailed, we can choose our email service, which in my case is Gmail.

接下来,我们需要选择要对新项目执行的操作。 由于我们希望通过电子邮件发送电子邮件,因此我们可以选择我们的电子邮件服务,在我的情况下为Gmail。

如何使用Zapier自动执行生活和日常任务
Selecting Gmail in Zapier
在Zapier中选择Gmail

For our action, we want to Send Email.

对于我们的操作,我们想发送电子邮件

如何使用Zapier自动执行生活和日常任务
Setting Action Event as Send Email
将动作事件设置为发送电子邮件

Next, you want to sign in to your account, similar to what we did with Google Cloud Print. This should be your Google account that you use Gmail with.

接下来,您要登录您的帐户,类似于我们对Google Cloud Print所做的操作。 这应该是您使用Gmail的Google帐户。

如何使用Zapier自动执行生活和日常任务
Sign in to Gmail
登录到Gmail

Now when we customize our email, we want to include the following:

现在,当我们自定义电子邮件时,我们希望包括以下内容:

  • To: wherever you want these sent to, probably the same account you signed into Gmail with

    收件人:无论您希望将这些邮件发送到何处,都可以使用与您登录Gmail相同的帐户

  • From: select your Gmail account

    发件人:选择您的Gmail帐户

  • From Name: can be anything you’ll recognize, like I’ll use Colbybot

    来自姓名:可以是您会认识的任何东西,例如我将使用Colbybot

  • Subject: can be whatever you’d like, but a helpful idea could be “New Job Alert:" followed by selecting the title from the dropdown selection

    主题:可以是您想要的任何内容,但有用的想法可以是“新工作提示:”,然后从下拉菜单中选择标题

  • Body Type: you can leave as Plain

    身体类型:您可以保持平淡

  • Body: I would recommend including all tokens you’ll find helpful including the Title, Description, and Link

    正文:建议您添加所有对您有用的标记,包括标题,说明和链接

如何使用Zapier自动执行生活和日常任务
Configuring job notification email
配置工作通知电子邮件

Once you’re done configuring, you can hit continue. Then, similar to before, click Test & Review, and you should receive your test email.

完成配置后,可以单击继续。 然后,与之前相似,单击“ 测试和审查” ,您应该会收到测试电子邮件。

如何使用Zapier自动执行生活和日常任务
Test job alert email
测试作业提醒电子邮件

Finally if you’re happy with the configuration, turn on the Zap, and enjoy your job search!

最后,如果您对配置感到满意,请打开Zap,然后开始找工作!

你还能做什么? (What else can you do?)

更多想法 (More Ideas)

Here’s more ideas to get you moving in the right direction:

以下是让您朝正确方向前进的更多想法:

  • Post Tweets to Slack: every time an account tweets or someone from a list of accounts tweets, post that tweet to Slack

    将推文发布到Slack:每当帐户推文或帐户推文列表中的某人将推文发布到Slack

  • File Github Bugs to Jira: whenever someone tags a Github Issue with a label of “bug”, create a new ticket in Jira with that Issue details

    将Github Bug提交给Jira:每当有人用“ bug”标签标记Github Issue时,请在Jira中使用该Issue的详细信息创建新票证

  • Post RSS Items to Twitter: do you write your own content? Set up an RSS feed to automatically post a tweet with your new blog post

    将RSS项目发布到Twitter:您是否编写自己的内容? 设置RSS源以自动在您的新博客文章中发布推文

不是Google Assistant (Not Google Assistant)

The only thing that it’s missing for me right now is Google Assistant, otherwise I would have included some Zap ideas for that. IFTTT supports Google Assistant for simpler flows, but Zapier can get more powerful.

目前我唯一缺少的是Google助手,否则我会为此提供一些Zap想法。 IFTTT支持Google Assistant来简化流程,但是Zapier可以变得更强大。

网络挂钩 (Webhooks)

Zapier supports web hooks — meaning you can really do whatever you want. Though this is a premium feature, you can set up some custom workflows based off of new data Zapier sees or accept requests that you post to trigger other automations.

Zapier支持Web挂钩-这意味着您可以真正做任何您想做的事情。 尽管这是一项高级功能 ,但是您可以基于Zapier看到的新数据或接受您发布的触发其他自动化的请求来设置一些自定义工作流。

您最喜欢的Zap是什么? (What's your favorite Zap?)

Love hearing new creative ways to use Zapier. Share with me on Twitter!

喜欢聆听使用Zapier的新创意方式。 在Twitter上与我分享!

翻译自: https://www.freecodecamp.org/news/how-to-automate-your-life-and-everyday-tasks-with-zapier/