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.

Built With

Share this project:

Updates

posted an update —

NexusFlow AI Update: PayPal AI Hackathon Edition & Live Demo! We are thrilled to share the latest evolution of NexusFlow AI—our autonomous B2B treasury and invoicing engine built for the PayPal AI Hackathon! Over the past few weeks, the platform has grown from an initial agentic concept into a fully polished, production-ready system hosted live on Streamlit Cloud. What’s New in the Latest Release

  • Dark Glassmorphic Fintech UI: Redesigned the entire interface with an immersive, high-end dark mode aesthetic (#0e1117 background, gradient cards, and crisp typography) tailored for financial command centers.
  • Real-Time Liquidity & Risk Analytics: Integrated interactive Plotly area charts to visualize daily approved payouts versus blocked high-risk volume dynamically.
  • Multi-Agent Swarm Module: Automated vendor evaluation, transaction velocity scoring, and instant PayPal v1/v2 payout orchestration.
  • Disputes & Appeals Review Queue: Added intelligent guardrails allowing administrators to inspect, override, or force-settle flagged high-risk transactions.
  • Immutable Audit Ledger & CSV Export: Permanent cryptographic logging of every AI decision with a convenient one-click CSV compliance export button. Code Snippet: Interactive Plotly Liquidity Visualizer Here is a snippet of how we render real-time liquidity trends with Plotly inside our Streamlit dashboard (app.py): import streamlit as st import pandas as pd import plotly.express as px

Real-Time Liquidity & Risk Velocity Chart

chart_data = pd.DataFrame({ "Date": ["Nov 06", "Nov 07", "Nov 08", "Nov 09", "Nov 10", "Nov 11", "Nov 12"], "Approved Payouts ($)": [8200, 12500, 15400, 11200, 18900, 21400, 24500], "Blocked High-Risk Volume ($)": [1200, 4500, 800, 3100, 1500, 4200, 2100] })

fig = px.area( chart_data, x="Date", y=["Approved Payouts ($)", "Blocked High-Risk Volume ($)"], color_discrete_map={"Approved Payouts ($)": "#3b82f6", "Blocked High-Risk Volume ($)": "#ef4444"}, template="plotly_dark" ) fig.update_layout( paper_bgcolor='rgba(0,0,0,0)', plot_bgcolor='rgba(0,0,0,0)', margin=dict(l=20, r=20, t=20, b=20) ) st.plotly_chart(fig, use_container_width=True)

Watch the Demo & Test It Live!

  • Demo Video: Catch the full walkthrough on YouTube: NexusFlow AI - PayPal Hackathon Demo
  • Live App: Test the live deployment on Streamlit Cloud: NexusFlow AI Live App
  • Source Code: Explore the repository and documentation on GitHub: Masngo/nexusflow-ai Stay tuned for more updates as we finalize our submission! Let us know your thoughts or questions in the comments below.

Submission history