Telegram Stars 支付、发票与退款工作流
高级
这是一个Finance领域的自动化工作流,包含 34 个节点。主要使用 Set, Switch, Telegram, HttpRequest, GoogleSheets 等节点。 Telegram Stars 支付、发票与退款工作流
前置要求
- •Telegram Bot Token
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
使用的节点 (34)
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "1dbc26c48fe55fbd6f6084822260e5ffcc6df7c619b3d6ceeb699da53e67c82c"
},
"nodes": [
{
"id": "67e99fc6-8d94-4e73-b685-db2c258b6365",
"name": "退款",
"type": "n8n-nodes-base.httpRequest",
"position": [
-600,
1000
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "4795c06a-3a2e-4b5b-949d-55529236f118",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1080,
920
],
"parameters": {},
"typeVersion": 1
},
{
"id": "902149bf-3670-41bb-8bd4-77c53a0b6ad8",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1200,
-400
],
"parameters": {},
"typeVersion": 1
},
{
"id": "72c25a30-b9c6-49b8-a82a-40a521d3ea3b",
"name": "发送发票",
"type": "n8n-nodes-base.httpRequest",
"position": [
-860,
-300
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "06012fca-c8c7-4ded-9939-f532c57e2e6b",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3180,
-427.31933473234784
],
"parameters": {},
"typeVersion": 1
},
{
"id": "868ba30f-0467-4b7e-89a4-eab429434c4e",
"name": "发票数据",
"type": "n8n-nodes-base.set",
"position": [
-1100,
-300
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "7992476e-277e-402e-bb0a-6ebe2ddbd7bc",
"name": "执行工作流触发器",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
-3320,
60
],
"parameters": {},
"typeVersion": 1
},
{
"id": "e38bfa0d-f4ff-4801-a439-09ec237b7e5c",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3600,
-60
],
"parameters": {},
"typeVersion": 1
},
{
"id": "e5443ca6-d5c9-4b3d-9430-8ecfed13eb43",
"name": "执行退款",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-1260,
1000
],
"parameters": {},
"typeVersion": 1
},
{
"id": "ce896243-676d-467c-a768-374b49c6aa4d",
"name": "机器人 API 令牌(用于退款)",
"type": "n8n-nodes-base.set",
"position": [
-1020,
1000
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "7d87ee0e-1c98-4ff6-9c69-4b1dcd6f3fe9",
"name": "退款数据",
"type": "n8n-nodes-base.set",
"position": [
-880,
1000
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "ce561169-646d-41a9-ad52-c7fe88629ee2",
"name": "便利贴11",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1334.999508978541,
727.5010361342743
],
"parameters": {},
"typeVersion": 1
},
{
"id": "cc63b56b-c5be-444a-82e0-9144e099a46d",
"name": "聊天 ID",
"type": "n8n-nodes-base.set",
"position": [
-2620,
60
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "d7a3681c-8362-4f82-b40d-b034de2456e3",
"name": "机器人 API 令牌",
"type": "n8n-nodes-base.set",
"position": [
-2300,
60
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "09e7cda2-b087-4cb8-b7e8-6a659fb477e0",
"name": "批准/预结账更新",
"type": "n8n-nodes-base.httpRequest",
"position": [
-1240,
-20
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "70b8d0ff-222a-40f1-acd7-4cf70a30721b",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2340,
-60
],
"parameters": {},
"typeVersion": 1
},
{
"id": "8c0f3ba9-27c0-44c9-9219-6c4e300badeb",
"name": "写入 Telegram 支付费用 ID",
"type": "n8n-nodes-base.googleSheets",
"position": [
-1240,
336
],
"parameters": {},
"typeVersion": 4.4
},
{
"id": "7a5b03e9-8114-42e2-9653-e35041e72b5c",
"name": "便签7",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1340,
220
],
"parameters": {},
"typeVersion": 1
},
{
"id": "3306c93f-2e02-4130-98aa-503bd2dfde3e",
"name": "触发器数据",
"type": "n8n-nodes-base.set",
"position": [
-2740,
60
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "ae449a79-4891-44c8-8abe-83b065f20d29",
"name": "成功消息",
"type": "n8n-nodes-base.telegram",
"position": [
-460,
340
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "b37176b5-1f60-4cb7-b91b-3d20fd71574e",
"name": "在此处添加您的逻辑",
"type": "n8n-nodes-base.noOp",
"position": [
-820,
340
],
"parameters": {},
"typeVersion": 1
},
{
"id": "47dff255-74a3-4d30-9807-a861fc342ce4",
"name": "便签9",
"type": "n8n-nodes-base.stickyNote",
"position": [
-940,
220
],
"parameters": {},
"typeVersion": 1
},
{
"id": "7b8b9951-8a8f-4bca-b0aa-e3a8be3c51be",
"name": "便签10",
"type": "n8n-nodes-base.stickyNote",
"position": [
-540,
220
],
"parameters": {},
"typeVersion": 1
},
{
"id": "9456fde0-107f-4fce-9d58-bbfe819e64db",
"name": "事件切换器",
"type": "n8n-nodes-base.switch",
"position": [
-1540,
60
],
"parameters": {},
"typeVersion": 3
},
{
"id": "9933b909-6a1e-4d82-9da8-b9db7fe76b06",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2100,
-60
],
"parameters": {},
"typeVersion": 1
},
{
"id": "25e5ef7a-2831-4397-b84a-5013a1912665",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2800,
-60
],
"parameters": {},
"typeVersion": 1
},
{
"id": "6127ab7b-069b-4b01-b486-c5f121f3cb59",
"name": "便利贴12",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1635.6646603031018,
-400
],
"parameters": {},
"typeVersion": 1
},
{
"id": "2e0e7644-c0f0-4399-8a01-f5d5f89578f1",
"name": "添加您的逻辑",
"type": "n8n-nodes-base.noOp",
"position": [
-1540,
-300
],
"parameters": {},
"typeVersion": 1
},
{
"id": "17bff392-1c6f-4bb2-8f69-c5116f5382e4",
"name": "在此处添加您的退款逻辑",
"type": "n8n-nodes-base.noOp",
"position": [
-1520,
1000
],
"parameters": {},
"typeVersion": 1
},
{
"id": "d360a946-2748-4067-b330-126432c6565c",
"name": "发票数据",
"type": "n8n-nodes-base.set",
"notes": "Chat ID required. \n\nSend action name to handle it inside Payment workflow",
"position": [
-3320,
580
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 3.4
},
{
"id": "35c8dd47-d7b7-4d7e-90df-67d843f6e09d",
"name": "便签8",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3600,
320
],
"parameters": {},
"typeVersion": 1
},
{
"id": "6b2870e4-f2f6-43ce-8af6-f9393167d29f",
"name": "Telegram 触发器",
"type": "n8n-nodes-base.telegramTrigger",
"disabled": true,
"position": [
-3540,
580
],
"webhookId": "75a77e1a-1a4c-4423-8572-5332e6899eb2",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "ca4be620-ae42-49f1-97a4-903ea066fc69",
"name": "启动支付工作流",
"type": "n8n-nodes-base.executeWorkflow",
"position": [
-3140,
580
],
"parameters": {},
"typeVersion": 1
},
{
"id": "5a7d6bda-3881-4c6b-964e-eb4039e70228",
"name": "操作",
"type": "n8n-nodes-base.switch",
"position": [
-2020,
60
],
"parameters": {},
"typeVersion": 3.1
}
],
"pinData": {},
"connections": {
"Actions": {
"main": [
[
{
"node": "Add your logic",
"type": "main",
"index": 0
}
],
[
{
"node": "Event swticher",
"type": "main",
"index": 0
}
],
[
{
"node": "Add your Refund logic here",
"type": "main",
"index": 0
}
]
]
},
"Chat ID": {
"main": [
[
{
"node": "Bot API token",
"type": "main",
"index": 0
}
]
]
},
"Refund Data": {
"main": [
[
{
"node": "Refund",
"type": "main",
"index": 0
}
]
]
},
"Invoice Data": {
"main": [
[
{
"node": "Send Invoice",
"type": "main",
"index": 0
}
]
]
},
"Trigger Data": {
"main": [
[
{
"node": "Chat ID",
"type": "main",
"index": 0
}
]
]
},
"Bot API token": {
"main": [
[
{
"node": "Actions",
"type": "main",
"index": 0
}
]
]
},
"Make a Refund": {
"main": [
[
{
"node": "Bot API token (for refund)",
"type": "main",
"index": 0
}
]
]
},
"Add your logic": {
"main": [
[
{
"node": "Invoice Data",
"type": "main",
"index": 0
}
]
]
},
"Event swticher": {
"main": [
[
{
"node": "Approove / Pre-Checkout Update",
"type": "main",
"index": 0
}
],
[
{
"node": "Write Tlegram Payment Charge ID",
"type": "main",
"index": 0
}
]
]
},
"Data for Invoice": {
"main": [
[
{
"node": "Start Payment Workflow",
"type": "main",
"index": 0
}
]
]
},
"Telegram Trigger": {
"main": [
[
{
"node": "Data for Invoice",
"type": "main",
"index": 0
}
]
]
},
"Add your logic here": {
"main": [
[
{
"node": "Success Message",
"type": "main",
"index": 0
}
]
]
},
"Execute Workflow Trigger": {
"main": [
[
{
"node": "Trigger Data",
"type": "main",
"index": 0
}
]
]
},
"Bot API token (for refund)": {
"main": [
[
{
"node": "Refund Data",
"type": "main",
"index": 0
}
]
]
},
"Write Tlegram Payment Charge ID": {
"main": [
[
{
"node": "Add your logic here",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 财务
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
LinkedIn和X病毒内容自动引擎
使用AI生成和发布自动创建LinkedIn和X的病毒内容
If
Set
Wait
+26
156 节点Diptamoy Barman
内容创作
AIAutomationPro终极RAG聊天机器人v1 n8n市场模板
多语言Telegram RAG聊天机器人,集成监督AI和自动化Google Drive流程
If
Set
Wait
+29
128 节点Daniel Ng
客服机器人
智能资金管理器
基于Telegram、Google Sheets和OpenAI的AI驱动收据和支出追踪器
If
Set
Code
+13
50 节点Khairul Muhtadin
财务
使用Telegram、Airtable和GPT驱动的AI代理进行技术股票分析
使用Telegram、Airtable和GPT驱动的AI代理进行技术股票分析
Set
Switch
Webhook
+14
35 节点Mark Shcherbakov
财务
📊 WhatsApp和Telegram的AI令牌追踪器 - 将AI使用情况保存到Google表格
📊 WhatsApp和Telegram的AI令牌追踪器 - 将AI使用情况保存到Google表格
If
Set
Code
+15
37 节点Amanda Benks
财务
AI邮件分诊与GPT-4警报系统及Telegram通知
AI邮件分诊与GPT-4警报系统及Telegram通知
If
Set
Gmail
+22
104 节点Peter Joslyn
客户支持
工作流信息
难度等级
高级
节点数量34
分类1
节点类型11
作者
Victor Gold
@victorluckyAutomation & AI expert with over 7 years of experience in the digital & tech industry. Founder digital design, web & mobile development studio INSAIM.DESIGN. Focusing on startups & tech companies and helping to streamline their processes with AI and automation.
外部链接
在 n8n.io 查看 →
分享此工作流