通过 Webhook 的内容摘要生成器 (ApyHub)
中级
这是一个Building Blocks领域的自动化工作流,包含 8 个节点。主要使用 Webhook, HttpRequest, RespondToWebhook 等节点。 通过 Webhook 的内容摘要生成器 (ApyHub)
前置要求
- •HTTP Webhook 端点(n8n 会自动生成)
- •可能需要目标 API 的认证凭证
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "OxmCguByCxCKPcQm",
"meta": {
"instanceId": "1777696fb9fddfee653e70940936c2b1e28ba1f1bde53b7182fbd6eb01988706"
},
"name": "通过 Webhook 的内容摘要生成器 (ApyHub)",
"tags": [],
"nodes": [
{
"id": "ee098e2b-3cfa-4c0c-9ad7-caf1fd4abe74",
"name": "Webhook 触发器说明",
"type": "n8n-nodes-base.stickyNote",
"position": [
-100,
240
],
"parameters": {
"width": 280,
"height": 340,
"content": "此节点监听传入的 POST 请求。它期望接收包含 'content' 属性(待摘要文本)和 'summary_length'(可选参数,如 'short'、'medium'、'long')的 JSON 请求体。必须在请求头中提供您的 'apy-token'。"
},
"typeVersion": 1
},
{
"id": "dca324db-c26d-400a-bab9-e3200f78407c",
"name": "开始摘要任务说明",
"type": "n8n-nodes-base.stickyNote",
"position": [
220,
240
],
"parameters": {
"color": 2,
"width": 260,
"height": 340,
"content": "此节点向 ApyHub 的摘要 API 发送 POST 请求。它传递来自 webhook 请求体的 'content' 和来自请求头的 'apy-token'。该节点将启动摘要任务并返回 'job_id'。"
},
"typeVersion": 1
},
{
"id": "325504c9-8c6e-4b6a-9479-88bd85ca92a9",
"name": "获取摘要结果说明",
"type": "n8n-nodes-base.stickyNote",
"position": [
520,
240
],
"parameters": {
"color": 3,
"width": 260,
"height": 340,
"content": "此节点使用 'job_id' 轮询 ApyHub 的 API 以检查摘要任务状态。当状态变为 'finished' 时,将获取摘要后的内容。这确保仅在处理完成后才返回结果。"
},
"typeVersion": 1
},
{
"id": "fd5bf412-b7b4-4b36-b1d4-71f2bc2012ce",
"name": "Webhook 响应说明",
"type": "n8n-nodes-base.stickyNote",
"position": [
820,
240
],
"parameters": {
"color": 4,
"height": 340,
"content": "此节点将最终摘要文本返回给 webhook 的原始调用方。您可在此节点前插入其他节点来存储、共享或进一步处理摘要内容。"
},
"typeVersion": 1
},
{
"id": "cbf7a742-47c7-4a9e-8803-36a428097750",
"name": "开始摘要任务",
"type": "n8n-nodes-base.httpRequest",
"position": [
300,
420
],
"parameters": {
"url": "=https://api.apyhub.com/sharpapi/api/v1/content/summarize",
"method": "POST",
"options": {},
"jsonBody": "={\n \"content\": \"{{ $json.body.content }}\",\n \"summary_length\": \"{{ $json.body.summary_length || 'medium' }}\"\n}",
"sendBody": true,
"jsonHeaders": "={\n \"Content-Type\": \"application/json\",\n \"apy-token\": \"{{ $json.headers['apy-token'] }}\"\n}",
"sendHeaders": true,
"specifyBody": "json",
"specifyHeaders": "json"
},
"typeVersion": 4.2
},
{
"id": "d1fb7874-f72c-4298-a95f-04ea3c75bcc2",
"name": "接收内容 Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
-20,
420
],
"webhookId": "6f7b6d29-ed7c-4251-9810-d127d5c36ad0-unique-id",
"parameters": {
"path": "summarize-content",
"options": {},
"httpMethod": "POST",
"responseMode": "responseNode"
},
"typeVersion": 2
},
{
"id": "5d70b7ab-ff27-4a21-a976-718466b5dd17",
"name": "返回摘要内容",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
900,
420
],
"parameters": {
"options": {},
"respondWith": "allIncomingItems"
},
"typeVersion": 1.2
},
{
"id": "2faf0d84-3195-479c-9843-fbdcedf3d419",
"name": "获取摘要结果",
"type": "n8n-nodes-base.httpRequest",
"position": [
600,
420
],
"parameters": {
"url": "=https://api.apyhub.com/sharpapi/api/v1/content/summarize/job/status/{{ $json.job_id }}",
"options": {},
"jsonHeaders": "={\n \"Content-Type\": \"application/json\",\n \"apy-token\": \"{{ $('Receive Content Webhook').item.json.headers['apy-token'] }}\"\n}",
"sendHeaders": true,
"specifyHeaders": "json"
},
"typeVersion": 4.2
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "1fd30d32-1f0c-46fc-9af7-ace9d9190fb2",
"connections": {
"Receive Content Webhook": {
"main": [
[
{
"node": "Start Summarization Job",
"type": "main",
"index": 0
}
]
]
},
"Start Summarization Job": {
"main": [
[
{
"node": "Get Summarization Result",
"type": "main",
"index": 0
}
]
]
},
"Get Summarization Result": {
"main": [
[
{
"node": "Respond with Summarized Content",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 构建模块
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
通过 TimeZoneDB API 集成转换时区
使用TimeZoneDB API集成转换时区
Webhook
Http Request
Respond To Webhook
+1
6 节点ist00dent
构建模块
通过 Webhook 使用 ExchangeRate.host 进行货币转换
使用 ExchangeRate.host 通过 Webhook 进行货币转换
Webhook
Http Request
Respond To Webhook
+1
6 节点ist00dent
构建模块
通过Webhooks使用ScreenshotMachine API按需生成网站截图
通过Webhooks使用ScreenshotMachine API按需生成网站截图
If
Code
Webhook
+3
12 节点ist00dent
构建模块
通过Webhook进行IP地理位置查询
通过Webhook使用IP-API.com查询IP地理位置详情
Webhook
Http Request
Respond To Webhook
+1
6 节点ist00dent
构建模块
通过 Webhook 查询公共假日
通过 Webhook 使用 Nager.Date API 查询公共假日
Webhook
Http Request
Respond To Webhook
+1
6 节点ist00dent
构建模块
通过Webhook生成QR码
通过 Webhook 生成二维码
Webhook
Http Request
Respond To Webhook
+1
6 节点ist00dent
构建模块
工作流信息
难度等级
中级
节点数量8
分类1
节点类型4
作者
ist00dent
@ist00dentI’m a dedicated automation engineer passionate about no-code and low-code solutions. I design and implement robust n8n workflows—integrating APIs, databases, and messaging—to eliminate manual tasks and accelerate delivery. Leveraging Python and C#, I build scalable, adaptable automations that empower teams to focus on high-value work.
外部链接
在 n8n.io 查看 →
分享此工作流