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

# Use Cases

> Real-world autonomous organization patterns built on Amrood

# Use Cases

Amrood is a **financial layer** — not a framework. It works with any AI framework (LangChain, CrewAI, AutoGen, custom) and any protocol (Google A2A, ONDC). These are patterns for building real autonomous organizations.

## Autonomous Legal Aid (436A Organization)

An AI agent collective that helps people get bail under Section 436A of CrPC.

```mermaid theme={null}
flowchart TD
    T["Treasury Agent<br/>Funded by donations/grants"] --> Intake["Intake Agent<br/>Screens cases, collects details"]
    T --> Legal["Legal Research Agent<br/>Pulls case law, precedents"]
    T --> Doc["Document Agent<br/>Drafts bail applications"]
    T --> Filing["Filing Agent<br/>Pays court fees, e-filing"]
    Intake -->|"Pays for ID verification"| KYC["Verification API"]
    Legal -->|"Pays for legal DB access"| LegalDB["Legal Database Agent"]
    Doc -->|"Pays for translation"| Translator["Translation Agent"]
    Filing -->|"Pays court fees"| Court["Court e-Filing"]
```

### How It Works

1. **Intake Agent** receives a case request, verifies identity via Amrood's verification APIs
2. **Legal Research Agent** pays for access to legal databases and AI-powered case law search
3. **Document Agent** drafts the bail application, pays for translation if needed
4. **Filing Agent** pays court fees and handles e-filing
5. **Treasury Agent** manages the shared budget, all spending within policy limits

### Amrood Features Used

* **Organizations** — group all agents under one org with shared treasury
* **Budget allocation** — each agent gets a spending envelope
* **Escrow** — hold funds for court fees until filing confirmed
* **Certificates** — each agent has verifiable identity for court systems
* **Policy engine** — spending limits prevent budget overruns

***

## Autonomous Trading Organization

A collective of AI agents that monitors prices, manages inventory, and executes buy/sell orders for goods and commodities.

```mermaid theme={null}
flowchart TD
    T["Treasury Agent<br/>Working capital: ₹5,00,000"] --> Monitor["Price Monitor Agent<br/>Tracks 50+ commodities"]
    T --> Buyer["Buyer Agent<br/>Places purchase orders"]
    T --> Seller["Seller Agent<br/>Lists on marketplaces"]
    T --> Logistics["Logistics Agent<br/>Books transport"]
    Monitor -->|"Pays for market data"| DataAPI["Market Data Agent"]
    Buyer -->|"Pays suppliers"| Supplier["Supplier Agents"]
    Seller -->|"Receives from buyers"| Marketplace["Marketplace Buyers"]
    Logistics -->|"Pays for shipping"| Shipper["Shipping Agent"]
```

### How It Works

1. **Price Monitor** pays for real-time market data feeds
2. When spread is profitable, **Buyer Agent** places orders with supplier agents
3. **Seller Agent** lists on marketplaces, receives payments from buyer agents
4. **Logistics Agent** books transport and pays shipping agents
5. All transactions are within budget, with escrow for large orders

### Amrood Features Used

* **Agent-to-agent payments** — real INR transfers between agents across organizations
* **Escrow with attestation** — large orders held in escrow until delivery confirmed by logistics agent
* **Risk monitoring** — detects unusual trading patterns automatically
* **Receipts** — cryptographically signed receipts for every transaction

***

## Multi-Agent SaaS Platform

A platform where AI agents offer paid services to other agents.

### Example: Content Pipeline

```mermaid theme={null}
sequenceDiagram
    participant Client as Client Agent
    participant Writer as Writer Agent
    participant Editor as Editor Agent
    participant Publisher as Publisher Agent

    Client->>Writer: Pay ₹500 for article
    Writer->>Editor: Pay ₹200 for editing
    Editor->>Publisher: Pay ₹100 for publishing
    Publisher-->>Client: Article live
```

Each agent is independently owned, KYC'd, and policy-controlled. Amrood handles the financial plumbing.

***

## API Monetization with HTTP 402

Any developer can monetize their API using Amrood's [x402-style paywall](/payments/x402-paywall). AI agents pay per-call in INR, automatically.

```mermaid theme={null}
sequenceDiagram
    participant Agent as AI Agent
    participant API as Paywalled API
    participant Amrood as Amrood

    Agent->>API: GET /premium-data
    API-->>Agent: 402 Payment Required (₹5 to @databot)
    Agent->>Amrood: Pay ₹5 to @databot
    Amrood-->>Agent: Transaction ID
    Agent->>API: GET /premium-data (with payment proof)
    API->>Amrood: Verify payment
    API-->>Agent: 200 OK (premium data)
```

***

## ONDC-Connected Commerce

Agents that participate in India's Open Network for Digital Commerce.

* **Buyer Agent** — discovers products on ONDC, negotiates, pays
* **Seller Agent** — lists inventory, receives orders, gets paid
* **Logistics Agent** — handles delivery confirmation

Amrood provides the settlement layer while ONDC handles discovery and catalog.

***

## Building Your Own

Every use case follows the same pattern:

1. **Create an organization** with a treasury agent
2. **Add worker agents** with specific roles and budgets
3. **Set policies** — spending limits, escrow thresholds, approval rules
4. **Connect to your AI framework** — LangChain, CrewAI, AutoGen, Claude, or custom
5. **Let agents transact** — Amrood handles KYC, compliance, and settlement

All of these projects can be built as **independent, forkable repositories** that use Amrood as their financial backbone.
