{
  "name": "HIC \u2014 Weekly Trend Alert",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "weeks"
            }
          ]
        }
      },
      "id": "t1-schedule",
      "name": "Every Week",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "resource": "intelligence",
        "operation": "askHic",
        "question": "What is trending this week?",
        "industry": {
          "__rl": true,
          "mode": "id",
          "value": "restaurants"
        },
        "outputMode": "perRecommendation",
        "simplify": true,
        "options": {
          "intent": "trends",
          "maxResults": 10,
          "timeWindow": "7d"
        }
      },
      "id": "t1-ask",
      "name": "Ask HIC \u2014 Trends",
      "type": "n8n-nodes-hixy-intelligence-cloud.hixyIntelligenceCloud",
      "typeVersion": 1,
      "position": [
        240,
        0
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "leftValue": "={{ $json.confidence }}",
              "rightValue": 0.8,
              "operator": {
                "type": "number",
                "operation": "gte"
              }
            }
          ],
          "combinator": "and"
        }
      },
      "id": "t1-if",
      "name": "Confidence \u2265 0.8",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        480,
        0
      ]
    },
    {
      "parameters": {},
      "id": "t1-notify",
      "name": "Send Alert (add Slack/Email)",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        720,
        -100
      ]
    }
  ],
  "connections": {
    "Every Week": {
      "main": [
        [
          {
            "node": "Ask HIC \u2014 Trends",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ask HIC \u2014 Trends": {
      "main": [
        [
          {
            "node": "Confidence \u2265 0.8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Confidence \u2265 0.8": {
      "main": [
        [
          {
            "node": "Send Alert (add Slack/Email)",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    }
  },
  "settings": {}
}