---
title: "庆祝周年纪念和生日"
description: "三个年复一年运行的自动化流程：入职周年当天的消息并提前一周通知经理、每五年触达整个团队的里程碑流程，以及来自目录模板、尊重已选择退出者的生日消息。"
sidebar:
  order: 4
area: use-cases
appPath: /flows/home
lastVerified: 2026-11-15
version: "2026-11-13"
audience: admin
related:
  - flows/automations/tutorial-birthdays-and-anniversaries
  - flows/automations/configure-a-date-trigger
  - flows/steps/post-to-a-channel
  - flows/automations/prevent-repeat-enrollments
translation:
  source: use-cases/anniversaries-and-birthdays.mdx
  sourceSha: cd96f89735198b8b392201085c7da977247969d0
---

没有哪个入职周年或生日会被忽略：这个人在当天收到你的消息，其经理提前一周收到消息，重要的年份触达整个团队，全部来自三个每年运行、无需任何人维护名单的自动化流程。**适用对象**：Admin 和 Owner。**时间**：三个全部约 45 分钟；仅用目录模板做生日约 15 分钟。

![The finished Work anniversary automation: a trigger that fires every year, a heads-up to the manager beforehand and a note to the person on the day.](https://support.pyn.ai/media/use-cases/anniversaries-and-birthdays/use-cases-anniversaries-and-birthdays-automation.png)

## 你需要什么

- 为所有人同步的 **Start Date**，以及对生日而言由你的 HRIS 提供的 **Birthday**；见 [HRIS 字段](https://support.pyn.ai/zh-cn/integrations/hris-fields/)。在 **Directory** 中打开几份个人资料来确认。生日只存储月和日。
- 已连接 Slack 用于私信和频道帖子，并把 **Pyn Bot** 邀请进你用来庆祝的频道；见 [Slack](https://support.pyn.ai/zh-cn/integrations/slack/)。电子邮件全程可用：把 **Send Direct Message** 换成 **Send Email to Employee**。
- 关于生日的隐私决定：一个名为 **No birthday messages** 的静态群组用于排除，或使用 **Birthday opt-in** 模板让人们主动申请收到消息；见[创建静态群组](https://support.pyn.ai/zh-cn/directory/employee-groups/create-a-static-group/)。
- 可选：目录模板 **Birthday celebration** 和 **Birthday opt-in**，它们带有选择器中没有对应行的 **Birthday** 触发器。在启用了该功能的工作区中，用于里程碑的 **Post to Channel**。

## 构建方法

1. 用 **Dates and Schedules** 下的 **Upcoming Anniversary** 触发器创建一个自动化流程，把 **This flow starts** 设为 **1 week before**，并把重复设置保留为 **every year**；见[配置日期触发器](https://support.pyn.ai/zh-cn/flows/automations/configure-a-date-trigger/)。

2. 把 **Lifecycle** 设为 **Current**，并排除不庆祝的任何群组，例如承包商；见[设置自动化流程的受众](https://support.pyn.ai/zh-cn/flows/automations/set-the-audience/)。

3. 添加一个 **1 week before** 发给 **Manager** 的 **Send Direct Message** 步骤，以及一个 **on the day of** 发给 **Employee** 的步骤，都在 **Recipient Time Zone** 的 09:00；见[添加私信步骤](https://support.pyn.ai/zh-cn/flows/steps/add-a-direct-message-step/)。

4. 用 **Upcoming Milestone Anniversary** 创建第二个自动化流程，从 **2 weeks before** 开始、**every 5 years**，带一条给 **Manager** 的预先通知，以及在启用了该功能的工作区中一个 **on the day of**、提及这个人的 **Post to Channel** 步骤；见[发布到频道](https://support.pyn.ai/zh-cn/flows/steps/post-to-a-channel/)。

5. 用已表示不希望被庆祝的人创建 **No birthday messages** 静态群组；见[创建静态群组](https://support.pyn.ai/zh-cn/directory/employee-groups/create-a-static-group/)。

6. 用 **Add from Template** 添加 **Birthday celebration**，把其 **Lifecycle** 设为 **Current**，在 **Excluded** 下添加该静态群组，并用你的语气重写两个步骤，如[创建自动化流程](https://support.pyn.ai/zh-cn/flows/automations/create-an-automation/)和[教程：生日与周年纪念](https://support.pyn.ai/zh-cn/flows/automations/tutorial-birthdays-and-anniversaries/)所述。

7. 发布两个周年自动化流程并把它们设为 **Automated**，在生日模板上选择 **Use This**，并把里程碑流程置于 **Verification**，让第一个里程碑在 **Needs Review** 中等待；见[更改自动化流程的模式](https://support.pyn.ai/zh-cn/flows/automations/change-the-mode/)。

## 变体

**Slack**

把每个步骤都保留为来自 **Pyn Bot** 或个人 Slack 发件人的 **Send Direct Message**，并在里程碑帖子中使用 **Mention Principal** 标签，让这个人在频道中被提及。Slack 账号未匹配的收件人会得到一条 **Bounced** 投递，所以如果有些人不在 Slack 上，就在每条私信的 **Advanced** 标签页上勾选 **Send by email if the recipient is not in Slack**，如[有人不在 Slack 上时通过电子邮件发送私信](https://support.pyn.ai/zh-cn/flows/steps/send-by-email-when-not-in-slack/)所述，或者把给经理的预先通知改用电子邮件发送。

**Email**

把每个步骤换成 **Send Email to Employee**，并把 **From** 设为你的人事团队邮箱，如[选择发件人](https://support.pyn.ai/zh-cn/flows/steps/choose-a-sender/)所述。电子邮件没有频道帖子，所以里程碑流程只发送给 **Manager** 和 **Employee**。

一个设为 **every year** 的 **Upcoming Anniversary** 自动化流程涵盖从第一个周年起的每一个周年；不需要每年一个流程。如果你的入职流程已经涵盖了一周年节点，选择 **every year after the first**，这样两者永远不会落在同一天。

## 注意事项

- **every year** 在第一个周年及之后的每一个周年触发，从不在入职日期当天（即第 0 年）触发；见[配置日期触发器](https://support.pyn.ai/zh-cn/flows/automations/configure-a-date-trigger/)。
- 在 **Employee Properties** 下选择 **Birthday** 会创建一个文本匹配流程，只对生日等于你输入的 `MM-DD` 的人触发，而不是每年一次；请使用模板；见[配置员工属性触发器](https://support.pyn.ai/zh-cn/flows/automations/configure-an-employee-property-trigger/)。
- 被注册两次的人是在触发器间隔之外重新匹配了。周年和生日触发器在再次注册同一人之前等待 **1 month**，所以一个月内修正的入职日期不会发送两次；该字段在大多数工作区中是只读的；见[防止重复注册](https://support.pyn.ai/zh-cn/flows/automations/prevent-repeat-enrollments/)和[常见问题](https://support.pyn.ai/zh-cn/faq/)。
- **To** 中缺少某个频道，说明 **Pyn Bot** 不在其中，或该频道是在上次刷新之后才创建的，而更改发件人会清除频道；见[发布到频道](https://support.pyn.ai/zh-cn/flows/steps/post-to-a-channel/)。

## 检查是否生效

在[注册](https://support.pyn.ai/zh-cn/activity/enrollments/)下，人们在每个周年和生日的七天前出现，在里程碑的十四天前出现，以日期本身为 **Reference Date**；给经理的消息显示在注册当天已送达，给员工的消息显示为计划在该日期当天发送。第一个里程碑在 **Needs Review** 中等待；见[审核并取消暂停注册](https://support.pyn.ai/zh-cn/activity/enrollments/review-and-unpause-enrollments/)。频道帖子在[消息](https://support.pyn.ai/zh-cn/activity/messages/)下把频道列为收件人。

## 相关

- [教程：生日与周年纪念](https://support.pyn.ai/zh-cn/flows/automations/tutorial-birthdays-and-anniversaries/)，一次构建全部三个。
- [配置日期触发器](https://support.pyn.ai/zh-cn/flows/automations/configure-a-date-trigger/)，了解偏移和重复设置。
- [触发器目录](https://support.pyn.ai/zh-cn/flows/automations/trigger-catalogue/)，了解触发器的默认值。
- [参考日期和时间安排](https://support.pyn.ai/zh-cn/flows/automations/scheduling-internals/)，了解重复年份和闰日如何计算。
