← 返回案例库
CUSTOMER STORY · 企业知识库怎么搭

任意网址变成结构化 Notion 笔记:先剥离 HTML,token 从 6 万降到 4 千

Turn any URL into a structured Notion note

Tools · 使用工具n8n
Source · 来源原作者 · community.n8n.io
Zaowuyun · 可参考能力资产库 + 上下文管理
01

谁在用

Who

一位分享 n8n 教程的作者。

02

遇到什么问题

Challenge

收藏的网页难以整理成可检索的笔记。

03

怎么用 AI 解决

Solution
  1. webhook 接收网址,HTTP 节点抓取页面,代码节点去掉脚本、样式和标签并截断到 8000 字符。
  2. OpenAI 以 JSON 模式返回标题、摘要、关键洞察和标签。
  3. Notion 节点直接映射到六个属性,无需解析步骤。
04

结果如何

Results据原作者自述
  • 先剥离 HTML,输入从约 6 万 token 降到不到 4 千,摘要质量提升、成本显著下降
  • 重度 JS 的单页应用只会返回空壳,部分网站会拦截;要先把 Notion 数据库共享给 n8n 集成,否则写入静默失败

以上内容均由原作者自行报告,未经独立核实,也不代表造物云产品的效果。

05

提示词

Prompt

参考提示词(由 agentusecases.ai 整理为模板,非原帖原文)

中文

搭一个 n8n 工作流:通过 webhook 或表单提交【网址】,抓取页面并提取可读文本,让 AI 生成标题、3 句摘要、要点和 3 个标签,在我的 Notion 数据库【数据库名】中新建笔记。

ENGLISH

Build an n8n workflow that starts from a webhook or form where I submit a [URL]. It should fetch the page, strip it down to readable text, ask an AI model to produce a title, a 3-sentence summary, key points and 3 tags, then create a new note in my Notion database [database name] with those fields. You're done when a test URL I submit produces a correctly filled Notion note; show me the draft workflow before you activate it.