{
  "name": "AIOKA Signal → Telegram",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes",
              "minutesInterval": 5
            }
          ]
        }
      },
      "id": "a1b2c3d4-0001-0001-0001-000000000001",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.1,
      "position": [240, 300]
    },
    {
      "parameters": {
        "method": "GET",
        "url": "https://api.aioka.io/v1/integrations/zapier/signal",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {
          "timeout": 10000
        }
      },
      "id": "a1b2c3d4-0002-0002-0002-000000000002",
      "name": "Fetch AIOKA Signal",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.1,
      "position": [460, 300],
      "credentials": {
        "httpHeaderAuth": {
          "id": "REPLACE_WITH_CREDENTIAL_ID",
          "name": "AIOKA API Key"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict"
          },
          "conditions": [
            {
              "id": "condition-001",
              "leftValue": "={{ $json.id }}",
              "rightValue": "={{ $workflow.staticData.lastVerdictId }}",
              "operator": {
                "type": "string",
                "operation": "notEquals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "a1b2c3d4-0003-0003-0003-000000000003",
      "name": "New Verdict?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [680, 300]
    },
    {
      "parameters": {
        "jsCode": "$workflow.staticData.lastVerdictId = $input.item.json.id;\nreturn $input.item;"
      },
      "id": "a1b2c3d4-0004-0004-0004-000000000004",
      "name": "Store Verdict ID",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [900, 200]
    },
    {
      "parameters": {
        "chatId": "REPLACE_WITH_CHAT_ID",
        "text": "=🤖 <b>AIOKA Verdict: {{ $json.verdict }}</b>\nConfidence: {{ $json.confidence }}%\n\n📊 Regime: {{ $json.regime }}\n🌊 Dark Pool: {{ $json.dark_pool }}/100\n📈 RSI: {{ $json.rsi }}\n👻 Ghost: {{ $json.ghost_status }}\n\n🕐 {{ $json.readable_time }}",
        "additionalFields": {
          "parse_mode": "HTML"
        }
      },
      "id": "a1b2c3d4-0005-0005-0005-000000000005",
      "name": "Send Telegram Alert",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.1,
      "position": [1120, 200],
      "credentials": {
        "telegramApi": {
          "id": "REPLACE_WITH_TELEGRAM_CREDENTIAL_ID",
          "name": "Telegram Bot"
        }
      }
    },
    {
      "parameters": {},
      "id": "a1b2c3d4-0006-0006-0006-000000000006",
      "name": "Same Verdict — Stop",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [900, 400]
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Fetch AIOKA Signal",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch AIOKA Signal": {
      "main": [
        [
          {
            "node": "New Verdict?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New Verdict?": {
      "main": [
        [
          {
            "node": "Store Verdict ID",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Same Verdict — Stop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Verdict ID": {
      "main": [
        [
          {
            "node": "Send Telegram Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": {
    "lastVerdictId": ""
  },
  "tags": [
    {
      "createdAt": "2026-04-24T00:00:00.000Z",
      "updatedAt": "2026-04-24T00:00:00.000Z",
      "id": "aioka-sprint233",
      "name": "AIOKA"
    }
  ],
  "triggerCount": 0,
  "updatedAt": "2026-04-24T00:00:00.000Z",
  "versionId": "sprint233"
}
