> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fetchhive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RSS Feed

> 配置一个从直接 RSS 或 Atom feed URL 获取条目的工作流步骤

# RSS Feed

当你希望工作流从直接 RSS 或 Atom feed URL 读取条目并将这些条目传递给后续步骤时,请使用 **RSS Feed**。

该步骤仅读取 feed 文档。它不会从网站 URL 发现 feed,也不会抓取文章页面。要获取每个 feed 条目的文章内容,将 feed 输出发送到 **Iteration** 步骤,并在循环内使用 **Website Scrape**。

## 配置

| 选项                  | 是否必填 | 说明                                                        |
| ------------------- | ---- | --------------------------------------------------------- |
| Name                | 否    | 步骤在工作流画布中的标签。                                             |
| Feed URL            | 是    | 直接 RSS 或 Atom feed URL。此字段通过 **Insert Variable** 支持工作流变量。 |
| Item Limit          | 否    | 要返回的 feed 条目的最大数量。默认为 `10`。有效范围为 `1` 到 `100`。             |
| New items only      | 否    | 启用时,重复的计划或部署运行会抑制此工作流范围已发出的 feed 项目。                      |
| When the step fails | 否    | 控制此步骤失败时工作流应 **Terminate Workflow** 还是 **Continue**。      |

从 **Search steps...** 的 **Research** 分组添加此步骤。

## 输出

该步骤返回归一化的 feed 元数据加上 `items` 数组:

```json theme={null}
{
  "feed": {
    "title": "Example Feed",
    "url": "https://example.com/feed.xml",
    "description": "Latest posts"
  },
  "items": [
    {
      "id": "stable-item-id",
      "guid": "post-123",
      "title": "Post title",
      "url": "https://example.com/posts/post-title",
      "summary": "Entry summary",
      "author": "Author name",
      "published_at": "2026-06-03T12:00:00Z",
      "categories": ["News"],
      "source_url": "https://example.com/feed.xml"
    }
  ]
}
```

在后续步骤中使用这些工作流变量:

```text theme={null}
{{rss_step.output.feed}}
{{rss_step.output.items}}
```

对于 **Iteration** 步骤,将 **Iterator** 设置为:

```text theme={null}
{{rss_step.output.items}}
```

在迭代主体内,使用每个条目的 URL:

```text theme={null}
{{iteration.item.url}}
```

## 示例:总结新的 feed 文章

创建以下工作流:

```text theme={null}
RSS Feed -> Iteration -> Website Scrape -> AI Prompt -> Aggregate/output
```

1. 添加 **RSS Feed** 并将 **Feed URL** 设置为直接 feed URL。
2. 将 **Item Limit** 设置为每次运行所需的条目数量。
3. 对于计划或重复部署的运行,保持启用 **New items only**。
4. 添加 **Iteration** 并将 **Iterator** 设置为 `{{rss_step.output.items}}`。
5. 在迭代主体内,添加 **Website Scrape** 并将 **URL** 设置为 `{{iteration.item.url}}`。
6. 在抓取步骤之后添加 **AI Prompt** 来总结文章内容。
7. 从工作流输出中聚合或返回摘要。

## 备注

* 支持 RSS 和 Atom feed URL。网站 feed 发现不属于此步骤的功能。
* 当 feed URL 可以用作基准时,该步骤会将相对 item URL 归一化为绝对 URL。
* 去重是用于重复运行的轻量级已见项目抑制。它不是 feed 历史或重放接口。
* 文章抓取和摘要是独立的步骤,这样你可以明确控制抓取设置、提示词和聚合。

另见:[Website Scrape](website-scrape)、[测试与迭代](../../testing-and-iteration) 和 [计划部署](../../scheduled-deployments)
