---
title: 设置自动化流程的受众
description: 按生命周期阶段以及包含和排除的群组限制触发器注册的对象，并在发布前预览匹配的人员。
sidebar:
  order: 2
area: flows
feature: automations
appPath: /flows/home
lastVerified: 2026-11-15
version: "2026-11-10"
audience: admin
related:
  - directory/employee-groups/how-audiences-match
  - directory/employee-groups
  - flows/steps
  - flows/automations/choose-a-trigger
  - flows/automations/set-exit-conditions
intercom:
  - id: "11987525"
    title: Choose the Audience for your Flow (Pyn 2)
    url: https://intercom.help/pyn/en/articles/11987525-choose-the-audience-for-your-flow-pyn-2
    note: replaces
  - id: "7856462"
    title: Add Filters to Your Automation
    url: https://intercom.help/pyn/en/articles/7856462-add-filters-to-your-automation
    note: "Pyn 1 article, kept for reference"
  - id: "6005739"
    title: Create and save recipient filters
    url: https://intercom.help/pyn/en/articles/6005739-create-and-save-recipient-filters
    note: "Pyn 1 article, kept for reference"
translation:
  source: flows/automations/set-the-audience.mdx
  sourceSha: 639e43c2c50a3a998c6f76f16e1c4141c4a450e1
---

受众是触发器与注册之间的筛选器。当触发器为某人触发时，Pyn 会把这个人的生命周期阶段和群组成员身份与受众进行比对；只有匹配的人才会被注册。用它把承包商排除在入职流程之外、只为一个国家运行某个流程，或者只向一个部门发送定期消息。

## 开始之前

- 群组来自 **Directory** > **Employee Groups**：每个部门、地点和其他 HRIS 值对应的人口统计群组，加上你创建的筛选、静态和关系群组。见[员工群组](https://support.pyn.ai/zh-cn/directory/employee-groups/)。
- 步骤有自己的 **Audience** 标签页，只为该步骤进一步收窄范围。触发器的受众决定谁会被注册。
- 侧面板的 **Exit conditions** 标签页是它的镜像：员工必须持续匹配的受众，否则注册提前结束。见[为自动化流程设置退出条件](https://support.pyn.ai/zh-cn/flows/automations/set-exit-conditions/)。

![Audience narrows the trigger to lifecycle stages and groups, with a preview of who matches.](https://support.pyn.ai/media/flows/automations/flows-automations-trigger-audience.png)

## 步骤

1. 在 Pyn 中，打开左侧导航中的 **Flows**，然后打开 **Automations**，并选择该自动化流程。

2. 选择画布顶部的触发器卡片，然后选择侧面板中的 **Audience** 标签页。

3. 在 **Lifecycle** 下，挑选符合条件的阶段：**Current**、**On leave**、**Joiner**、**Terminated**。说明文字是“Only employees in these lifecycle stages will be eligible.”。在入职日期之前发送的流程需要 **Joiner**。至少保留一个阶段被勾选；空的 **Lifecycle** 不会注册任何人。

4. 在 **Included** 下，挑选流程运行所针对的群组（“This trigger will only run for employees in the included groups.”）。留空则包含所选阶段中的所有人。在选择器中输入即可边输入边搜索所有群组；选择 **Load more** 查看更多匹配项。如果搜索失败，选择器会显示“Could not load results.”。

5. 在 **Excluded** 下，挑选流程永远不为其运行的群组（“This trigger never runs for employees in the excluded groups.”）。排除优先于包含。这个选择器同样边输入边搜索所有群组，用 **Load more** 翻页，搜索失败时显示“Could not load results.”，与 **Included** 相同。

6. 查看字段下方的 **Audience Preview**。它的标题带有人数，例如 **Audience Preview (24 Employees)**，每页显示 10 个人。它列出今天匹配受众的员工，而不考虑触发器是否会为他们触发。要检查某个人，在列表顶部的 **Find by name or email** 中输入这个人的姓名或工作邮箱的一部分。列表随着你输入而缩小，标题显示匹配的人数，例如 **Audience Preview (3 of 24 match)**。没有人匹配的搜索显示 **No one matches "your words"**；选择 **Clear search** 恢复完整列表。

7. 选择 **Publish**。

> **Note:** 同一父级下的包含群组之间用 OR 组合，不同父级之间用 AND 组合。包含 **Department: Engineering**、**Country: Australia** 和 **Country: USA** 意味着 `Engineering AND (Australia OR USA)`。没有父级的群组（例如静态群组）各自算作一个条件。见[受众如何匹配](https://support.pyn.ai/zh-cn/directory/employee-groups/how-audiences-match/)。

## 你应该看到什么

发布后，当触发器触发时，只有匹配受众的员工会出现在[注册](https://support.pyn.ai/zh-cn/activity/enrollments/)下。自身受众把所有人都排除掉的步骤会显示警告“The audience is empty, so this step is never sent.”。安排在入职日期之前、但受众中缺少 **Joiner** 的步骤会显示“Sent before the start date but the joiner isn't in the audience.”。

## 相关

- [受众如何匹配](https://support.pyn.ai/zh-cn/directory/employee-groups/how-audiences-match/)，了解完整规则和实例。
- [员工群组](https://support.pyn.ai/zh-cn/directory/employee-groups/)，创建并查看你用来筛选的群组。
- [步骤和消息](https://support.pyn.ai/zh-cn/flows/steps/)，了解按步骤设置的受众。
- [选择触发器](https://support.pyn.ai/zh-cn/flows/automations/choose-a-trigger/)，了解最初是什么在触发。
- [为自动化流程设置退出条件](https://support.pyn.ai/zh-cn/flows/automations/set-exit-conditions/)，在某人离开受众时结束注册。
