Gold Price Alert
Fortgeschritten
Dies ist ein Crypto Trading-Bereich Automatisierungsworkflow mit 10 Nodes. Hauptsächlich werden If, Html, HttpRequest, ScheduleTrigger und andere Nodes verwendet. LINE-Goldpreis-Schwellenwertbenachrichtigung basierend auf Web-Scraping
Voraussetzungen
- •Möglicherweise sind Ziel-API-Anmeldedaten erforderlich
Verwendete Nodes (10)
Kategorie
Workflow-Vorschau
Visualisierung der Node-Verbindungen, mit Zoom und Pan
Workflow exportieren
Kopieren Sie die folgende JSON-Konfiguration und importieren Sie sie in n8n
{
"id": "CQ33IAKSfdDbLzmK",
"meta": {
"instanceId": "558d88703fb65b2d0e44613bc35916258b0f0bf983c5d4730c00c424b77ca36a"
},
"name": "Gold Price Alert",
"tags": [],
"nodes": [
{
"id": "771277db-5553-4d8f-8519-a27e25107178",
"name": "Zeitplan-Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-480,
20
],
"parameters": {
"rule": {
"interval": [
{
"field": "hours",
"hoursInterval": 6
}
]
}
},
"typeVersion": 1.2
},
{
"id": "cf148eee-50dc-41a7-9555-a906676bbc81",
"name": "If",
"type": "n8n-nodes-base.if",
"position": [
360,
20
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "6decc8be-9041-4975-b700-16f8360578b5",
"operator": {
"type": "number",
"operation": "gt"
},
"leftValue": "={{ parseFloat($json['#DetailPlace_uc_goldprices1_lblBLBuy'].replace(/[^\\d.]/g, '')) }}",
"rightValue": 52300
},
{
"id": "553a009d-a08a-4746-b546-d1a43352b07f",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "",
"rightValue": ""
}
]
}
},
"typeVersion": 2.2
},
{
"id": "f98523e4-4dbc-486c-9a7e-babb024aa907",
"name": "Haftnotiz",
"type": "n8n-nodes-base.stickyNote",
"position": [
-560,
-80
],
"parameters": {
"width": 260,
"height": 260,
"content": "Schedule to check every 6 hours to see the current gold price"
},
"typeVersion": 1
},
{
"id": "62bd43cd-755c-44b7-b30d-27416d61f9a5",
"name": "Haftnotiz1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-280,
-80
],
"parameters": {
"color": 5,
"width": 260,
"height": 260,
"content": "To get normal webpage, we can use HTTP request without any authoriation and the output will be HTML code"
},
"typeVersion": 1
},
{
"id": "e6d39001-667e-4632-9b46-2890e2c9aa60",
"name": "Haftnotiz2",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
-80
],
"parameters": {
"color": 5,
"width": 260,
"height": 260,
"content": "We would specify what we want from the HTML code earlier eg. Price -- You can find the element by right click > inspect "
},
"typeVersion": 1
},
{
"id": "ec2e7f8b-1867-436a-8537-af9c69d9c726",
"name": "Get Webpage",
"type": "n8n-nodes-base.httpRequest",
"position": [
-200,
20
],
"parameters": {
"url": "https://www.goldtraders.or.th/",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "35f7cac8-ce35-4ba8-893d-aa69e0ea5141",
"name": "Extract Price",
"type": "n8n-nodes-base.html",
"position": [
80,
20
],
"parameters": {
"options": {},
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "#DetailPlace_uc_goldprices1_lblBLBuy",
"cssSelector": "#DetailPlace_uc_goldprices1_lblBLBuy"
}
]
}
},
"typeVersion": 1.2
},
{
"id": "a8f8d4ed-124d-4921-a03a-25459a015100",
"name": "Haftnotiz3",
"type": "n8n-nodes-base.stickyNote",
"position": [
280,
-140
],
"parameters": {
"color": 4,
"width": 260,
"height": 320,
"content": "We do not want all the alerts. Thus, we only filter to alert once the price is more than the given number.\n\nIn order to compare, we also need to convert the text to number as well."
},
"typeVersion": 1
},
{
"id": "1a3cce75-f2d0-4934-b0c9-7c7f8b4e5681",
"name": "Send Line Message",
"type": "n8n-nodes-base.httpRequest",
"position": [
660,
-120
],
"parameters": {
"url": "https://api.line.me/v2/bot/message/push",
"method": "POST",
"options": {},
"jsonBody": "={\n \"to\": \"Ue9cc622e33e5333e3784298412ec9aed\",\n \"messages\":[\n {\n \"type\":\"text\",\n \"text\":\"ราคาทองวันนี้ {{ $json['#DetailPlace_uc_goldprices1_lblBLBuy'] }}\"\n }\n ]\n}",
"sendBody": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "lKd3b2nc8uNJ148Z",
"name": "Line @271dudsw MiniBear"
}
},
"typeVersion": 4.2
},
{
"id": "b979a549-4717-49f1-8678-e3b699682dc9",
"name": "Haftnotiz4",
"type": "n8n-nodes-base.stickyNote",
"position": [
580,
-220
],
"parameters": {
"width": 260,
"height": 260,
"content": "When the condition is met, it'll send the message via line. This can be other platform such as telegram or email"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "ac7f75f8-6820-4ec3-9934-0fbcc45cfad3",
"connections": {
"cf148eee-50dc-41a7-9555-a906676bbc81": {
"main": [
[
{
"node": "1a3cce75-f2d0-4934-b0c9-7c7f8b4e5681",
"type": "main",
"index": 0
}
]
]
},
"ec2e7f8b-1867-436a-8537-af9c69d9c726": {
"main": [
[
{
"node": "35f7cac8-ce35-4ba8-893d-aa69e0ea5141",
"type": "main",
"index": 0
}
]
]
},
"35f7cac8-ce35-4ba8-893d-aa69e0ea5141": {
"main": [
[
{
"node": "cf148eee-50dc-41a7-9555-a906676bbc81",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "ec2e7f8b-1867-436a-8537-af9c69d9c726",
"type": "main",
"index": 0
}
]
]
}
}
}Häufig gestellte Fragen
Wie verwende ich diesen Workflow?
Kopieren Sie den obigen JSON-Code, erstellen Sie einen neuen Workflow in Ihrer n8n-Instanz und wählen Sie "Aus JSON importieren". Fügen Sie die Konfiguration ein und passen Sie die Anmeldedaten nach Bedarf an.
Für welche Szenarien ist dieser Workflow geeignet?
Fortgeschritten - Krypto-Handel
Ist es kostenpflichtig?
Dieser Workflow ist völlig kostenlos. Beachten Sie jedoch, dass Drittanbieterdienste (wie OpenAI API), die im Workflow verwendet werden, möglicherweise kostenpflichtig sind.
Verwandte Workflows
Mein Workflow 20
Automatisierte Analyse von US-Aktienportfolios mit Telegram, Perplexity AI und PDF-Berichten
If
Code
Html
+
If
Code
Html
62 NodesSolido AI
Krypto-Handel
Dankbarkeitsgefäß-Erinnerung
Ein KI-basierter LINE-Dankbarkeitserinnerungs-Workflow
Set
Http Request
Schedule Trigger
+
Set
Http Request
Schedule Trigger
9 Nodeslin@davoy.tech
Sonstiges
SOL/USDT Multi-Timeframe-AI-Marktanalysator und Handelssystem (mit Telegram-Genehmigung)
Automatisierung von Solana-Handels mit Gemini AI, multipler Zeitrahmen-Analyse und AFK Crypto
If
Code
Wait
+
If
Code
Wait
56 NodesJeff
Krypto-Handel
Sentiment-Analyse-Bot
Automatisierte Aktien-Sentiment-Analyse mit Google Gemini und EODHD News API
If
Code
Http Request
+
If
Code
Http Request
18 NodesRaz Hadas
Krypto-Handel
Chatbot-KI
Ihren eigenen psychologischen Beratung-Chatbot auf LINE für Gespräche zur psychischen Gesundheit erstellen
If
Set
Webhook
+
If
Set
Webhook
14 Nodeslin@davoy.tech
Sonstiges
Degen Alpha
Scannen Sie vertrauliche Alpha mit dem OpenAI On-Chain Scanner - On-Chain- und Social-Media-Alerts werden an Telegram gesendet
If
Code
Merge
+
If
Code
Merge
38 NodesLuka Zivkovic
Krypto-Handel
Workflow-Informationen
Schwierigkeitsgrad
Fortgeschritten
Anzahl der Nodes10
Kategorie1
Node-Typen5
Autor
lin@davoy.tech
@linlinmheeExterne Links
Auf n8n.io ansehen →
Diesen Workflow teilen