---
title: "配置日期触发器"
description: "设置日期触发器相对于员工日期的触发时间和重复频率，并理解参考日期会是什么。"
sidebar:
  order: 2
area: flows
feature: automations
appPath: /flows/home
lastVerified: 2026-11-15
version: "2026-11-06"
audience: admin
related:
  - flows/automations/trigger-catalogue
  - flows/automations/scheduling-internals
  - flows/automations/tutorial-birthdays-and-anniversaries
  - flows/automations/prevent-repeat-enrollments
intercom:
  - id: "11987518"
    title: Select the Right Trigger for your Flow (Pyn 2)
    url: https://intercom.help/pyn/en/articles/11987518-select-the-right-trigger-for-your-flow-pyn-2
    note: draws on
  - id: "12651319"
    title: Using Triggers in Pyn (Pyn 2)
    url: https://intercom.help/pyn/en/articles/12651319-using-triggers-in-pyn-pyn-2
    note: draws on
  - id: "6024165"
    title: Enable the Birthday Moment Automation
    url: https://intercom.help/pyn/en/articles/6024165-enable-the-birthday-moment-automation
    note: "Pyn 1 article, kept for reference"
translation:
  source: flows/automations/configure-a-date-trigger.mdx
  sourceSha: f756732a3eee13e6d52414a3b2b1bce8e81ebfb8
---

日期触发器基于员工记录上的某个日期运行：生命周期和周年纪念触发器用 **Start Date**，Off-boarding 用 **Termination Date**，生日模板用 **Birthday**，以及你在 **Employee Properties** 下选择的任何其他日期属性。你在 **Configure** 标签页上设置两件事：流程相对于该日期何时开始，以及它多久重复一次。

## 开始之前

- 该自动化流程有一个日期触发器。触发器卡片显示触发器的表情符号和一行文字，例如 **the day of** 仅一次。
- 决定是否希望流程提前开始。在日期前一周开始并不会移动参考日期：步骤仍然围绕日期本身排期。

![Configure sets when a date trigger starts and how often it repeats.](https://support.pyn.ai/media/flows/automations/flows-automations-trigger-configure.png)

## 步骤

1. 在 Pyn 中，打开左侧导航中的 **Flows**，然后打开 **Automations**，并选择该自动化流程。如果侧面板还没有在 **Configure** 上打开，选择画布顶部的触发器卡片。

2. 阅读第一行：“This flow runs based on the employee's **Start Date**”（或你选择的字段；对 Off-boarding 显示 **Off-boarding**，对属性则显示属性名）。想换一个触发器时，行末的 **Change trigger** 链接会打开 **Select Trigger**。对 Birthday 还会补充“This is the birthday on the Employee Record.”

3. 在 **This flow starts** 下，打开菜单并选择一个偏移：**2 weeks before**、**1 week before**、**the day before**、**on the day of**、**the day after**、**1 week after**、**2 weeks after**、**1 month after**、**2 months after**、**3 months after** 或 **6 months after**。菜单还允许你输入自定义的天数、周数、月数或年数。

4. 在 **the Employee's Start Date** 下（标签中写的是该字段的名称），选择重复设置：**just once**、**every year**、**every year after the first**、**every other year**、**every 2 years**、**every 5 years** 或 **every 10 years**。Birthday 触发器只提供 **every year**。

5. 选择 **Publish**。当某人的日期与今天匹配时，第一批注册会在发布后几小时内出现。

> **Note:** 重复选项从日期本身的年份算起。**every year** 在第一个周年及之后的每一个周年触发；入职日期本身是第 0 年，永远不会触发。**every year after the first** 跳过第 1 年，所以一个首年周年流程和一个每年流程永远不会落在同一天。**every other year** 是第 1、3、5 年；**every 2 years** 是第 2、4、6 年。

## 参考日期会是什么

参考日期是员工的日期本身（对设置了重复的触发器，则推算到匹配的年份），而不是触发器触发的那天。设为在周年纪念 **1 week before** 开始的流程，以周年纪念日为参考日期，所以排在 **on the day of** 的步骤落在周年纪念日，排在 **7 days before** 的步骤落在流程开始的那天。[参考日期和时间安排](https://support.pyn.ai/zh-cn/flows/automations/scheduling-internals/)列出了完整的规则。

## 你应该看到什么

触发器卡片汇总了你的选择，例如 **1 week before** 首年之后每年。发布后，日期匹配的员工会出现在[注册](https://support.pyn.ai/zh-cn/activity/enrollments/)下，以匹配的日期作为他们的 **Reference Date**。

## 相关

- [触发器目录](https://support.pyn.ai/zh-cn/flows/automations/trigger-catalogue/)，了解每个日期触发器的默认偏移和重复设置。
- [参考日期和时间安排](https://support.pyn.ai/zh-cn/flows/automations/scheduling-internals/)，了解重复年份，以及重新注册之间的一天最小间隔。
- [生日与周年纪念](https://support.pyn.ai/zh-cn/flows/automations/tutorial-birthdays-and-anniversaries/)，看一个完整的实例。
- [防止重复注册](https://support.pyn.ai/zh-cn/flows/automations/prevent-repeat-enrollments/)，了解日期被修正时会发生什么。
