<?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: Versus</title>
    <description>The latest articles on DEV Community by Versus (@versusai).</description>
    <link>https://dev.to/versusai</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%2F1406935%2Fe5888ca0-a10e-409a-baf2-600fda57a656.png</url>
      <title>DEV Community: Versus</title>
      <link>https://dev.to/versusai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/versusai"/>
    <language>en</language>
    <item>
      <title>Building an Autonomous Fraud Investigation Agent with TigerGraph and Gemini</title>
      <dc:creator>Versus</dc:creator>
      <pubDate>Thu, 24 Sep 2026 18:38:15 +0000</pubDate>
      <link>https://dev.to/versusai/building-an-autonomous-fraud-investigation-agent-with-tigergraph-and-gemini-2cna</link>
      <guid>https://dev.to/versusai/building-an-autonomous-fraud-investigation-agent-with-tigergraph-and-gemini-2cna</guid>
      <description>&lt;h1&gt;
  
  
  Building an Autonomous Fraud Investigation Agent with TigerGraph and Gemini
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Live Demo:&lt;/strong&gt; &lt;a href="https://fraud-investigationvajra.streamlit.app/" rel="noopener noreferrer"&gt;fraud-investigationvajra.streamlit.app&lt;/a&gt;&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Source Code:&lt;/strong&gt; &lt;a href="https://github.com/HellblazerVersus/tigergraph-fraud-investigation" rel="noopener noreferrer"&gt;GitHub Repository&lt;/a&gt;&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Team:&lt;/strong&gt; Team Vajra · Hacker House Goa 2026&lt;/p&gt;
&lt;/blockquote&gt;




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

&lt;p&gt;Modern payment fraud is rarely an isolated incident. Sophisticated criminal syndicates coordinate across card-testing sequences, device-sharing rings, and out-of-region velocity spikes. &lt;/p&gt;

&lt;p&gt;Traditional payment fraud detection relies on flat relational databases and isolated machine learning risk scores. When an alert flags, human fraud analysts spend 30 to 45 minutes manually copying card numbers, device fingerprints, and billing addresses across disconnected SQL tables.&lt;/p&gt;

&lt;p&gt;At &lt;strong&gt;Hacker House Goa 2026&lt;/strong&gt;, &lt;strong&gt;Team Vajra&lt;/strong&gt; built the &lt;strong&gt;Autonomous Agentic Fraud Investigation System&lt;/strong&gt;:&lt;br&gt;
An end-to-end agentic workflow that connects &lt;strong&gt;TigerGraph Community Edition 4.2.5&lt;/strong&gt;, the &lt;strong&gt;Model Context Protocol (MCP 2.2.0)&lt;/strong&gt;, &lt;strong&gt;LangGraph&lt;/strong&gt;, and &lt;strong&gt;Google Gemini 2.5 Flash Lite&lt;/strong&gt; to investigate transaction alerts, traverse multi-hop graph neighborhoods, evaluate bank governance policies, and file regulatory Suspicious Activity Reports (SARs) in under 2 seconds.&lt;/p&gt;


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

&lt;p&gt;Our solution combines high-throughput graph analytics with deterministic agent orchestration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Trigger Alert ──► TigerGraph Subgraph Traversal ──► GraphRAG Case Memory
                                                           │
   ┌───────────────────────────────────────────────────────┘
   ▼
Gemini 2.5 Flash Synthesis &amp;amp; Policy Evaluation (Rules R1–R10)
   │
   ├─► Dual-Phase Next-Best Actions (Before vs. After Graph Evidence)
   ├─► Automated FinCEN Suspicious Activity Report (SAR) Generation
   └─► Upsert Resolved Investigation to TigerGraph FraudCase Vertex
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Core Technology Stack:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;TigerGraph CE 4.2.5:&lt;/strong&gt; High-performance graph database containing ~590,000 transactions, 14,000 cards, and 9,700 device profiles from the IEEE-CIS benchmark dataset.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TigerGraph MCP Server (MCP 2.2.0):&lt;/strong&gt; Standardized Model Context Protocol server exposing parameterized GSQL queries and topological traversals as callable tools for AI agents.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LangGraph State Machine:&lt;/strong&gt; Multi-stage cyclic graph orchestrating evidence gathering, uncertainty assessment, dual-phase actions, and graph persistence.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Google Gemini 2.5 Flash Lite:&lt;/strong&gt; Fast reasoning LLM synthesizing graph facts into grounded analyst summaries and regulatory narratives.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Streamlit 1.64:&lt;/strong&gt; Visual analyst dashboard featuring executive KPIs, interactive schema design, and live case review.&lt;/li&gt;
&lt;/ol&gt;




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

&lt;p&gt;Relational databases struggle with deep multi-hop joins. In contrast, TigerGraph’s native parallel graph architecture allowed our agent to traverse complex fraud topologies in sub-milliseconds.&lt;/p&gt;

&lt;h3&gt;
  
  
  Graph Schema (10 Vertices &amp;amp; 18 Edges):
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Core Entities:&lt;/strong&gt; &lt;code&gt;Customer&lt;/code&gt;, &lt;code&gt;Card&lt;/code&gt;, &lt;code&gt;Transaction&lt;/code&gt;, &lt;code&gt;DeviceProfile&lt;/code&gt;, &lt;code&gt;EmailDomain&lt;/code&gt;, &lt;code&gt;BillingRegion&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Topological 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)-[: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; &lt;em&gt;(temporal velocity chain)&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memory &amp;amp; Compliance Vertices:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;ClosedCase&lt;/code&gt;: Over 5,500 historical cases indexed for GraphRAG memory retrieval.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;FraudCase&lt;/code&gt;: Dynamic vertex where live agent investigation outcomes are written back to graph storage.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;PolicyDocument&lt;/code&gt; &amp;amp; &lt;code&gt;FraudPattern&lt;/code&gt;: Bank compliance rules R1 to R10.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Key GSQL Analytical Queries:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;graph_txn_subgraph&lt;/code&gt;: Traverses 1-hop neighborhood of a flagged transaction (card, device, billing location).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;graph_card_window&lt;/code&gt;: Aggregates 48-hour card velocity to catch rapid transaction spikes.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;graph_card_testing_check&lt;/code&gt;: Detects low-value authorizations (&amp;lt; $5.00) preceding large fraudulent charges.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;graph_device_neighbors&lt;/code&gt;: Traverses shared device profiles to detect multi-card fraud rings operating from the same hardware.&lt;/li&gt;
&lt;/ul&gt;




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

&lt;h3&gt;
  
  
  1. Dual-Phase Next-Best Actions
&lt;/h3&gt;

&lt;p&gt;The agent records what action it recommended &lt;em&gt;before&lt;/em&gt; graph evidence (e.g., &lt;code&gt;VERIFY_WITH_CUSTOMER&lt;/code&gt;) and transparently documents why and how that action pivoted (e.g., to &lt;code&gt;BLOCK_ALL_CARDS&lt;/code&gt; and &lt;code&gt;L2_MANAGER_ESCALATION&lt;/code&gt;) after uncovering a shared-device fraud ring.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Automated FinCEN SAR Filing
&lt;/h3&gt;

&lt;p&gt;If suspicious financial exposure exceeds $1,000 or organized rings are uncovered, the agent auto-drafts a complete Suspicious Activity Report (SAR) narrative with subject names, timestamps, and regulatory justifications.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Continuous Graph Memory Persistence
&lt;/h3&gt;

&lt;p&gt;100% of investigated cases are upserted into TigerGraph as &lt;code&gt;FraudCase&lt;/code&gt; vertices, allowing subsequent investigations to leverage past case knowledge without model retraining.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. Benchmark Results Across 20 Cases
&lt;/h2&gt;

&lt;p&gt;We evaluated our system against all 20 complex benchmark cases (&lt;code&gt;HHG-001&lt;/code&gt; through &lt;code&gt;HHG-020&lt;/code&gt;):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total Cases Investigated&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;20 / 20 (100% Complete)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Confirmed Fraud Caught&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;15 cases (75%)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Legitimate Activity Cleared&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;3 cases (15%)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Uncertain (Step-up Auth)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;2 cases (10%)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Average End-to-End Latency&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1.84 seconds per case&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Average Graph Tool Invocations&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;4.2 calls per investigation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Regulatory SARs Generated&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;12 reports&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Graph Case Memory Upsert&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;100% retention in TigerGraph&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  6. Real-World Case Walkthrough: HHG-002
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Trigger:&lt;/strong&gt; Single \$280 online transaction flagged by an ML risk score of &lt;code&gt;0.92&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Graph Traversal:&lt;/strong&gt; &lt;code&gt;graph_txn_subgraph&lt;/code&gt; revealed that transaction &lt;code&gt;3514030&lt;/code&gt; originated from device &lt;code&gt;DBD75C3985A&lt;/code&gt;. Next, &lt;code&gt;graph_device_neighbors&lt;/code&gt; traversed edges to discover that device &lt;code&gt;DBD75C3985A&lt;/code&gt; was simultaneously active across &lt;strong&gt;3 different customer accounts&lt;/strong&gt; in a 24-hour window.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agent Decision:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Verdict:&lt;/strong&gt; &lt;code&gt;CONFIRMED FRAUD&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pattern:&lt;/strong&gt; &lt;code&gt;card_not_present_new_device&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Exposure Identified:&lt;/strong&gt; \$1,480.00&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SAR Filed:&lt;/strong&gt; Yes — Automated narrative generated and assigned for L2 sign-off.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Graph Persisted:&lt;/strong&gt; Yes — Upserted to TigerGraph vertex &lt;code&gt;FraudCase:HHG-002&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  7. Links &amp;amp; Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;🌐 &lt;strong&gt;Live Interactive App:&lt;/strong&gt; &lt;a href="https://fraud-investigationvajra.streamlit.app/" rel="noopener noreferrer"&gt;https://fraud-investigationvajra.streamlit.app/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;💻 &lt;strong&gt;GitHub Codebase:&lt;/strong&gt; &lt;a href="https://github.com/HellblazerVersus/tigergraph-fraud-investigation" rel="noopener noreferrer"&gt;https://github.com/HellblazerVersus/tigergraph-fraud-investigation&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Built with ❤️ by Team Vajra for Hacker House Goa 2026. Special thanks to TigerGraph and Google Cloud.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>tigergraph</category>
      <category>graphdatabase</category>
      <category>python</category>
    </item>
  </channel>
</rss>
