# 定向推送

<Aside type="note">
此流程同样适用于移动和网页推送通知活动。
</Aside>

此流程展示了如何向_特定受众细分_发送定向推送通知。为定向推送构建细分的方式取决于推送通知是启动通信流程还是继续现有流程。

## 如果推送通知启动通信流程

创建[一个基本的推送流程](/zh/product/messaging-channels/push-notifications/send-push-notifications/one-time-push-via-customer-journey/)后，您就可以设置定向推送了。

双击 [**Audience-based Entry**](/zh/product/customer-journey/journey-elements/entry-elements/audience-based-entry/) 元素，为您的推送通知选择受众。您可以从头开始构建细分、从现有细分中选择或导入细分文件。


<Aside type="tip">
在同一个元素中，您可以设置用户进入的时间（立即或安排在特定日期），并允许稍后匹配细分的用户进入。有关进入计划和动态进入的信息，请参阅 [Audience-based Entry](/zh/product/customer-journey/journey-elements/entry-elements/audience-based-entry/#entry-schedule)。
</Aside> 
#### 1. 从头开始构建细分

点击 **创建细分 (Create segment)**，然后从下拉菜单中选择 **构建细分 (Build segment)**。

<img src="/push-notifications-targeted-push-2.webp" alt="细分创建屏幕，显示“保存细分”按钮和已配置的筛选器"/>

在打开的抽屉式面板中，构建细分。[了解如何创建细分](/zh/product/audience-data-and-segmentation/segmentation/create-segments/)。
<img src="/push-notifications-targeted-push-1.webp" alt="细分创建屏幕，显示“保存细分”按钮和已配置的筛选器"/>

#### 2. 选择现有细分

在 **受众来源 (Audience source)** 字段中选择一个现有细分。在以下示例中，推送将针对付费客户：

<img src="/push-notifications-targeted-push-3.webp" alt="“受众来源”下拉菜单，显示包括付费客户选项在内的现有细分"/>

#### 3. 导入细分文件

在 **受众来源 (Audience source)** 部分，点击 **创建细分 (Create segment)**，然后从下拉菜单中选择 **导入细分 (Import segment)**：

<img src="/push-notifications-targeted-push-5.webp" alt="Audience-based Entry 模态框，显示“创建细分”下拉菜单，其中包含“构建细分”和“导入细分”选项"/>

然后导入您的 CSV 格式文件。有关分步说明和文件要求，请参阅[如何导入细分](/zh/product/audience-data-and-segmentation/segmentation/create-segments/by-import/#how-to-import-a-segment)。

<img src="/push-notifications-targeted-push-6.webp" alt="“导入细分”对话框，显示 CSV 文件上传选项"/>


选择受众来源并设置好元素后，点击 **保存 (Save)**。

<LinkCard title="了解有关 Audience-based Entry 的更多信息" href="/product/customer-journey/journey-elements/entry-elements/audience-based-entry/" />


## 如果推送通知继续通信流程

在前面的通信元素和您希望定向的推送通知之间插入 [**Condition split**](/zh/product/customer-journey/journey-elements/flow-controls/segment-split/) 元素。双击该元素以打开其配置。



### 定义细分

在 **什么定义了用户流程？ (What defines the user flow?)** 下，选择 **细分 (Segment)**。
<img src="/push-notifications-targeted-push-8.webp" alt="Customer Journey 画布，显示在推送通知前插入的 Condition split 元素"/>


然后，您可以通过以下三种方式之一设置细分：

#### 选择现有细分

使用 **现有细分 (Existing segment)** 字段选择您的一个细分。

<img src="/push-notifications-targeted-push-10.webp" alt="Condition split 元素，显示“现有细分”下拉菜单，其中已选择付费客户细分"/>

#### 从头开始构建细分

点击 **分支 (Branches)** 部分旁边的 **创建细分 (Create segment)**，然后从下拉菜单中选择 **构建细分 (Build segment)**。一个抽屉式面板会打开，您可以在其中构建细分。

[了解如何创建细分](/zh/product/audience-data-and-segmentation/segmentation/create-segments/)


#### 导入细分文件

点击 **创建细分 (Create segment)**，然后从下拉菜单中选择 **导入细分 (Import segment)**。然后导入您的 CSV 格式文件。

有关分步说明和文件要求，请参阅[如何导入细分](/zh/product/audience-data-and-segmentation/segmentation/create-segments/by-import/#how-to-import-a-segment)。

### 配置分支

**分支 (Branches)** 部分显示了可用的路径，例如 **细分中的用户 (Users in a segment)**（匹配您设置的细分的用户）和 **所有其他用户 (All other users)**。

<img src="/push-notifications-targeted-push-9.webp" alt="“分支”部分，显示 Condition split 配置中的“细分中的用户”和“所有其他用户”路径"/>

在 Journey 画布上，将推送通知添加到 **细分中的用户 (Users in a segment)** 分支。**所有其他用户 (All other users)** 分支可以不设置出站连接以在此结束，或者您可以添加一个 **退出 (Exit)** 元素或另一个步骤。
<img src="/push-notifications-targeted-push-11.webp" alt="Condition split 元素，显示已配置的细分和“保存”按钮"/>
完成后，点击 **保存 (Save)**。