type
status
date
slug
summary
tags
category
icon
password

🧰 前置准备:➡️本地部署 n8n 服务

📥 导入工作流文件

  1. 下载工作流文件⬇️
  1. 导入工作流
      • 登录 n8n 后,点击右上角Create Workflow
      notion image
      • 点击右上角的三点菜单(⋮)并选择 Import from File
      notion image
    1. 上传刚刚下载的工作流文件完成导入
    2. notion image

☁️ 创建 Cloudflare Workers AI API(用于获取B站视频的文本内容)

  1. 登录➡️Cloudflare官网并注册
  1. 访问➡️Cloudflare仪表盘,点击右上角的个人中心图标并选择配置文件
notion image
  1. 点击API令牌创建令牌
notion image
  1. 使用Workers AI使用模板
notion image
  1. 选择自己的账户资源后点击继续以显示摘要并创建令牌:
notion image
  1. 出现下图页面即表示创建成功,请妥善保管你的API令牌,泄露立刻删除
notion image
  1. 取Cloudflare的User ID:
    1. 访问Cloudflare仪表盘
    2. 查看浏览器的网址栏
    3. notion image
    4. 其中dash.cloudflare.com/home之间的内容即为User ID

🧾 创建 Notion Integrations并连接Notion

  • 点击访问➡️Notion模板,并点击右上角的复制图标将其保存到自己的Workspace中
  • 打开你刚刚复制的 Notion 页面,点击右上角···图标,依次点击ConnectionsManage connections
notion image
  • 点击Develop or manage integrations
notion image
  • 点击New integration以创建一个Notion Integration
notion image
  • 输入integration的名称,绑定Associated workspace,请注意:这里的workspace一定是该notion页面所在的workspace,Type请选择Internal(仅作为个人使用)
notion image
  • 创建成功后请妥善保管Internal Integration Secret
notion image
  • 将Notion页面和该Integration进行连接,在Connections中搜索你创建的Integration的名称,看到该Integration出现在Active connections中则连接成功:
notion image

🛠️ 工作流节点配置

☁️ 配置Cloudflare节点

  • 在URL部分填写:
https://api.cloudflare.com/client/v4/accounts/{{ User ID }}/ai/run/@cf/openai/whisper-large-v3-turbo
{{ User ID }}替换为你的➡️User ID(整个替换,包括外面的符号{{ }}
notion image
  • Authentication选择Generic Credential Type
  • Generic Auth Type选择Header Auth
  • Header Auth选择+Create new Credential
  • Name部分填写Authorization,在Value部分填写Bearer {{ 用户API令牌 }}(示例:Bearer sk-xxxxx(注意BearerAPI Key之间有空格)
notion image

🧾配置Notion Tool节点

  • 打开每一个Notion Tool
  • 点击Credential to connect with的下拉列表并选择+Create new Credential
notion image
notion image

🧩Create database page节点

  • Database设置中选择From list Videos
notion image
notion image
  • 在浏览器中打开Statistics页面,1d80-xxxx 这一串字符即为ID
notion image

🧩Get many database page节点

💡注意事项

  • 在所有的节点都配置完成后,请在右上角激活工作流
notion image

🍒Cherry Studio智能体创建

  • 创建新的智能体:
notion image
  • 提示词如下:
  • 在Cherry Studio中创建一个新的MCP服务器:
    • 服务器的类型请选择服务器发送事件(sse)
    • URL请填写http://localhost:5678/mcp/bilibili_video_assistant_noto/sse
      • URL的获取方式:打开工作流中的MCP Server Trigger节点,复制Production URL
        • notion image
    • 保存并打开服务器即可
    • notion image
    • 看到下面的内容就表明MCP服务器创建成功
    • notion image
    • 随后编辑刚刚创建好的智能体
      • 模型设置中的上下文数设置为不限
      • 将MCP服务器中的服务开启:
      • notion image

至此,该智能体的全部配置已经完成,可以在Cherry Studio中和她一起观看B站视频学习啦

📦使用示例

  • 获取Video Database中的所有视频
notion image
notion image
notion image

⚠️注意事项

  1. 开启MCP服务时,所选择的模型一定需要支持工具调用
  1. 在观看长视频时,推荐使用Google的Gemini 2.0 Flash 或者Gemini 2.5 Flash等免费高质量模型,避免账单爆炸
  1. 目前在Cherry Studio中使用该MCP Server时有一定概率在获取长视频文本信息时失败,在其它的MCP Clinet(Vscode、Cursor)中使用无问题,可等待Cherry Studio更新解决

🪢 待更新事项

通过B站视频链接获取metadata
支持Youtube视频
使添加到Notion Block中的md内容可以被渲染
n8n本地部署教程(Windows + Docker)模板说明
Loading...