<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: VIJENDER YADAV</title>
    <description>The latest articles on DEV Community by VIJENDER YADAV (@desmond009).</description>
    <link>https://dev.to/desmond009</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4141773%2F606778df-f1f0-47c6-a6d8-8002bd5f4a95.jpg</url>
      <title>DEV Community: VIJENDER YADAV</title>
      <link>https://dev.to/desmond009</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/desmond009"/>
    <language>en</language>
    <item>
      <title>Building FraudAgent: Autonomous Financial Crime Intelligence with TigerGraph &amp; LangGraph</title>
      <dc:creator>VIJENDER YADAV</dc:creator>
      <pubDate>Thu, 24 Sep 2026 18:27:37 +0000</pubDate>
      <link>https://dev.to/desmond009/building-fraudagent-autonomous-financial-crime-intelligence-with-tigergraph-langgraph-3eba</link>
      <guid>https://dev.to/desmond009/building-fraudagent-autonomous-financial-crime-intelligence-with-tigergraph-langgraph-3eba</guid>
      <description>&lt;h1&gt;
  
  
  Autonomous Financial Crime Intelligence: Building an Agentic Fraud Investigation System with TigerGraph &amp;amp; LangGraph
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Submission for the TigerGraph Agentic Fraud Investigation Hackathon (HHGOA)&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Demo Video:&lt;/strong&gt; &lt;a href="https://drive.google.com/file/d/1jREhAQDp34CtNJT9baw-p4BQKHw_Cwz5/view?usp=sharing" rel="noopener noreferrer"&gt;Watch 3-5 Min Walkthrough&lt;/a&gt;&lt;br&gt;&lt;br&gt;
&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/desmond009/Fraud_agent_HHG" rel="noopener noreferrer"&gt;https://github.com/desmond009/Fraud_agent_HHG&lt;/a&gt;&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Benchmark Dataset:&lt;/strong&gt; IEEE-CIS Financial Crime Dataset (590k+ Transactions, 13.5k Entities, 5.5k Historical Closed Cases)&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Evaluation:&lt;/strong&gt; 20 / 20 Benchmark Cases Validated (100% Policy Schema Compliance)  &lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  1. What We Built
&lt;/h2&gt;

&lt;p&gt;Financial crime investigation teams at tier-1 banks are under relentless pressure. Traditional rule engines and isolated machine learning models flag thousands of alerts daily, creating severe fatigue:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Fragmented Context&lt;/strong&gt;: Analysts must manually query disparate databases (transaction ledgers, device profiles, customer profiles, regulatory blacklists).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Uncertain Signals&lt;/strong&gt;: A transaction with an initial risk score of 0.65 may be an innocent cardholder traveling abroad, or the opening move of a distributed card-testing ring.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Slow Response Latency&lt;/strong&gt;: Gathering evidence across multiple systems often takes days, by which time funds have already been laundered.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To solve this, we built &lt;strong&gt;FraudAgent&lt;/strong&gt; — an autonomous, policy-governed fraud investigation platform that combines &lt;strong&gt;TigerGraph&lt;/strong&gt;, &lt;strong&gt;TigerGraph MCP&lt;/strong&gt;, &lt;strong&gt;LangGraph&lt;/strong&gt;, &lt;strong&gt;ChromaDB GraphRAG&lt;/strong&gt;, and a &lt;strong&gt;Palantir/Linear-inspired React 19 Workspace&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Instead of treating fraud detection as a static point prediction, FraudAgent operates as a stateful, iterative investigation agent that:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Ingests Alerts&lt;/strong&gt;: Automatically triggers from risk score anomalies, customer dispute reports, or analyst escalations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Traverses Knowledge Graphs&lt;/strong&gt;: Queries multi-hop relationship linkages across customers, cards, devices, and historical fraud rings using TigerGraph GSQL algorithms.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Calibrates Uncertainty&lt;/strong&gt;: Evaluates fraud probability before and after evidence collection, computing explicit explanations of what changed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enforces Policy Governance&lt;/strong&gt;: Maps findings against bank regulations (Rules R1–R10) with role-based sign-offs (&lt;code&gt;auto&lt;/code&gt;, &lt;code&gt;L1 Lead&lt;/code&gt;, &lt;code&gt;L2 Manager&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generates Regulatory Deliverables&lt;/strong&gt;: Instantly drafts official FinCEN Suspicious Activity Reports (SARs) with full audit trails.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Writes Back to Case Memory&lt;/strong&gt;: Persists investigation outcomes back into the graph, continuously training and expanding institutional memory.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  2. System Architecture
&lt;/h2&gt;

&lt;p&gt;FraudAgent is designed around an event-driven, microservices-ready architecture:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;┌────────────────────────────────────────────────────────────────────────────────┐
│                           REACT 19 ANALYST WORKSPACE                           │
│  - Spring Force Graph Canvas      - Uncertainty Delta Visualizer               │
│  - Case Progression Timeline      - L1 / L2 Approval Sign-off Actions          │
│  - Interactive Evidence Dossier   - FinCEN SAR Regulatory Drawer               │
└───────────────────────────────────────┬────────────────────────────────────────┘
                                        │ REST / JSON (FastAPI Bridge)
                                        ▼
┌────────────────────────────────────────────────────────────────────────────────┐
│                       FASTAPI BACKEND &amp;amp; ORCHESTRATION                          │
│  - /api/cases, /api/graph, /api/audit-log, /api/model/predict, /api/model/train│
└──────────────────┬────────────────────┬────────────────────┬───────────────────┘
                   │                    │                    │
                   ▼                    ▼                    ▼
     ┌──────────────────────┐ ┌───────────────────┐ ┌──────────────────────┐
     │ 6-NODE LANGGRAPH     │ │ CHROMA VECTOR RAG │ │ ML INFERENCE PIPELINE│
     │ INVESTIGATION STATE  │ │ Policy Rules R1-10│ │ HistGradientBoosting │
     │ MACHINE              │ │ &amp;amp; FinCEN Typologies││ Checkpoint Persistent│
     └──────────┬───────────┘ └───────────────────┘ └──────────────────────┘
                │ Tool Calls via Model Context Protocol (MCP)
                ▼
┌────────────────────────────────────────────────────────────────────────────────┐
│                            TIGERGRAPH CLOUD / MCP                              │
│  • Graph Schema: Customer, Card, Transaction, DeviceProfile, ClosedCase        │
│  • GSQL Graph Algorithms: Multi-hop Ring Traversal, Temporal Velocity Windows  │
│  • Vector Graph Memory: Writeback of resolved cases for historical retrieval   │
└────────────────────────────────────────────────────────────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  The 6-Node LangGraph State Machine
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;trigger_ingestion&lt;/code&gt;: Normalizes alert metadata (risk scores, customer reports, transaction details).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;initial_investigation&lt;/code&gt;: Dispatches TigerGraph MCP queries to inspect account history, transaction windows, and multi-hop entity neighborhoods.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;evidence_synthesis&lt;/code&gt;: Synthesizes graph evidence against bank policies retrieved via ChromaDB GraphRAG.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;uncertainty_assessment&lt;/code&gt;: Measures signal confidence and computes initial fraud risk and initial Next-Best Action.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;evidence_simulation&lt;/code&gt;: Gathers controlled additional evidence (e.g. simulated customer confirmation/denial or step-up authentication), recalculating calibrated probability.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;case_memory_writeback&lt;/code&gt;: Commits resolved case records, SAR filings, and approval decisions into TigerGraph as new &lt;code&gt;ClosedCase&lt;/code&gt; vertices.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  3. How TigerGraph is Used
&lt;/h2&gt;

&lt;p&gt;TigerGraph serves as the persistent nervous system of our platform:&lt;/p&gt;

&lt;h3&gt;
  
  
  A. Graph Schema (&lt;code&gt;schema/schema.gsql&lt;/code&gt;)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Vertices&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Customer&lt;/code&gt;: Account owner metadata.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Card&lt;/code&gt;: Payment cards linked to accounts.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Transaction&lt;/code&gt;: Individual financial authorizations ($amount, $timestamp, risk score, channel).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;DeviceProfile&lt;/code&gt;: MD5-hashed digital fingerprint (&lt;code&gt;DeviceInfo&lt;/code&gt;, OS version, browser, screen resolution).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;EmailDomain&lt;/code&gt; &amp;amp; &lt;code&gt;BillingRegion&lt;/code&gt;: Contextual anchor points.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ClosedCase&lt;/code&gt;: Prior investigations serving as dynamic case memory.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Edges&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;Customer -OWNS-&amp;gt; Card&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Card -MADE-&amp;gt; Transaction&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Transaction -FROM_DEVICE-&amp;gt; DeviceProfile&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Transaction -PURCHASER_EMAIL-&amp;gt; EmailDomain&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Transaction -BILLED_IN-&amp;gt; BillingRegion&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Transaction -NEXT-&amp;gt; Transaction&lt;/code&gt; (temporal sequence for card testing detection)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ClosedCase -INVOLVES-&amp;gt; Transaction&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ClosedCase -ON_CARD-&amp;gt; Card&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Card -CONNECTED_TO-&amp;gt; Card&lt;/code&gt; (device-sharing fraud rings)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  B. High-Performance GSQL Queries
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;get_card_transaction_window&lt;/code&gt;: Computes rolling transaction frequency and amount velocity within 24 hours of an alert.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;get_device_region_neighborhood&lt;/code&gt;: Traverses multi-hop paths to uncover shared devices, shared billing addresses, and linked cards with prior fraud history.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;match_historical_cases&lt;/code&gt;: Fetches similar resolved cases by fraud typology and customer behavior.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;write_case_memory&lt;/code&gt;: Inserts a &lt;code&gt;ClosedCase&lt;/code&gt; vertex and connects it to affected cards and transactions in real-time.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  C. TigerGraph MCP (Model Context Protocol) Bridge
&lt;/h3&gt;

&lt;p&gt;Rather than feeding raw data into an LLM prompt, the agent invokes structured MCP tools:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;tg_get_transaction(txn_id)&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;tg_query_txn_window(card_id, timestamp, window_hours)&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;tg_query_neighborhood(txn_id)&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;tg_match_historical_cases(pattern, max_results)&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;tg_write_case_memory(case_id, verdict, pattern, exposure, ...)&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  4. Agentic Capabilities Implemented
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Two-Stage Uncertainty Calibration
&lt;/h3&gt;

&lt;p&gt;In high-stakes financial operations, models cannot act blindly on initial indicators. FraudAgent separates action recommendations into two distinct stages:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Initial Next-Best Action&lt;/strong&gt;: Formulated before requesting additional evidence (e.g., &lt;code&gt;VERIFY_WITH_CUSTOMER (auto)&lt;/code&gt;, &lt;code&gt;STEP_UP_AUTH (auto)&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Final Next-Best Action&lt;/strong&gt;: Formulated after additional evidence is received (e.g., customer confirms authorized activity $\rightarrow$ &lt;code&gt;CLOSE_NO_FRAUD (auto)&lt;/code&gt;; customer denies activity $\rightarrow$ &lt;code&gt;BLOCK_CARD (L1)&lt;/code&gt;, &lt;code&gt;FILE_REPORT (L2)&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What Changed Explanation&lt;/strong&gt;: Generates plain-English rationale for why the confidence shifted (e.g., &lt;em&gt;"Customer denial confirmed unauthorized usage, raising fraud probability from 54% to 88%"&lt;/em&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Policy-Governed Gating (L1 / L2 Approval Workflow)
&lt;/h3&gt;

&lt;p&gt;Automated AI actions are bounded by strict banking regulations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;auto&lt;/code&gt;: Autonomous execution (logging, monitoring, closing cleared alerts under Rule R3).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;L1 (Lead Analyst)&lt;/code&gt;: Sign-off for single card blocks ($\le \$2,500$) and authorization declines.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;L2 (Fraud Manager)&lt;/code&gt;: Sign-off for high-exposure freezes ($&amp;gt; \$2,500$), blocking all account cards, and external FinCEN SAR submissions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Automated FinCEN Suspicious Activity Reports (SAR)
&lt;/h3&gt;

&lt;p&gt;When exposure exceeds \$1,000 or organized fraud rings are detected, the agent drafts complete regulatory narratives answering &lt;em&gt;Who, What, When, Where, Why, and How&lt;/em&gt;, ready for compliance export.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. What We Learned
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Graph Traversal Disarms Fraud Rings&lt;/strong&gt;: Individual transactions often look completely harmless in isolation (e.g. a \$50 online purchase). However, traversing the TigerGraph neighborhood reveals that the device fingerprint has been used across 110 other cards with prior fraud convictions. Graph context is irreplaceable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GraphRAG Beats Raw Prompting&lt;/strong&gt;: Indexing policy rules into a vector store and retrieving relevant clauses based on agent findings ensures that actions strictly conform to bank procedures without hallucinated policies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Approval Gating Builds Trust&lt;/strong&gt;: Analysts reject "black-box" decisions. By splitting recommendations into explicit approval tiers (&lt;code&gt;auto&lt;/code&gt;, &lt;code&gt;L1&lt;/code&gt;, &lt;code&gt;L2&lt;/code&gt;) with clear justifications, human teams remain in control while saving 90% of investigation time.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  6. What We Would Improve With More Time
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Real-time Streaming Graph Updates&lt;/strong&gt;: Ingesting Kafka transaction feeds directly into TigerGraph via continuous streaming loaders.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Graph Neural Network (GNN) Embeddings&lt;/strong&gt;: Incorporating TigerGraph Graph Convolutional Networks (GCN) to predict ring topologies before transactions even execute.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Voice-Interactive Analyst Copilot&lt;/strong&gt;: Adding a multimodal speech interface for analysts to interact with graph subgraphs in hands-free triage rooms.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automated Clearing House (ACH) Inter-Bank Network&lt;/strong&gt;: Expanding graph traversals across participating institutional graphs using privacy-preserving federated graph analytics.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Built with passion for the TigerGraph Agentic Fraud Investigation Hackathon.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>llm</category>
      <category>machinelearning</category>
    </item>
  </channel>
</rss>
