{
  "name": "Transaction Fraud Screening with Verifiable Decision Receipts",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "fraud-screening",
        "options": {},
        "responseMode": "responseNode"
      },
      "id": "3ad9292a-2f1d-4013-aca7-9cd7288903d6",
      "name": "Transaction Fraud Screening",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        0,
        300
      ]
    },
    {
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o",
          "cachedResultName": "GPT-4O"
        },
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "=You are a fraud screening AI. Return JSON: {\"decision\":\"ALLOW|BLOCK|REVIEW\",\"risk_score\":0,\"reason\":\"...\"}."
            },
            {
              "content": "=Return JSON only.\n\nInput:\n{{ JSON.stringify($json.body) }}"
            }
          ]
        },
        "jsonOutput": true,
        "options": {}
      },
      "id": "a2c8861d-81a5-4213-a815-b74591d63e5b",
      "name": "AI Decision",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 2.1,
      "position": [
        220,
        300
      ],
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "operation": "generateReceipt",
        "agentName": "FraudScreeningAgent",
        "workflowName": "={{ $workflow.name }}",
        "action": "={{ 'AI decision: ' + ($json.message.content.decision || $json.message.content.recommendation || 'completed') }}",
        "decision": "={{ JSON.stringify($json.message.content) }}",
        "additionalFields": {
          "modelProvider": "openai",
          "modelUsed": "gpt-4o",
          "decisionType": "fraud_screen",
          "riskLevel": "critical",
          "humanReview": false,
          "policies": "aml-screening, pci-controls",
          "permissions": "transaction.screen",
          "tags": "fraud, payments, risk"
        }
      },
      "id": "d5c79ead-0987-4c07-90dd-fff675d6558c",
      "name": "Signatrust: Receipt",
      "type": "n8n-nodes-signatrust.signatrust",
      "typeVersion": 1,
      "position": [
        440,
        300
      ],
      "credentials": {
        "signatrustApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "name",
          "value": "#alerts"
        },
        "text": "={{ 'Decision receipt ' + $json.id + ' created' }}",
        "otherOptions": {}
      },
      "id": "263ff5b2-f9b2-4bb6-a961-8f0b223d6841",
      "name": "Slack Alert",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.3,
      "position": [
        660,
        300
      ],
      "credentials": {
        "slackApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "content": "## Transaction Fraud Screening with Verifiable Decision Receipts\n**Why Signatrust?** Every AI decision here becomes a tamper-evident, Ed25519-signed receipt \u2014 verifiable for audits and disputes.",
        "height": 170,
        "width": 420,
        "color": 5
      },
      "id": "614e1996-5780-4066-a43c-be10dd7ed16d",
      "name": "Sticky Note 081107",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -40,
        40
      ]
    }
  ],
  "connections": {
    "Transaction Fraud Screening": {
      "main": [
        [
          {
            "node": "AI Decision",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Decision": {
      "main": [
        [
          {
            "node": "Signatrust: Receipt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Signatrust: Receipt": {
      "main": [
        [
          {
            "node": "Slack Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "tags": [
    {
      "name": "Transaction Fraud Screening \u2014 fraud"
    },
    {
      "name": "Transaction Fraud Screening \u2014 payments"
    },
    {
      "name": "Transaction Fraud Screening \u2014 risk"
    },
    {
      "name": "Signatrust (9)"
    }
  ],
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "versionId": "a1892d22-41c1-4125-8737-fecc6850eb0b"
}