{
  "name": "Summarize stock market signals with Alpaca, xAI Grok, Telegram and WhatsApp",
  "nodes": [
    {
      "id": "ded227ba-7ef3-4d54-b8fa-296610d6fb63",
      "name": "Basic LLM Chain",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        800,
        128
      ]
    },
    {
      "id": "8d5175c9-2386-4095-81e0-59f59cdd6969",
      "name": "xAI Grok Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatXAiGrok",
      "position": [
        896,
        240
      ]
    },
    {
      "id": "2def0205-ac10-42c5-b5e3-d4a2c9466b6a",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -1440,
        128
      ]
    },
    {
      "id": "18d3333d-3c50-4c9b-90f3-b98699957137",
      "name": "Rapiwa (Send Whatsapp Aleart Message)",
      "type": "n8n-nodes-rapiwa.rapiwa",
      "position": [
        -192,
        160
      ]
    },
    {
      "id": "5f479c7b-5fe1-426e-9e8b-e0cad7039638",
      "name": "Send Telegram Aleart Message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        0,
        160
      ]
    },
    {
      "id": "5cb5bfba-c02f-4bcb-9b72-e3f8bfacb310",
      "name": "Send Admin (Telegram market summary)",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1200,
        32
      ]
    },
    {
      "id": "c4a88009-68b8-4cf7-803e-62273bea33d9",
      "name": "Send Channel (Telegram market summary)",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1200,
        240
      ]
    },
    {
      "id": "b76b43a9-0d4f-4220-b40f-283b265b6068",
      "name": "If (Check Friday market summary)",
      "type": "n8n-nodes-base.if",
      "position": [
        -1248,
        128
      ]
    },
    {
      "id": "4fc8d7d9-f1a2-4769-bbad-bc8b83854eb8",
      "name": "Send Telegram Again Aleart Message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -1056,
        144
      ]
    },
    {
      "id": "23baae4e-9eb8-4cd9-8643-3423f41f8ae5",
      "name": "HTTP (Get Market Clock Response)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -848,
        -80
      ]
    },
    {
      "id": "c28b463a-0255-40e1-8a00-3de222b037b8",
      "name": "HTTP (Get Market Clock Response)1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -848,
        112
      ]
    },
    {
      "id": "e1e481c0-3389-4eba-8e7a-c3f44449c4a0",
      "name": "Format Date & Time",
      "type": "n8n-nodes-base.dateTime",
      "position": [
        -640,
        144
      ]
    },
    {
      "id": "5c8cb241-4e54-4c7b-84a4-33e5d49021ca",
      "name": "If (Check Market is Open)",
      "type": "n8n-nodes-base.if",
      "position": [
        -448,
        144
      ]
    },
    {
      "id": "c0d90c0d-5fab-4949-84f8-b1d4770c94db",
      "name": "Stock ticker symbols",
      "type": "n8n-nodes-base.set",
      "position": [
        192,
        128
      ]
    },
    {
      "id": "7b63c181-9fa7-442f-a749-2417cb9e31a0",
      "name": "Fetch Stock Data (base on symble)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        368,
        128
      ]
    },
    {
      "id": "cc596b9e-1c60-4133-99fd-2ba25fc20beb",
      "name": "Code (Calculate RSI & MACD and Generate Buy/Sell/Hold Signals)",
      "type": "n8n-nodes-base.code",
      "position": [
        560,
        128
      ]
    },
    {
      "id": "79ec86a8-d2b4-470a-b5c1-81c3005092ab",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1920,
        -96
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "8ea1d79d-e52f-44ef-9409-c6b877b74e88",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1152,
        -48
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "d534f801-7a01-4721-b261-72f8abe03454",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1456,
        -96
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "ab2dd43d-77b1-4759-8c65-7188244277d7",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        80
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "232ef859-e90f-46ae-ba61-1389f50990f5",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -592,
        -96
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "cfc7c52a-8b1d-4983-8cb2-7ee0e5ac2714",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -896,
        -96
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "b2e8d596-5d2a-4f5d-9f24-dcda9ff89c02",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        64
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "5eea867b-bebc-4828-a6ac-142c0f397ecd",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1456,
        80
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "4d4752e1-68d4-448c-9214-849f34c3fa7c",
      "name": "Schedule Trigger (Every Friday)",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1056,
        -80
      ]
    }
  ],
  "connections": {
    "Basic LLM Chain": {
      "main": [
        [
          {
            "node": "Send Admin (Telegram market summary)",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Channel (Telegram market summary)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "If (Check Friday market summary)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Date & Time": {
      "main": [
        [
          {
            "node": "If (Check Market is Open)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "xAI Grok Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Stock ticker symbols": {
      "main": [
        [
          {
            "node": "Fetch Stock Data (base on symble)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If (Check Market is Open)": {
      "main": [
        [
          {
            "node": "Stock ticker symbols",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Rapiwa (Send Whatsapp Aleart Message)",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Telegram Aleart Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger (Every Friday)": {
      "main": [
        [
          {
            "node": "HTTP (Get Market Clock Response)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP (Get Market Clock Response)": {
      "main": [
        [
          {
            "node": "Format Date & Time",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If (Check Friday market summary)": {
      "main": [
        [
          {
            "node": "HTTP (Get Market Clock Response)1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Telegram Again Aleart Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Stock Data (base on symble)": {
      "main": [
        [
          {
            "node": "Code (Calculate RSI & MACD and Generate Buy/Sell/Hold Signals)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP (Get Market Clock Response)1": {
      "main": [
        []
      ]
    },
    "Code (Calculate RSI & MACD and Generate Buy/Sell/Hold Signals)": {
      "main": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}