{
  "openruna_format": "flow-graph-v1",
  "title": "0673_Limit_Code_Create_Webhook",
  "slug": "0673-limit-code-create-webhook",
  "source_filename": "0673_Limit_Code_Create_Webhook.json",
  "nodes": [
    {
      "id": "Trigger on New Email",
      "name": "Trigger on New Email",
      "integration": "microsoftOutlook",
      "kind": "trigger"
    },
    {
      "id": "Retrieve Headers of Email",
      "name": "Retrieve Headers of Email",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Extract Received Headers",
      "name": "Extract Received Headers",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Remove Extra Received Headers",
      "name": "Remove Extra Received Headers",
      "integration": "limit",
      "kind": "logic"
    },
    {
      "id": "Extract Original From IP",
      "name": "Extract Original From IP",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Query IP Quality Score API",
      "name": "Query IP Quality Score API",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Query IP API",
      "name": "Query IP API",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Authentication-Results Header?",
      "name": "Authentication-Results Header?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Extract Authentication-Results Header",
      "name": "Extract Authentication-Results Header",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Received-SPF Header?",
      "name": "Received-SPF Header?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "DKIM-Signature Header?",
      "name": "DKIM-Signature Header?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Set SPF Value",
      "name": "Set SPF Value",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Extract Received-SPF Header",
      "name": "Extract Received-SPF Header",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "DKIM Signature Found",
      "name": "DKIM Signature Found",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "DMARC Header?",
      "name": "DMARC Header?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "No DMARC Header",
      "name": "No DMARC Header",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Extract DMARC Header",
      "name": "Extract DMARC Header",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Set DMARC Value",
      "name": "Set DMARC Value",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Original IP Found?",
      "name": "Original IP Found?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "No DKIM Signature Found",
      "name": "No DKIM Signature Found",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Determine Auth Values",
      "name": "Determine Auth Values",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "No SPF Found",
      "name": "No SPF Found",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Merge",
      "name": "Merge",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Aggregate",
      "name": "Aggregate",
      "integration": "aggregate",
      "kind": "logic"
    },
    {
      "id": "No Operation, do nothing",
      "name": "No Operation, do nothing",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Format Webhook Output",
      "name": "Format Webhook Output",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Format Individual Auth Outputs",
      "name": "Format Individual Auth Outputs",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Format Combined Auth Output",
      "name": "Format Combined Auth Output",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Respond to Webhook",
      "name": "Respond to Webhook",
      "integration": "respondToWebhook",
      "kind": "action"
    },
    {
      "id": "Webhook1",
      "name": "Webhook1",
      "integration": "webhook",
      "kind": "trigger"
    },
    {
      "id": "Set Headers",
      "name": "Set Headers",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Aggregate Received-SPF Headers",
      "name": "Aggregate Received-SPF Headers",
      "integration": "aggregate",
      "kind": "logic"
    },
    {
      "id": "Set Headers Here",
      "name": "Set Headers Here",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Set Webhook Headers Here",
      "name": "Set Webhook Headers Here",
      "integration": "set",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Merge",
      "to": "Aggregate"
    },
    {
      "from": "Webhook1",
      "to": "Set Webhook Headers Here"
    },
    {
      "from": "Aggregate",
      "to": "Format Individual Auth Outputs"
    },
    {
      "from": "Set Headers",
      "to": "Extract Received Headers"
    },
    {
      "from": "No SPF Found",
      "to": "Merge"
    },
    {
      "from": "Query IP API",
      "to": "Authentication-Results Header?"
    },
    {
      "from": "DMARC Header?",
      "to": "Extract DMARC Header"
    },
    {
      "from": "DMARC Header?",
      "to": "No DMARC Header"
    },
    {
      "from": "Set SPF Value",
      "to": "Merge"
    },
    {
      "from": "No DMARC Header",
      "to": "Merge"
    },
    {
      "from": "Set DMARC Value",
      "to": "Merge"
    },
    {
      "from": "Set Headers Here",
      "to": "Set Headers"
    },
    {
      "from": "Original IP Found?",
      "to": "Query IP Quality Score API"
    },
    {
      "from": "Original IP Found?",
      "to": "No Operation, do nothing"
    },
    {
      "from": "DKIM Signature Found",
      "to": "Merge"
    },
    {
      "from": "Extract DMARC Header",
      "to": "Set DMARC Value"
    },
    {
      "from": "Received-SPF Header?",
      "to": "Extract Received-SPF Header"
    },
    {
      "from": "Received-SPF Header?",
      "to": "No SPF Found"
    },
    {
      "from": "Trigger on New Email",
      "to": "Retrieve Headers of Email"
    },
    {
      "from": "Determine Auth Values",
      "to": "Format Combined Auth Output"
    },
    {
      "from": "Format Webhook Output",
      "to": "Respond to Webhook"
    },
    {
      "from": "DKIM-Signature Header?",
      "to": "DKIM Signature Found"
    },
    {
      "from": "DKIM-Signature Header?",
      "to": "No DKIM Signature Found"
    },
    {
      "from": "No DKIM Signature Found",
      "to": "Merge"
    },
    {
      "from": "Extract Original From IP",
      "to": "Original IP Found?"
    },
    {
      "from": "Extract Received Headers",
      "to": "Remove Extra Received Headers"
    },
    {
      "from": "No Operation, do nothing",
      "to": "Authentication-Results Header?"
    },
    {
      "from": "Set Webhook Headers Here",
      "to": "Set Headers"
    },
    {
      "from": "Retrieve Headers of Email",
      "to": "Set Headers Here"
    },
    {
      "from": "Query IP Quality Score API",
      "to": "Query IP API"
    },
    {
      "from": "Extract Received-SPF Header",
      "to": "Aggregate Received-SPF Headers"
    },
    {
      "from": "Format Combined Auth Output",
      "to": "Format Webhook Output"
    },
    {
      "from": "Remove Extra Received Headers",
      "to": "Extract Original From IP"
    },
    {
      "from": "Aggregate Received-SPF Headers",
      "to": "Set SPF Value"
    },
    {
      "from": "Authentication-Results Header?",
      "to": "Extract Authentication-Results Header"
    },
    {
      "from": "Authentication-Results Header?",
      "to": "Received-SPF Header?"
    },
    {
      "from": "Authentication-Results Header?",
      "to": "DKIM-Signature Header?"
    },
    {
      "from": "Authentication-Results Header?",
      "to": "DMARC Header?"
    },
    {
      "from": "Format Individual Auth Outputs",
      "to": "Format Webhook Output"
    },
    {
      "from": "Extract Authentication-Results Header",
      "to": "Determine Auth Values"
    }
  ]
}