{
  "openruna_format": "flow-graph-v1",
  "title": "0948_Filter_Schedule_Create_Scheduled",
  "slug": "0948-filter-schedule-create-scheduled",
  "source_filename": "0948_Filter_Schedule_Create_Scheduled.json",
  "nodes": [
    {
      "id": "Scheduled Start: Daily Churn Check",
      "name": "Scheduled Start: Daily Churn Check",
      "integration": "schedule",
      "kind": "trigger"
    },
    {
      "id": "Fetch Customer Data from Sheet",
      "name": "Fetch Customer Data from Sheet",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Filter High Churn Risk & No Campaign Customers",
      "name": "Filter High Churn Risk & No Campaign Customers",
      "integration": "filter",
      "kind": "logic"
    },
    {
      "id": "Check if Eligible Customers Found",
      "name": "Check if Eligible Customers Found",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Process Each Eligible Customer",
      "name": "Process Each Eligible Customer",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "Generate Win-Back Offer",
      "name": "Generate Win-Back Offer",
      "integration": "@n8n/n8n-nodes-langchain.chainLlm",
      "kind": "action"
    },
    {
      "id": "(LLM Model for Offer Generation)",
      "name": "(LLM Model for Offer Generation)",
      "integration": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "kind": "action"
    },
    {
      "id": "(Parse Offer JSON)",
      "name": "(Parse Offer JSON)",
      "integration": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "kind": "action"
    },
    {
      "id": "Log Sent Offer in System Log",
      "name": "Log Sent Offer in System Log",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Send Win-Back Offer via Email",
      "name": "Send Win-Back Offer via Email",
      "integration": "gmail",
      "kind": "action"
    },
    {
      "id": "Set 'Not Found' Status",
      "name": "Set 'Not Found' Status",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Log 'Not Found' in System Log",
      "name": "Log 'Not Found' in System Log",
      "integration": "googleSheets",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "Set 'Not Found' Status",
      "to": "Log 'Not Found' in System Log"
    },
    {
      "from": "Generate Win-Back Offer",
      "to": "Log Sent Offer in System Log"
    },
    {
      "from": "Log Sent Offer in System Log",
      "to": "Send Win-Back Offer via Email"
    },
    {
      "from": "Send Win-Back Offer via Email",
      "to": "Process Each Eligible Customer"
    },
    {
      "from": "Fetch Customer Data from Sheet",
      "to": "Filter High Churn Risk & No Campaign Customers"
    },
    {
      "from": "Process Each Eligible Customer",
      "to": "Generate Win-Back Offer"
    },
    {
      "from": "Check if Eligible Customers Found",
      "to": "Process Each Eligible Customer"
    },
    {
      "from": "Check if Eligible Customers Found",
      "to": "Set 'Not Found' Status"
    },
    {
      "from": "Scheduled Start: Daily Churn Check",
      "to": "Fetch Customer Data from Sheet"
    },
    {
      "from": "Filter High Churn Risk & No Campaign Customers",
      "to": "Check if Eligible Customers Found"
    }
  ]
}