---
title: "添加私信步骤"
description: "从自动化流程或活动发送 Slack 私信：选择发件人、收件人和时间，然后用令牌撰写它。"
sidebar:
  order: 2
area: flows
feature: steps
appPath: /flows/home
lastVerified: 2026-11-13
version: "2026-11-13"
audience: admin
screenshots:
  - id: flows-steps-add-step-dialog
    caption: Communication 上的 Add Step 对话框，Send Direct Message 排在第一位。
related:
  - flows/steps/choose-a-sender
  - flows/steps/format-a-message
  - flows/steps/post-to-a-channel
  - flows/steps/send-by-email-when-not-in-slack
  - integrations/slack
translation:
  source: flows/steps/add-a-direct-message-step.mdx
  sourceSha: 1268223f3c6b97f9182a63b143e760edef26b9ba
---

你希望消息发到 Slack 里，因为对方本来就在那里：第一天的欢迎、给经理的提醒、给伙伴的留言。**Send Direct Message** 步骤向根据已注册员工算出的一个人发送 Slack 私信。

## 开始之前

- Slack 已连接到工作区。见 [Slack](https://support.pyn.ai/zh-cn/integrations/slack/)。
- 你是 Power User、Admin 或 Owner，并且自动化流程或活动已存在。发布自动化流程需要 Admin 或 Owner。

![Communication 上的 Add Step 对话框，Send Direct Message 排在第一位。](https://support.pyn.ai/media/flows/steps/flows-steps-add-step-dialog.png)

## 步骤

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

2. 选择 **Add a step**。在 **Add Step** 对话框的 **Communication** 上选择 **Send Direct Message**。步骤出现在列表中，并在侧面板中打开。

3. 选择标题旁边的铅笔图标，为步骤命名，例如 `Day one hello`，然后按 Enter。

4. 在 **Schedule** 下，选择它相对于参考日期何时发送、**at** 几点发送，以及这个时间 **in** 哪个时区解读。[设置步骤排期](https://support.pyn.ai/zh-cn/flows/steps/schedule-a-step/)解释每个选项。

5. 在 **From** 下，选择 **Pyn Bot**、一个已连接的 Slack 用户，或 **Conditional Senders** 下的一个条件发件人。发件人的名字和头像出现在编辑器上方，让你看到消息会是什么样子。

6. 在 **To** 下，选择谁收到它：**Employee**、**Buddy**、**HRBP**、**Manager** 或 **Skip-level Manager**，或者 **Conditional Recipients** 下工作区已定义的一组规则。要抄送某人，选择 **To** 旁边的 **Cc** 并按需添加任意多个抄送收件人；每人都会收到属于自己的一份副本，其中没有可操作的按钮。见[选择收件人和抄送](https://support.pyn.ai/zh-cn/flows/steps/choose-recipients-and-cc/)。

7. 撰写消息。输入 `@` 插入令牌，例如 `@principal.preferredName`，并用 **Insert widget** 添加按钮、表单或 **Mention Principal** 标签。见[设置消息格式](https://support.pyn.ai/zh-cn/flows/steps/format-a-message/)。

8. 选择 **Preview**，在 **Preview for principal** 下挑一位员工，然后 **Send a test to yourself**。读起来没问题后，由 Admin 或 Owner 选择自动化流程顶部的 **Publish**。

> **Note:** 私信发到与收件人工作邮箱匹配的 Slack 账号。不在已连接 Slack 工作区中的收件人得到的是一条 **Bounced** 投递，原因为 **Recipient Not Available In Slack**，而不是消息；见[投递状态](https://support.pyn.ai/zh-cn/flows/steps/reference-delivery-statuses/)。要改为通过电子邮件联系此人，在 **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/)。

## 你应该看到什么

步骤卡片显示你的标题和它的排期，侧面板标题栏显示 **Enabled**。你的测试从你选择的发件人到达 Slack，令牌已为你填好。自动化流程发布后，每条注册都在[注册](https://support.pyn.ai/zh-cn/activity/enrollments/)下列出这个步骤，发送之前带一次 **Scheduled** 投递。

## 相关

- [选择发件人](https://support.pyn.ai/zh-cn/flows/steps/choose-a-sender/)，了解 Pyn Bot、个人 Slack 发件人和授权链接。
- [设置消息格式](https://support.pyn.ai/zh-cn/flows/steps/format-a-message/)，了解令牌、提及、按钮和媒体。
- [发布到频道](https://support.pyn.ai/zh-cn/flows/steps/post-to-a-channel/)，用于发给整个频道的消息。
- [有人不在 Slack 上时通过电子邮件发送私信](https://support.pyn.ai/zh-cn/flows/steps/send-by-email-when-not-in-slack/)，让没有 Slack 账号的人也能收到消息。
- [Slack](https://support.pyn.ai/zh-cn/integrations/slack/)，连接工作区。
