Skip to content
C

CapSpend

Instant AI-governed corporate purchasing over SMS

Created on 1st August 2026

•

C

CapSpend

Instant AI-governed corporate purchasing over SMS

The problem CapSpend solves

  • The Problem: Traditional corporate expense approvals are slow, manual, and rely on physical cards or exposed 16-digit card numbers vulnerable to overspending and theft.
  • How CapSpend Solves It: Employees text spending requests over SMS; CapSpend evaluates corporate governance via OpenAI, generates a single-use tokenized Visa virtual card via Prava upon 1-click biometric passkey approval, and completes settlement.
  • Why It Is Useful Today: Businesses get instant, fraud-proof purchasing with zero card number exposure, automated spend caps, and instant SMS receipts.
  • What We Plan to Build Next: Next, I plan to introduce autonomous negotiation capabilities so the buyer agents can automatically secure bulk discounts from sellers before finalizing the transaction. Automated accounting sync with ERPs (QuickBooks, Xero, NetSuite) and multi-currency global corporate spending limits.

Challenges I ran into

  1. Decoupling Webhook Handlers from Asynchronous Passkey Approval:

    • Issue: Linq webhooks expect immediate HTTP responses, but manager passkey authorization happens asynchronously on a mobile device.
    • Solution: We decoupled session polling into background tasks in PravaService.pollAndReportStatus(), allowing the webhook to return HTTP 200 immediately while asynchronously awaiting passkey token generation.
  2. Playwright Network Interception in Stagehand V3:

    • Issue: Stagehand V3 threw an InvalidArgumentError: Unsupported event: response when attaching event listeners directly to Stagehand's page wrapper.
    • Solution: We inspected the underlying Stagehand object and attached Playwright's page.on('response') listener directly to the raw Playwright page instance ((page as any).page), allowing us to capture real HTTP status codes and gateway payloads.
  3. Prava Sandbox Decline Verification:

    • Issue: Capturing the merchant sandbox decline without breaking the execution flow.
    • Solution: We captured the expected sandbox test card decline (card_declined) and reported txn_status: 'DECLINED' back to Prava's POST /v1/sessions/:id/report-status endpoint to prove end-to-end sandbox completion.

Tracks Applied (6)

Best Visa Intelligent Commerce Implementation

Full integration of Prava's payment session creation (POST /v1/sessions) with MCC 5734 (Computer Software Stores). 1-cli...Read More

Visa

Participation Credits (Already Claimed)

claimed and used.
OpenAI

OpenAI

OpenAI

Uses OpenAI (gpt-5.4-mini) to evaluate employee prompts against department thresholds in policy.md (Engineering $500, Ma...Read More
OpenAI

OpenAI

iMessage Agent

Integrates Linq Partner API V3 for bi-directional SMS intake with HMAC signature verification (X-Linq-Signature) and aut...Read More
Linq

Linq

Best Prava Adapter for the NANDA Town

Built a reusable Prava payment layer adapter (prava_adapter) registered under nest.plugins.payments for NANDA Town multi...Read More
Project Nanda

Project Nanda

Agentic Commerce Hackathon

CapSpend provides an end-to-end autonomous corporate procurement flow; from natural language SMS intake to AI policy eva...Read More

Cheer Project

Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

Discussion

Builders also viewed

See more projects on Devfolio