Inspiration

Pakistan's electric two- and three-wheeler market is growing fast. Local e-bikes, loaders, and rickshaws (Evee, Yadea, Jolta, Metro, and others) are sold with almost no cloud connectivity, so riders have no live view of their battery, nearby charging, or grid conditions. At the same time, solar households that export midday surplus to the grid receive only Rs 8.13/kWh under NEPRA's 2026 net-billing rate, while nearby EV riders would pay far more for that same energy.

We asked a simple question: what if the rooftop that is wasting midday power could directly power the rider who needs it, and software could handle the negotiation?

What it does

VOLTI is an autonomous Solar-to-EV micro-grid broker built on a four-agent system:

  • Agent 0 (Orchestrator): Routes every request and logs each step.
  • Agent 1 (Vision & Urdu Triage): Reads a photo of a rider's dashboard or battery alongside an Urdu or Roman-Urdu voice request to extract state of charge, battery chemistry, connector type, and heat risk.
  • Agent 2 (Grid & Tariff Planner): Ranks nearby solar hosts, excludes any grid-tied host whose feeder has an outage within 90 minutes, and prioritizes hybrid solar-plus-battery hosts that continue operating during outages.
  • Agent 3 (Escrow & Safety Guardian): Locks payment in escrow, issues a 4-digit Smart Socket PIN, caps charging current at high ambient temperatures, and—if a feeder trips mid-session—refunds the unused escrow and books the nearest backup host automatically.

The application features four workspaces: Rider Dispatch, a Smart Socket digital twin with a one-click Simulate Feeder Outage control, a Solar Host Portal, and a Mission Control panel where judges can inspect every agent tool call, its latency in milliseconds, and its raw JSON output.

Unit Economics: Host payout is 85% of escrow and the platform fee is 15%. For a host charging Rs 26/kWh compared to NEPRA's Rs 8.13/kWh export rate:

$$\text{Host gain} = \frac{26 - 8.13}{8.13} \approx 2.20 \;\Rightarrow\; +220\%$$

Escrow reconciles deterministically across every session:

$$\text{Host Payout} + \text{Platform Fee} + \text{Refund} = \text{Total Escrow Locked}$$

How we built it

  • Google AI Studio & Antigravity: Scaffolded the application and multi-agent workflow.
  • Gemini 3 Flash: Powers multimodal input, function calling, and text-to-speech across all four agents, with the API key stored strictly server-side.
  • Supabase PostgreSQL: Stores data across five tables (solar_hosts, disco_feeders, rider_requests, escrow_sessions, and agent_execution_logs), seeded with hosts around Air University Multan (Gate 1, Gate 2, Bosan Road, Gulgasht, Buch Villas, and Northern Bypass).
  • React, TypeScript & Tailwind CSS: Power the frontend interface, custom SVG micro-grid radar map, and live telemetry charts.
  • Live Deployment: Hosted online at voltiev.vercel.app.

Challenges we faced

  • Heat and battery safety: At 42–47°C in Multan, charging at full current creates a thermal hazard. Agent 3 enforces a current cap directly in server code—not just in the prompt—so safety guardrails cannot be bypassed.
  • Reliable live demos: Every Gemini and database call includes timeouts, retries, and graceful degradation to seeded local data with a clear fallback indicator so the app never crashes during evaluation.
  • Rider accessibility: Riders cannot easily type long English forms on the road. VOLTI accepts Urdu and Roman-Urdu voice input, speaks the dispatch brief back in Urdu, displays an on-screen transcript, and uses a high-contrast theme readable under midday glare.
  • Dynamic grid conditions: Feeder outage schedules shift frequently, requiring real-time checks at dispatch time rather than static lookups.

What we learned

Autonomous agents are only trustworthy when every decision is transparent and auditable. Logging every tool call with its latency and structured output turned the system from a black-box demo into something judges can inspect step by step. We also reinforced that hard safety constraints belong in deterministic code, not solely in model prompts.

What's next

  • Connect physical smart-socket hardware matching our digital twin interface.
  • Integrate local mobile payment gateways for automated rider settlement and host payouts.
  • Expand micro-grid coverage from Multan to Lahore and Islamabad using the same multi-agent architecture.

Built by

Ahmad Rayan Qasim — BSCS, Air University Multan Campus (https://ahmadrayanqasim.vercel.app/)

Built With

Share this project:

Updates

Submission history