---
title: "发布到频道"
description: "从步骤在发件人已加入的 Slack 频道中宣布新员工、周年纪念或某个事件，并按名字提及员工。"
sidebar:
  order: 2
area: flows
feature: steps
appPath: /flows/home
lastVerified: 2026-11-15
version: "2026-11-02"
audience: admin
related:
  - flows/steps/add-a-direct-message-step
  - flows/steps/add-to-a-channel
  - flows/steps/deactivate-unfurling
  - integrations/slack
intercom:
  - id: "16755625"
    title: Send to Slack Channel (Pyn 2)
    url: https://intercom.help/pyn/en/articles/16755625-send-to-slack-channel-pyn-2
    note: replaces
  - id: "6185396"
    title: Send to a Slack channel (Pyn 1)
    url: https://intercom.help/pyn/en/articles/6185396-send-to-a-slack-channel-pyn-1
    note: "Pyn 1 article, kept for reference"
  - id: "9621416"
    title: Send to a Teams channel (Pyn 1)
    url: https://intercom.help/pyn/en/articles/9621416-send-to-a-teams-channel-pyn-1
    note: "Pyn 1 article, kept for reference"
translation:
  source: flows/steps/post-to-a-channel.mdx
  sourceSha: 770ecf5c3267bad0f15056e899be5d3a8ddd0298
---

有些消息是给所有人的：“请欢迎今天加入销售团队的 Priya。”**Post to Channel** 步骤代表已注册的员工，在发件人所在的公开或私密 Slack 频道中发一次帖子，让整个团队都知道这个时刻。

## 开始之前

- Slack 已连接，并且已为你的工作区启用 **Post to Channel**。如果 **Add Step** 对话框中这一行是灰色的，请联系 Pyn 支持。
- 发件人是该频道的成员。在 Slack 中把 **Pyn Bot** 邀请进频道，它才能在那里发帖；个人发件人必须已经加入频道。

## 步骤

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

2. 选择 **Add a step**，然后选择 **Communication** 下的 **Post to Channel**。

3. 在 **Schedule** 下，选择日子和时间。团队公告通常在当天（**on the day of**）团队在线的时间发出，所以选择工作区时区而不是收件人的时区。

4. 在 **From** 下，选择 **Pyn Bot**、一个个人 Slack 发件人或一个条件发件人。**To** 列表是该发件人能看到的频道，后面是工作区用于 Slack 的 **Conditional Recipients**。

5. 在 **To** 下，选择频道。如果列表显示 **No results**，说明发件人不在任何 Pyn 已知的频道中；把它邀请进一个频道，该频道会在一天内出现在列表中。如果频道仍然没有出现，请让 Pyn 支持刷新频道列表。要以私信的形式给某人发一份副本，选择 **To** 旁边的 **Cc**；见[选择收件人和抄送](https://support.pyn.ai/zh-cn/flows/steps/choose-recipients-and-cc/#slack-%E6%AD%A5%E9%AA%A4%E4%B8%8A%E7%9A%84%E6%8A%84%E9%80%81)。

6. 撰写帖子。选择 **Insert widget**，然后选择 **Mention Principal**，插入一个 **@Principal** 标签，发帖时它会变成对该员工的真实 Slack 提及。输入 `@channel` 或 `@here` 通知整个频道，或输入 `@` 加同事的 Slack 用户名来提及他们；见[提及人员和频道](https://support.pyn.ai/zh-cn/flows/steps/format-a-message/#%E6%8F%90%E5%8F%8A%E4%BA%BA%E5%91%98%E5%92%8C%E9%A2%91%E9%81%93)。

7. 选择 **Preview**，然后 **Send a test to yourself**：测试以私信的形式发给你，而不是发到频道。在自动化流程上选择 **Publish**。

> **Note:** 更改发件人会清空频道，因为频道属于一个 Slack 工作区和一位发件人的成员身份。侧面板随后显示 **Changing the sender cleared the channel. Pick one to publish this step.**。

## 你应该看到什么

步骤卡片显示带 `#` 的频道名称。每当有员工到达该步骤，频道中就会出现一条来自你所选发件人的帖子，其中提及该员工。在[消息](https://support.pyn.ai/zh-cn/activity/messages/)下，投递的收件人是该频道。频道帖子不提供提醒和上报，因为频道中的任何人都可以对它采取行动。

## 相关

- [添加私信步骤](https://support.pyn.ai/zh-cn/flows/steps/add-a-direct-message-step/)，了解发给一个人的消息。
- [添加到频道](https://support.pyn.ai/zh-cn/flows/steps/add-to-a-channel/)，先把员工加入频道。
- [停用链接和媒体展开预览](https://support.pyn.ai/zh-cn/flows/steps/deactivate-unfurling/)，让频道帖子保持紧凑。
- [Slack](https://support.pyn.ai/zh-cn/integrations/slack/)，了解连接 Slack 和邀请 Pyn Bot。
