Skip to content

omegapoint1/Liminal-AI-tools-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– AI Financial Agent

Next-generation financial assistant powered by Claude AI and real banking APIs

License Go React TypeScript

Quick Start β€’ Features β€’ API β€’ Examples β€’ Hackathon


🎯 Overview

This project creates a sophisticated AI financial agent that can handle real banking operations through natural conversation. Built with Go backend and React frontend, it combines the power of Claude AI with Liminal's stablecoin banking platform to deliver an intelligent, conversational financial assistant.

✨ What Makes It Special

  • 🧠 AI-Powered: Natural language understanding with Claude AI
  • πŸ’° Real Banking: Live operations via Liminal stablecoin platform
  • πŸ’¬ Conversational Interface: Beautiful chat widget with real-time responses
  • πŸ”§ Extensible: Easy to add custom financial tools and analytics
  • πŸ›‘οΈ Secure: JWT-based authentication, no API key exposure
  • ⚑ Real-time: WebSocket connections for instant communication

πŸš€ 5-Minute Quickstart

Prerequisites

  • Go 1.21+
  • Node.js 18+
  • Anthropic API key

Setup

# Clone and configure
git clone https://github.com/becomeliminal/nim-go-sdk.git
cd nim-go-sdk/examples/hackathon-starter
cp .env.example .env

# Add your Anthropic key to .env
echo "ANTHROPIC_API_KEY=sk-ant-your-key-here" >> .env

# Start backend
go mod tidy && go run main.go

# Start frontend (new terminal)
cd frontend && npm install && npm run dev

Visit http://localhost:5173 β†’ Click chat bubble β†’ Login with email β†’ Start chatting!


πŸ’Ž Features

🏦 Core Banking Operations

Operation Description Example
Balance Check View wallet & savings balances "What's my balance?"
Transaction History Browse recent transactions "Show my last 10 transactions"
Money Transfers Send/receive funds with confirmation "Send $50 to @alice"
Savings Management Deposit/withdraw from savings "Move $100 to savings"
User Search Find users by display tag "Search for @bob"

🧠 Intelligent Analytics

  • Spending Analysis - Pattern recognition and insights
  • Subscription Detection - Auto-identify recurring payments
  • Budget Tracking - Monitor spending against limits
  • Financial Health Scoring - Overall wellness assessment

🎨 User Experience

  • Natural Conversation - Chat like you would with a financial advisor
  • Smart Confirmations - Clear summaries before money movements
  • Real-time Updates - Instant WebSocket responses
  • Mobile Responsive - Works beautifully on all devices

πŸ› οΈ Architecture

graph TB
    A[React Frontend] --> B[WebSocket]
    B --> C[Go Backend Server]
    C --> D[Claude AI]
    C --> E[Liminal Banking APIs]
    C --> F[Custom Tools]
    
    style A fill:#61DAFB
    style C fill:#00ADD8
    style D fill:#FF6B6B
    style E fill:#4ECDC4
Loading

Tech Stack

  • Backend: Go 1.21+ with nim-go-sdk
  • Frontend: React 18 + TypeScript + Vite
  • AI: Claude via Anthropic API
  • Banking: Liminal stablecoin APIs
  • Real-time: WebSocket communication
  • Styling: Tailwind CSS

πŸ”§ Available Tools

πŸ“Š Read Operations (Instant)

get_balance()           // Wallet balance
get_savings_balance()    // Savings positions & APY
get_transactions()       // Transaction history
get_profile()           // User profile
search_users()          // Find users by tag
get_vault_rates()       // Current interest rates

πŸ’Έ Write Operations (Confirmation Required)

send_money()            // Send funds to users
deposit_savings()       // Add to savings
withdraw_savings()      // Remove from savings

πŸ€– Custom Analytics Tools

analyze_spending()      // Spending pattern analysis
analyze_subscriptions() // Recurring payment detection

πŸ’‘ Example Queries

πŸ’° Basic Banking

"What's my current balance?"
"How much do I have in savings?"
"Show me transactions from last week"

πŸ“Š Analytics & Insights

"Analyze my spending patterns over the last 30 days"
"What subscriptions am I paying for?"
"What's my average daily spending?"

πŸ’Έ Money Management

"Send $25 to @john for coffee"
"Move $200 from savings to wallet"
"Put $500 into high-yield savings"

🎯 Smart Assistant

"Am I on track with my budget?"
"Should I save more this month?"
"What's my financial health score?"


πŸ† Hackathon Project Ideas

🌟 Beginner Friendly

  1. Savings Goal Tracker - Track progress toward financial goals
  2. Spending Categorizer - Auto-categorize transactions
  3. Bill Reminder System - Alert before recurring payments

πŸš€ Intermediate

  1. Cash Flow Forecaster - Predict future balances
  2. Budget Optimization - Suggest spending improvements
  3. Investment Advisor - Recommend savings strategies

πŸ† Advanced

  1. AI Budget Coach - Learn patterns and provide personalized advice
  2. Tax Estimation Tool - Calculate tax obligations
  3. Peer Comparison System - Anonymous financial benchmarking

🎨 Adding Custom Tools

Create powerful financial tools with just a few lines of Go:

func createBudgetTrackerTool(liminalExecutor core.ToolExecutor) core.Tool {
    return tools.New("track_budget").
        Description("Track spending against budget limits").
        Schema(tools.ObjectSchema(map[string]interface{}{
            "category": tools.StringProperty("Budget category"),
            "limit": tools.NumberProperty("Budget limit"),
        })).
        Handler(func(ctx context.Context, toolParams *core.ToolParams) (*core.ToolResult, error) {
            // Your custom logic here
            return &core.ToolResult{Success: true, Data: insights}, nil
        }).
        Build()
}

Add to server with srv.AddTool(createBudgetTrackerTool(liminalExecutor))


πŸ› Troubleshooting

Common Issues

  • Backend won't start: Check ANTHROPIC_API_KEY in .env
  • WebSocket connection fails: Ensure backend running on port 8080
  • Liminal login issues: Check email for OTP code (including spam)
  • Module not found: Run npm install in frontend directory

Quick Fixes

# Reset everything
pkill -f "go run main.go"  # Kill backend
cd frontend && rm -rf node_modules package-lock.json  # Clean frontend
npm install  # Reinstall frontend deps
go mod tidy  # Clean Go deps
go run main.go  # Restart backend

πŸ“š Resources

Documentation

πŸ“„ License

MIT License - see LICENSE for details.


Built with πŸ’œ for the Liminal Vibe Banking Hackathon

πŸš€ Get Started β€’ πŸ’‘ Ideas β€’ πŸ“– Docs β€’ πŸ› Help

About

Ollie, Adam, Daniel, Ben

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors