DEMO MODE
This is a demo. Its data may be reset from time to time.
Sandbox

AI Agent Framework

The framework lets AI agents work with banking data and operations. It includes agents, workflows, a tool registry and a Model Context Protocol server. Every agent action is recorded as an event.

What the Framework Includes

The framework connects large language models to banking workflows. Each step is recorded, and risky steps can wait for a person to approve them.

Several Model Providers

The framework has providers for OpenAI and Anthropic Claude. If the primary provider fails, the request goes to the fallback provider.

These are integration adapters for third-party APIs. No partnership or endorsement is implied.

OpenAI Claude Custom Providers

Event-Sourced Architecture

Every AI interaction is stored as an event. The record helps with audits, debugging and later analysis.

Audit Trail Compliance Analytics

Workflows

A workflow runs several steps in order. A step can ask a model for a decision or wait for a person to approve it, and a failed step undoes the earlier ones.

Sagas Activities Compensation

Semantic Search

The framework includes a Pinecone adapter for a vector database. It stores text embeddings and finds texts with a similar meaning.

This is an integration adapter for a third-party API. No partnership or endorsement is implied.

Pinecone Embeddings Similarity Search

Streaming and Limits

The Claude provider can stream an answer while the model writes it. Redis caching and rate limits keep the load on the model providers under control.

Streaming Redis Cache Rate Limits

Traceable Decisions

Each AI decision is stored with its reasoning and a confidence score. A reviewer can see later how the decision was made.

Reasoning Explainable Confidence Scores

Architecture

The framework uses domain-driven design, event sourcing and sagas. These patterns keep long multi-step operations consistent.

System Architecture

1

API Layer

Apps and agents reach the framework through the REST API.

2

AI Orchestration Layer

This layer sends each request to the primary model provider. It switches to the fallback provider when the first one fails.

3

Event Store

Every AI interaction and decision is stored as an event that cannot be changed.

4

Vector Database

The vector database adapter stores embeddings for semantic search.

Technology Stack

AI & Machine Learning

OpenAI Integration Anthropic Claude Model Context Protocol Vector Store

Infrastructure

Laravel Redis PostgreSQL Event Sourcing

Orchestration

Laravel Workflow Sagas Activities Child Workflows

Monitoring & Security

Horizon OpenTelemetry Encryption Rate Limiting

Implemented AI Workflows

These reference workflows use event sourcing, sagas and the tool registry.

Customer Service Workflow

CustomerServiceWorkflow answers banking questions with the help of the tools. When the model is not confident enough, it asks a person to approve the answer.

  • Automated answers
  • Intent recognition
  • Hand-over to a person

Risk Assessment Saga

RiskAssessmentSaga runs FraudDetectionWorkflow and CreditRiskWorkflow. If a step fails, the saga undoes the earlier steps.

  • Fraud detection workflows
  • Identity and anti-money laundering checks
  • Risk scoring models

Trading Agent Workflow

TradingAgentWorkflow analyses the market with technical indicators and generates a strategy. It executes a trade only when the confidence is high enough.

  • Relative strength index and moving average convergence divergence
  • Momentum and mean reversion strategies
  • Value at risk calculation

Compliance Workflow

ComplianceWorkflow runs identity checks and anti-money laundering screening through the tools. It records each step for the audit trail.

  • KycTool for identity checks
  • AmlScreeningTool for anti-money laundering screening
  • Audit trail generation

Try It Live

The demo shows an AI agent working on test data.

Talk to the Demo Agent

The demo shows how an AI agent handles common banking requests. You can ask about balances, transactions and transfers.

Natural Language

You can write in plain language.

Context

The agent recognises what you ask for.

Tools

The agent answers with the banking tools.

Open the Demo

The demo uses test data. You do not need to sign in.

More Capabilities

These parts of the framework handle more complex operations.

Multi-Agent Coordination

The coordination service runs several agents on one task. When their answers differ, it settles the conflict with a vote weighted by each agent's confidence.

  • • Agent registry and discovery
  • • Task delegation
  • • Consensus building

Human-in-the-Loop

HumanInTheLoopWorkflow sends a decision to a person when the confidence is too low or the amount is too high. Both limits can be configured.

  • • Confidence thresholds
  • • Value-based escalation
  • • Approval workflows

Tool Registry

The tool registry holds 24 banking tools for the platform's own agents. The public Model Context Protocol catalog has 14 tools for outside agents. On the public server at mcp.zelta.app, the tools that move money inside the platform are switched off.

  • • Account and balance tools
  • • Transaction tools
  • • Identity and anti-money laundering tools

AI Event Sourcing

AIInteractionAggregate records every request to a language model and every answer. The records form an audit trail for reviews and analytics.

Each request and answer is stored as an event. Reviewers can trace every decision later.

Technical Analysis

Workflow activities calculate technical indicators and recognise price patterns. Other activities generate trading strategies from the results.

  • • CalculateRSIActivity
  • • CalculateMACDActivity
  • • CalculateVaRActivity

Saga Pattern

A saga runs a long operation as a series of steps. When a step fails, compensation handlers undo the earlier steps, so the data stays consistent.

Model Context Protocol (MCP)

The Model Context Protocol is an open standard. It lets an AI model use banking tools through one common interface.

How MCP Works

1. Tool Discovery

An agent asks the server for its list of tools. The list covers account operations, payments, transactions and exchange quotes.

2. Resources

The server also offers resources, such as the user's profile, balances and recent transactions. The agent sees only what the user's token allows.

3. Tool Execution

The agent then calls a tool. The server checks the input, the token scope and the spending limit before it runs the tool, and it logs the call.

4. Result

The tool returns a structured result. The agent uses it to answer the user.

Tools in the Registry

Account Management

account.balance, account.create, account.deposit, account.withdraw

Payments and Transactions

payment.transfer, payment.status, transactions.query, transactions.spending_analysis

Compliance

compliance.kyc, compliance.aml_screening

Agent Payments

agent_protocol.payment, agent_protocol.escrow, agent_protocol.mandate, x402.payment, mpp.payment

Exchange

exchange.quote, exchange.trade, exchange.liquidity_pool

On the public server, every tool call needs an OAuth token with the right scope. Calls are rate limited and logged.

MCP Tool Implementation Example

// MCP Tool Definition
{
  "name": "account.balance",
  "description": "Retrieve the current balance for a user's account",
  "parameters": {
    "account_id": {
      "type": "string",
      "description": "The account identifier",
      "required": true
    },
    "currency": {
      "type": "string",
      "description": "Currency code (USD, EUR, GCU)",
      "default": "USD"
    }
  },
  "returns": {
    "balance": "number",
    "currency": "string",
    "available": "number",
    "pending": "number"
  }
}

Integration

This example sends one message to the AI agent service.

// Resolve the AI agent service
$agent = app(AIAgentService::class);

// Send a message to the AI agent
$response = $agent->chat(
    message: 'Analyze my spending patterns',
    conversationId: (string) Str::uuid(),
    userId: auth()->id(),
);

// The response holds the answer, a confidence score and the tools used
echo $response['content'];
echo $response['confidence'];

Try the AI Framework

Create a free sandbox account to try the agents on test data. You can also email us with questions.