{
  "openruna_format": "flow-graph-v1",
  "title": "0816_Splitout_Code_Automation_Scheduled",
  "slug": "0816-splitout-code-automation-scheduled",
  "source_filename": "0816_Splitout_Code_Automation_Scheduled.json",
  "nodes": [
    {
      "id": "Spam Detection",
      "name": "Spam Detection",
      "integration": "@n8n/n8n-nodes-langchain.textClassifier",
      "kind": "action"
    },
    {
      "id": "Get Recent Messages",
      "name": "Get Recent Messages",
      "integration": "discord",
      "kind": "action"
    },
    {
      "id": "Only Once",
      "name": "Only Once",
      "integration": "removeDuplicates",
      "kind": "logic"
    },
    {
      "id": "Model",
      "name": "Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Warn User",
      "name": "Warn User",
      "integration": "discord",
      "kind": "action"
    },
    {
      "id": "Warn User Only",
      "name": "Warn User Only",
      "integration": "discord",
      "kind": "action"
    },
    {
      "id": "Group By User",
      "name": "Group By User",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "For Each User...",
      "name": "For Each User...",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "Split Out",
      "name": "Split Out",
      "integration": "splitOut",
      "kind": "logic"
    },
    {
      "id": "Message to List",
      "name": "Message to List",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Notify Moderators with Send & Wait",
      "name": "Notify Moderators with Send & Wait",
      "integration": "discord",
      "kind": "action"
    },
    {
      "id": "Flag as Spam",
      "name": "Flag as Spam",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Flag as Not Spam",
      "name": "Flag as Not Spam",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Merge",
      "name": "Merge",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Spam Messages Only",
      "name": "Spam Messages Only",
      "integration": "filter",
      "kind": "logic"
    },
    {
      "id": "Has Flagged Messages?",
      "name": "Has Flagged Messages?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Get Message IDs",
      "name": "Get Message IDs",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Delete Messages",
      "name": "Delete Messages",
      "integration": "discord",
      "kind": "action"
    },
    {
      "id": "Receive Instructions",
      "name": "Receive Instructions",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Moderation Subworkflow",
      "name": "Moderation Subworkflow",
      "integration": "executeWorkflow",
      "kind": "action"
    },
    {
      "id": "When Executed by Another Workflow",
      "name": "When Executed by Another Workflow",
      "integration": "executeWorkflow",
      "kind": "trigger"
    },
    {
      "id": "No Action Taken",
      "name": "No Action Taken",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Schedule Trigger",
      "name": "Schedule Trigger",
      "integration": "schedule",
      "kind": "trigger"
    }
  ],
  "edges": [
    {
      "from": "Merge",
      "to": "Spam Messages Only"
    },
    {
      "from": "Only Once",
      "to": "Group By User"
    },
    {
      "from": "Split Out",
      "to": "For Each User..."
    },
    {
      "from": "Flag as Spam",
      "to": "Merge"
    },
    {
      "from": "Group By User",
      "to": "Split Out"
    },
    {
      "from": "Spam Detection",
      "to": "Flag as Spam"
    },
    {
      "from": "Spam Detection",
      "to": "Flag as Not Spam"
    },
    {
      "from": "Delete Messages",
      "to": "Warn User"
    },
    {
      "from": "Get Message IDs",
      "to": "Delete Messages"
    },
    {
      "from": "Message to List",
      "to": "Spam Detection"
    },
    {
      "from": "Flag as Not Spam",
      "to": "Merge"
    },
    {
      "from": "For Each User...",
      "to": "Message to List"
    },
    {
      "from": "Schedule Trigger",
      "to": "Get Recent Messages"
    },
    {
      "from": "Spam Messages Only",
      "to": "Has Flagged Messages?"
    },
    {
      "from": "Get Recent Messages",
      "to": "Only Once"
    },
    {
      "from": "Receive Instructions",
      "to": "Get Message IDs"
    },
    {
      "from": "Receive Instructions",
      "to": "Warn User Only"
    },
    {
      "from": "Receive Instructions",
      "to": "No Action Taken"
    },
    {
      "from": "Has Flagged Messages?",
      "to": "Moderation Subworkflow"
    },
    {
      "from": "Has Flagged Messages?",
      "to": "For Each User..."
    },
    {
      "from": "Moderation Subworkflow",
      "to": "For Each User..."
    },
    {
      "from": "When Executed by Another Workflow",
      "to": "Notify Moderators with Send & Wait"
    },
    {
      "from": "Notify Moderators with Send & Wait",
      "to": "Receive Instructions"
    }
  ]
}