Inspiration
Cross-border B2B transactions are chronically plagued by high wire fees, painful manual reconciliation delays, and rigid compliance review bottlenecks. Modern finance teams waste countless hours manually validating invoices, checking risk thresholds, and processing payouts. We were inspired to build NexusFlow AI to completely automate corporate liquidity management—shifting the paradigm from human-driven bottlenecks to an autonomous, multi-agent treasury system that acts instantly and securely.
What it does
NexusFlow AI is an autonomous B2B treasury and invoicing engine powered by specialized AI agents. When a vendor submits an invoice, our multi-agent swarm instantly:
Evaluates Risk Vectors: Analyzes transaction velocity, payout limits, and historical entity reputation.
Performs Compliance Audits: Scans line items using automated natural language rules to flag invalid identifiers or policy violations.
Orchestrates Instant Disbursements: Seamlessly transitions approved funds using PayPal Sandbox APIs (v2 Checkout Orders for secure escrow and v1 Payouts for direct vendor disbursement).
Maintains Audit Readiness: Logs all actions to an immutable session ledger with one-click CSV compliance reporting and an administrator override queue for edge cases.
How we built it
Backend: Built a high-performance asynchronous API layer using FastAPI and Python to handle data validation, agent orchestration, and secure communication.
Frontend: Designed a dark-mode fintech glassmorphic command center using Streamlit, featuring high-contrast metric cards and official PayPal branding.
Payment Integration: Integrated the PayPal REST APIs (v2 Orders & v1 Payouts) via OAuth2 authentication to manage live sandbox transactions.
Version Control & Compliance: Configured robust local-to-remote deployment via Git/GitHub, complete with an open-source MIT license and automated audit logging.
Challenges we ran into
PayPal API Authentication Flow: Handling token refreshes and securely mapping sandbox credentials between asynchronous FastAPI endpoints required meticulous error handling.
Multi-Agent State Synchronization: Ensuring that the risk assessment agent, compliance auditor, and payment execution agent handed off transaction metadata smoothly without race conditions.
Git Remote Synchronization: Resolving non-fast-forward merge conflicts and strict branch tracking rules under a tight hackathon deadline.
Accomplishments that we're proud of
Successfully chaining multiple autonomous agents to make real-time financial decisions and trigger actual API-driven payouts.
Delivering a fully functional, production-ready dark-mode Streamlit interface that looks and feels like enterprise-grade financial software.
Building a complete, secure architecture complete with an immutable audit trail and open-source MIT compliance.
What we learned
The immense power of combining structured Python backend logic (FastAPI) with rapid, stateful data-app frontends (Streamlit) for fintech prototyping.
How critical robust error boundaries and manual review fallback queues (Disputes & Appeals) are when dealing with automated financial transactions and compliance logic.
What's next for NexusFlow AI
Multi-Currency Support: Expanding the engine to handle automated FX conversions and international localization via global payment rails.
Advanced LLM Guardrails: Integrating deeper LLM-driven anomaly detection to catch sophisticated invoice spoofing and fraud patterns.
Mainnet PayPal Production Integration: Scaling the sandbox deployment to a live production environment for enterprise beta testing.