{
  "openruna_format": "flow-graph-v1",
  "title": "0674_Limit_Webhook_Automation_Webhook",
  "slug": "0674-limit-webhook-automation-webhook",
  "source_filename": "0674_Limit_Webhook_Automation_Webhook.json",
  "nodes": [
    {
      "id": "Gmail Trigger",
      "name": "Gmail Trigger",
      "integration": "gmail",
      "kind": "trigger"
    },
    {
      "id": "Gmail - Extract Received Headers",
      "name": "Gmail - Extract Received Headers",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Gmail - Extract Original From IP",
      "name": "Gmail - Extract Original From IP",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Gmail - Original IP Found?",
      "name": "Gmail - Original IP Found?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Gmail - Query IP Quality Score API",
      "name": "Gmail - Query IP Quality Score API",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Gmail - Query IP API",
      "name": "Gmail - Query IP API",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Gmail - Authentication-Results Header?",
      "name": "Gmail - Authentication-Results Header?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Gmail - Received-SPF Header?",
      "name": "Gmail - Received-SPF Header?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Gmail - Extract Authentication-Results Header",
      "name": "Gmail - Extract Authentication-Results Header",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Gmail - Extract Received-SPF Header",
      "name": "Gmail - Extract Received-SPF Header",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Gmail - Determine Auth Values",
      "name": "Gmail - Determine Auth Values",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Gmail - Set SPF Value",
      "name": "Gmail - Set SPF Value",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Gmail - No SPF Found",
      "name": "Gmail - No SPF Found",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Gmail - Format Output",
      "name": "Gmail - Format Output",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Gmail - DKIM Signature Found",
      "name": "Gmail - DKIM Signature Found",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Gmail - DKIM-Signature Header?",
      "name": "Gmail - DKIM-Signature Header?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Gmail - No DKIM Signature Found",
      "name": "Gmail - No DKIM Signature Found",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Gmail - Set DMARC Value",
      "name": "Gmail - Set DMARC Value",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Gmail - Extract DMARC Header",
      "name": "Gmail - Extract DMARC Header",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Gmail - DMARC Header?",
      "name": "Gmail - DMARC Header?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Gmail - No DMARC Header",
      "name": "Gmail - No DMARC Header",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Set Gmail Headers Here",
      "name": "Set Gmail Headers Here",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Format Individual Auth Outputs1",
      "name": "Format Individual Auth Outputs1",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Format Combined Auth Output1",
      "name": "Format Combined Auth Output1",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Gmail - Webhook",
      "name": "Gmail - Webhook",
      "integration": "webhook",
      "kind": "trigger"
    },
    {
      "id": "Gmail - Remove Extra Received Headers",
      "name": "Gmail - Remove Extra Received Headers",
      "integration": "limit",
      "kind": "logic"
    },
    {
      "id": "Gmail - Merge",
      "name": "Gmail - Merge",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Gmail - Aggregate",
      "name": "Gmail - Aggregate",
      "integration": "aggregate",
      "kind": "logic"
    },
    {
      "id": "Gmail - Set Headers",
      "name": "Gmail - Set Headers",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Gmail - Respond to Webhook",
      "name": "Gmail - Respond to Webhook",
      "integration": "respondToWebhook",
      "kind": "action"
    },
    {
      "id": "Aggregate Received-SPF Headers1",
      "name": "Aggregate Received-SPF Headers1",
      "integration": "aggregate",
      "kind": "logic"
    },
    {
      "id": "Set Gmail Webhook Headers Here",
      "name": "Set Gmail Webhook Headers Here",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Skip IP Check",
      "name": "Skip IP Check",
      "integration": "noOp",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Gmail - Merge",
      "to": "Gmail - Aggregate"
    },
    {
      "from": "Gmail Trigger",
      "to": "Set Gmail Headers Here"
    },
    {
      "from": "Skip IP Check",
      "to": "Gmail - Authentication-Results Header?"
    },
    {
      "from": "Gmail - Webhook",
      "to": "Set Gmail Webhook Headers Here"
    },
    {
      "from": "Gmail - Aggregate",
      "to": "Format Individual Auth Outputs1"
    },
    {
      "from": "Gmail - Set Headers",
      "to": "Gmail - Extract Received Headers"
    },
    {
      "from": "Gmail - No SPF Found",
      "to": "Gmail - Merge"
    },
    {
      "from": "Gmail - Query IP API",
      "to": "Gmail - Authentication-Results Header?"
    },
    {
      "from": "Gmail - DMARC Header?",
      "to": "Gmail - Extract DMARC Header"
    },
    {
      "from": "Gmail - DMARC Header?",
      "to": "Gmail - No DMARC Header"
    },
    {
      "from": "Gmail - Format Output",
      "to": "Gmail - Respond to Webhook"
    },
    {
      "from": "Gmail - Set SPF Value",
      "to": "Gmail - Merge"
    },
    {
      "from": "Set Gmail Headers Here",
      "to": "Gmail - Set Headers"
    },
    {
      "from": "Gmail - No DMARC Header",
      "to": "Gmail - Merge"
    },
    {
      "from": "Gmail - Set DMARC Value",
      "to": "Gmail - Merge"
    },
    {
      "from": "Gmail - Original IP Found?",
      "to": "Gmail - Query IP Quality Score API"
    },
    {
      "from": "Gmail - Original IP Found?",
      "to": "Skip IP Check"
    },
    {
      "from": "Format Combined Auth Output1",
      "to": "Gmail - Format Output"
    },
    {
      "from": "Gmail - DKIM Signature Found",
      "to": "Gmail - Merge"
    },
    {
      "from": "Gmail - Extract DMARC Header",
      "to": "Gmail - Set DMARC Value"
    },
    {
      "from": "Gmail - Received-SPF Header?",
      "to": "Gmail - Extract Received-SPF Header"
    },
    {
      "from": "Gmail - Received-SPF Header?",
      "to": "Gmail - No SPF Found"
    },
    {
      "from": "Gmail - Determine Auth Values",
      "to": "Format Combined Auth Output1"
    },
    {
      "from": "Gmail - DKIM-Signature Header?",
      "to": "Gmail - DKIM Signature Found"
    },
    {
      "from": "Gmail - DKIM-Signature Header?",
      "to": "Gmail - No DKIM Signature Found"
    },
    {
      "from": "Set Gmail Webhook Headers Here",
      "to": "Gmail - Set Headers"
    },
    {
      "from": "Aggregate Received-SPF Headers1",
      "to": "Gmail - Set SPF Value"
    },
    {
      "from": "Format Individual Auth Outputs1",
      "to": "Gmail - Format Output"
    },
    {
      "from": "Gmail - No DKIM Signature Found",
      "to": "Gmail - Merge"
    },
    {
      "from": "Gmail - Extract Original From IP",
      "to": "Gmail - Original IP Found?"
    },
    {
      "from": "Gmail - Extract Received Headers",
      "to": "Gmail - Remove Extra Received Headers"
    },
    {
      "from": "Gmail - Query IP Quality Score API",
      "to": "Gmail - Query IP API"
    },
    {
      "from": "Gmail - Extract Received-SPF Header",
      "to": "Aggregate Received-SPF Headers1"
    },
    {
      "from": "Gmail - Remove Extra Received Headers",
      "to": "Gmail - Extract Original From IP"
    },
    {
      "from": "Gmail - Authentication-Results Header?",
      "to": "Gmail - Extract Authentication-Results Header"
    },
    {
      "from": "Gmail - Authentication-Results Header?",
      "to": "Gmail - Received-SPF Header?"
    },
    {
      "from": "Gmail - Authentication-Results Header?",
      "to": "Gmail - DKIM-Signature Header?"
    },
    {
      "from": "Gmail - Authentication-Results Header?",
      "to": "Gmail - DMARC Header?"
    },
    {
      "from": "Gmail - Extract Authentication-Results Header",
      "to": "Gmail - Determine Auth Values"
    }
  ]
}