AbabilPay includes an AI agent layer built around Claude, LangChain-style orchestration, Supabase data, Circle actions, and pgvector memory. Agents react to product events, write audit logs, and communicate through email or push notifications.Documentation Index
Fetch the complete documentation index at: https://docs.ababilpay.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Architecture
The Orchestrator Agent receives events from Supabase Edge Functions and routes work to specialized agents. Each agent can use scoped tools for Supabase reads and writes, Circle API actions, Resend email, and push notifications.Agent roster
| Agent | Responsibility | Example actions |
|---|---|---|
| Orchestrator | Event routing and task coordination | Receives webhook events, chooses sub-agent, handles retries, logs decisions. |
| Auto-Convert Agent | Swap executor for non-USDC deposits | Fetches quotes, enforces slippage, executes swap, notifies user. |
| Invoice Follow-Up Agent | Invoice reminder and collection workflow | Sends due-date reminders, marks overdue invoices, drafts personalized follow-ups. |
| Fraud Detection Agent | Real-time anomaly and risk detection | Flags unusual amounts, detects new destination wallets, can hold suspicious transfers. |
| Insights and Forecast Agent | Merchant analytics and cash-flow forecasting | Weekly revenue emails, 30-day forecasts, customer trend detection. |
| Bridge Route Agent | Cross-chain route selection | Fetches gas data, estimates route cost, selects cheapest route that satisfies timing. |
Agent memory
Agents store reusable context as vector embeddings in theagent_memory table. This enables semantic search over transaction patterns, merchant history, and prior decisions without sending long histories to the model every time.
Auditability
Every agent action should be written toagent_logs with the agent type, action, input context, result, optional risk score, and timestamp. This keeps automated payment operations inspectable for support, compliance review, and product debugging.