> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gu1.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Transaction Monitoring

> Real-time fraud detection, AML compliance, and transaction analysis — in the gu1 transaction monitoring product for fraud and AML, with examples for overview.

## Introduction

Transaction monitoring is gu1's core capability for analyzing financial transactions in real-time. Our system allows you to detect fraud, ensure AML compliance, apply transaction limits, and identify suspicious patterns before they become major problems.

## Key Features

<CardGroup cols={2}>
  <Card title="Real-Time Analysis" icon="bolt">
    Analyze transactions in \< 500ms with instant decisions
  </Card>

  <Card title="Flexible Rules Engine" icon="sliders">
    Create custom rules with sync and async execution modes
  </Card>

  <Card title="Intelligent Alerts" icon="bell">
    Automatic alert consolidation into actionable investigations
  </Card>

  <Card title="Multi-Currency" icon="globe">
    Native support for 150+ currencies with automatic conversion
  </Card>

  <Card title="Entity Resolution" icon="link">
    Automatic linking of entities (users, merchants, accounts)
  </Card>

  <Card title="Compliance" icon="shield-check">
    Built-in compliance with AML/CFT regulations
  </Card>
</CardGroup>

## Use Cases

### 1. Real-Time Fraud Detection

Detect and block fraudulent transactions before they're processed:

* Card testing
* Account takeover
* Impossible travel
* Transaction velocity patterns
* High-risk geographies

[Learn more about fraud detection →](/en/use-cases/transaction-monitoring/fraud-detection)

### 2. AML Monitoring

Ensure compliance with anti-money laundering regulations:

* Structuring (Smurfing)
* Layering patterns
* High-risk countries (FATF)
* PEPs (Politically Exposed Persons)
* Large transaction reporting

[Learn more about AML monitoring →](/en/use-cases/transaction-monitoring/aml-monitoring)

### 3. Transaction Limits

Enforce daily, weekly, and monthly limits:

* Per-user limits
* Per-merchant limits
* By transaction type
* By geography
* Dynamic limits based on risk

### 4. Suspicious Patterns

Detect complex behavioral patterns:

* Unusual transaction frequency
* Atypical amounts
* Geographic anomalies
* Changes in transaction behavior
* Correlation between multiple entities

### 5. Merchant Monitoring

For acquirers and sub-acquirers:

* Chargeback monitoring
* Merchant fraud
* Phishing detection
* Compliance with terms
* Transaction velocity spikes

[Learn more about merchant monitoring →](/en/use-cases/transaction-monitoring/merchant-monitoring)

## System Architecture

```mermaid theme={null}
sequenceDiagram
    participant Client as Your System
    participant API as gu1 API
    participant Rules as Rules Engine
    participant Alerts as Alert System
    participant Intel as Intelligence

    Client->>API: POST /transaction/analyze
    API->>API: Validate payload
    API->>API: Resolve origin/destination entities
    API->>API: Currency conversion (if applicable)
    API->>API: Create transaction entity
    API->>Rules: Execute SYNC rules
    Rules->>Rules: Evaluate conditions
    Rules-->>Alerts: Generate alerts (if applicable)
    Alerts-->>Intel: Consolidate into investigation
    Rules->>API: Return decision
    API->>Client: Response (APPROVE/REJECT/HOLD)
```

## Transaction Processing Flow

### Step 1: Validation

The system validates the transaction payload against strict schemas ensuring all required fields are present and correctly formatted.

### Step 2: Entity Resolution

Origin and destination entities are resolved or created. This allows tracking transaction history and behavioral patterns.

### Step 3: Currency Conversion

If the transaction is in a different currency than your base currency, automatic conversion is performed using real-time rates.

### Step 4: Transaction Entity Creation

A transaction entity is created in the system with all relevant information including metadata, device data, and entity relationships.

### Step 5: Sync Rules Execution

**Synchronous rules** are executed that can affect the transaction decision in real-time. These rules can:

* Approve the transaction
* Reject it
* Put it on hold for review
* Require additional authentication

### Step 6: Async Rules Execution

**Asynchronous rules** are executed in parallel. These rules:

* Don't affect the transaction decision
* Generate alerts for monitoring
* Are used for pattern analysis
* Feed the Intelligence Dashboard

### Step 7: Response

The system returns a complete response including:

* Decision (APPROVE, REJECT, HOLD, etc.)
* Risk score
* Alerts generated
* Recommended actions
* Execution metadata

## Sync vs Async Rules

### Synchronous Rules

**When to use:**

* Need to block transactions in real-time
* Enforce hard limits (amounts, frequency)
* Detect critical fraud patterns
* Regulatory requirements that prohibit transaction

**Characteristics:**

* Execute during API call
* Affect transaction decision
* Return in API response
* Performance target: \< 100ms per rule

**Example use case:**

```
If transaction amount > $10,000 AND user is unverified
Then REJECT transaction
```

### Asynchronous Rules

**When to use:**

* Pattern monitoring and analysis
* Alerts that don't require immediate action
* Complex aggregations over time
* Suspicious behavior detection

**Characteristics:**

* Execute in parallel
* Don't affect transaction
* Only appear in dashboard
* Can perform complex queries

**Example use case:**

```
If user has > 10 transactions in last hour
Then generate MEDIUM severity alert
```

## Alert Generation and Consolidation

### How Alerts Are Generated

Alerts are generated when:

1. A rule is configured with `generate_alert` action
2. The rule conditions are met
3. The alert is created with specified severity

### Automatic Consolidation

gu1's consolidation engine automatically:

* Groups related alerts into investigations
* Identifies patterns across multiple alerts
* Prioritizes based on severity and frequency
* Assigns to appropriate teams

### Integration with Intelligence

All alerts flow directly into the Intelligence Dashboard where:

* Teams can collaborate on investigations
* Complete context is available (entity history, related transactions)
* Actions can be taken (accept, escalate, mark false positive)
* Audit trail is automatically maintained

## Next Steps

<CardGroup cols={2}>
  <Card title="API Reference" icon="code" href="/en/use-cases/transaction-monitoring/api-reference">
    Complete endpoint documentation
  </Card>

  <Card title="Rules Configuration" icon="sliders" href="/en/use-cases/transaction-monitoring/rules-configuration">
    Learn to create and configure rules
  </Card>

  <Card title="Fraud Detection" icon="shield" href="/en/use-cases/transaction-monitoring/fraud-detection">
    Protect against fraud in real-time
  </Card>

  <Card title="AML Monitoring" icon="building-columns" href="/en/use-cases/transaction-monitoring/aml-monitoring">
    Regulatory compliance and money laundering detection
  </Card>
</CardGroup>
