# 通过 Customer Journey 发送 In-App 消息

<Aside type="tip">
请先准备一个 [in-app 模板](/zh/product/content/in-apps/no-code-in-app-editor/create-rich-media-in-the-built-in-editor/)，然后创建一个 Journey 将其发送给您的用户。
</Aside>

本指南将引导您完成通过 Customer Journey 发送 in-app 消息的步骤。

## 创建 Journey 并添加元素

1. 前往 **Customer Journey Builder → Create Campaign**。


2. 将 **Entry**、**In-App** 和 **Exit** 拖到画布上，并按顺序连接它们。


<video src="/in-apps-sending-in-apps-2.webm" title="将 Entry、In-App 和 Exit 元素拖到 Journey 画布上的动画演示" autoplay loop muted playsinline />

## 配置进入和受众

您必须配置 **Entry** 元素；否则，in-app 消息将不会被发送。

### 基于触发器的进入

当用户执行特定操作时（例如，进入定价页面），显示 in-app。使用默认的触发器和事件，或[创建您自己的](/zh/product/audience-data-and-segmentation/events/)。

[了解更多关于基于触发器的进入的信息](/zh/product/customer-journey/journey-elements/entry-elements/trigger-based-entry/)。

<video src="/in-apps-sending-in-apps-3.webm" title="配置带 iOS 平台过滤器的基于触发器的进入的动画演示" autoplay loop muted playsinline />

示例：通过添加平台过滤器，仅向 iOS 用户显示带有折扣的 in-app。

### 基于受众的进入

为一部分用户（例如，您的整个用户群）启动 Journey。通过标签和/或事件创建一个细分，或使用[预构建的细分](/zh/product/audience-data-and-segmentation/segmentation/create-segments)。

[了解更多关于基于受众的进入的信息](/zh/product/customer-journey/journey-elements/entry-elements/audience-based-entry/)。

<video src="/in-apps-sending-in-apps-4.webm" title="配置基于受众的进入并选择细分的动画演示" autoplay loop muted playsinline />


#### 配置排期

在 [基于受众的进入](/zh/product/customer-journey/journey-elements/entry-elements/audience-based-entry/) 元素中，**Entry schedule** 控制用户何时进入。默认情况下，**One-time entry** 和 **Immediately** 会让用户在 Journey 激活后立即进入。

要在特定日期和时间（带时区）运行，请选择 **One-time entry** → **Schedule for a specific day**。要在多个日期或按固定间隔运行，请选择 **Recurring entry**。[了解更多](/zh/product/customer-journey/journey-elements/entry-elements/audience-based-entry/#entry-schedule)

<img src="/journey-elements-audience-based-entry-2.webp" alt="包含 One-time entry 和 Recurring entry 选项的进入排期"/>

## 配置 In-App 元素

1. 点击 **In-App** 元素 → **Media Source**。选择一个模板（最新的在最前面），然后点击 **Apply**。
2. 设置 **In-app expiration**（消息可用的天数）。例如，如果优惠在一周后到期，则设置为 7 天。

<img src="/in-apps-sending-in-apps-14.webp" alt="In-App 元素面板的屏幕截图，包含 Media Source、模板选择和 In-app expiration 字段"/>

3. 选择消息类型：

* **营销消息**：用于营销活动和促销。所有规则和限制均适用。遵循：选择退出、频率上限和静默期。排除：[全局控制组](/zh/product/audience-data-and-segmentation/global-control-group/)用户。
* **交易消息**：用于运营或服务消息。规则和限制不适用。绕过：选择退出、频率上限和静默期。发送给：[全局控制组](/zh/product/audience-data-and-segmentation/global-control-group/)用户。
<img src="/in-apps-sending-in-apps-15.webp" alt="In-App 元素消息类型选择，包含营销消息和交易消息选项"/>
[了解更多关于营销消息和交易消息之间区别的信息](/zh/product/messaging-channels/marketing-vs-transactional/)。

4. 配置频率上限。[了解更多](/zh/product/customer-journey/journey-elements/channels/in-app/#set-frequency-capping)。

5. 点击 **Apply** 保存设置。

## 验证并启动 Journey

1. 完成 Journey 配置，并运行[启动前检查](/zh/product/customer-journey/journey-settings/#pre-launch-check)来验证 Journey。
2. 点击 **Launch campaign**（右上角）向用户发送 in-app 消息。

<img src="/in-apps-sending-in-apps-6.webp" alt="显示已完成的 Journey 画布以及高亮的 Launch campaign 按钮的屏幕截图"/>