每日英镑汇率
初级
这是一个自动化工作流,包含 5 个节点。主要使用 Code、Gmail、HttpRequest、ManualTrigger 等节点。 每日英镑汇率
前置要求
- •Google 账号和 Gmail API 凭证
- •可能需要目标 API 的认证凭证
使用的节点 (5 个)
分类
未分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "1dDBLH3zWE4dDawo",
"meta": {
"instanceId": "a2eaba9e45ad7aab18b25cf863df1e910fb6dd3b85279bde97d9bae4a72f6862",
"templateCredsSetupCompleted": true
},
"name": "每日英镑汇率",
"tags": [],
"nodes": [
{
"id": "25a32967-fbef-40e9-baa6-c53dc7f69d85",
"name": "当点击“执行工作流”时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
0,
0
],
"parameters": {},
"typeVersion": 1
},
{
"id": "6e2a8b57-c19d-40d5-9546-c904f4525728",
"name": "HTTP 请求",
"type": "n8n-nodes-base.httpRequest",
"position": [
220,
0
],
"parameters": {
"url": "http://data.fixer.io/api/latest?access_key=30f059a57833bce0031c7d08bc3825c2&base=EUR&symbols=USD,AUD,CAD",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "00fade03-af5a-410f-9eea-b41c9863a98f",
"name": "代码",
"type": "n8n-nodes-base.code",
"position": [
440,
0
],
"parameters": {
"jsCode": "// Contoh respons (biasanya didapat dari node HTTP Request)\nconst response = items[0].json;\n\n// Mulai tabel HTML\nlet html = `<table border=\"1\" cellpadding=\"5\" cellspacing=\"0\">\n <thead>\n <tr>\n <th>Currency</th>\n <th>Rate (vs GBP})</th>\n </tr>\n </thead>\n <tbody>`;\n\n// Isi baris dari objek rates\nfor (const [currency, rate] of Object.entries(response.rates)) {\n html += `<tr><td>${currency}</td><td>${rate}</td></tr>`;\n}\n\nhtml += `</tbody></table>`;\n\n// Kembalikan HTML sebagai output\nreturn [{ json: { htmlTable: html } }];\n"
},
"typeVersion": 2
},
{
"id": "d609281c-92cf-4d65-9ff7-44f4bd11cd0b",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-200,
-200
],
"parameters": {
"height": 140,
"content": "## 说明"
},
"typeVersion": 1
},
{
"id": "0ed73dfc-cb4f-460f-8819-4ecfd9848533",
"name": "发送邮件到地址",
"type": "n8n-nodes-base.gmail",
"position": [
640,
0
],
"webhookId": "e9a0873c-8949-401c-9088-d240bb7de25a",
"parameters": {
"sendTo": "miha.ambroz@n8n.io",
"message": "={{ $json.htmlTable }}",
"options": {},
"subject": "rates"
},
"credentials": {
"gmailOAuth2": {
"id": "VVLm2UzmGbMNTTNO",
"name": "Gmail account 2"
}
},
"typeVersion": 2.1
},
{
"id": "63b058fd-c9a7-44ee-8356-d1731448922e",
"name": "Google Sheets",
"type": "n8n-nodes-base.googleSheets",
"position": [
880,
0
],
"parameters": {
"columns": {
"value": {
"Date": "={{ $('HTTP Request').item.json.date }}",
"Rate": "={{ $('HTTP Request').item.json.rates.USD }}",
"Currency": "={{ $('HTTP Request').item.json.base }}"
},
"schema": [
{
"id": "Date",
"type": "string",
"display": true,
"required": false,
"displayName": "Date",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Currency",
"type": "string",
"display": true,
"required": false,
"displayName": "Currency",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Rate",
"type": "string",
"display": true,
"required": false,
"displayName": "Rate",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "append",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cO7Qo4g8o5zaXi54KmqzZYDDHw0yFLJ_-BPyNnLfOG8/edit#gid=0",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "id",
"value": "1cO7Qo4g8o5zaXi54KmqzZYDDHw0yFLJ_-BPyNnLfOG8"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "KEkXl3MqpfWNarDZ",
"name": "Google Sheets account 2"
}
},
"typeVersion": 4.6
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "4a9a7ee5-89b5-4b1f-9670-2e7169782640",
"connections": {
"Code": {
"main": [
[
{
"node": "send email to adress",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"When clicking ‘Execute workflow’": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
这是一个初级难度的通用自动化工作流。适合 n8n 新手,包含 1-5 个节点的简单工作流
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用AI(GPT-4o)自动化数字产品和SaaS销售
使用AI(GPT-4o)自动化数字产品和SaaS销售
If
Code
Wait
+14
34 节点Badr
Sales
AI新闻简报构建器:使用Dumpling AI抓取网站,GPT-4o摘要
AI新闻简报构建器:Dumpling AI抓取网站,GPT-4o摘要
Set
Code
Gmail
+6
10 节点Yang
AI
AI个性化多产品邮件营销
基于SMTP轮换的AI个性化多产品邮件营销(GPT-4o/o3-mini)
If
Code
Wait
+16
41 节点Badr
Sales
AI驱动YouTube产品评论自动分析
基于Apify和GPT的AI驱动YouTube产品评论自动分析
Set
Code
Gmail
+10
25 节点Oriol Seguí
Market Research
使用 Ada AI 分析、解读和可视化多源数据
使用 Ada AI 分析、解读和可视化多源数据
Set
Code
Gmail
+10
25 节点Ada
转录评估器
使用DeepGram和GPT-4o的音频对话分析与可视化
Set
Code
Html
+15
54 节点RealSimple Solutions
AI