Published

Feb 24, 2026

Category

Developer

Building ZapVoice a Lightning Invoicing App with Replit Agent

Learn how Replit Agent can build custom software tailored to your workflow, with instant bitcoin payments using the Alby Agent Skill.

AI Makes Custom Software Affordable

For decades, software has followed a one-size-fits-all model. You pick a SaaS product, adapt your workflow to its features, and live with the trade-offs. Need invoicing? Here are 200 fields you'll never use. Want bitcoin payments? Good luck finding that checkbox.

AI changes this equation entirely. Instead of bending your workflow to fit existing software, you can now describe exactly what you need and have an AI agent build it. A freelance designer who invoices in three currencies and wants bitcoin payments doesn't need to compromise anymore. They describe their workflow, and the AI builds software that fits the use case.

ZapVoice is a perfect example. It's a invoicing tool built specifically for freelancers and small businesses who want to get paid in bitcoin over the lightning network. It wasn't pulled from a template. It was built from a conversation, shaped by specific needs: A clean dashboard with real revenue stats, shareable payment links where clients scan a QR code and pay instantly. Every detail was chosen, not defaulted.

This is the new reality. Software that used to require a dev team and months of work can now be built in a single session. Not dumbed-down prototypes, but full-stack applications with databases, APIs, real-time payment processing, and polished UIs.

What ZapVoice Does

ZapVoice is a complete invoicing platform with a specific twist: payments settle over bitcoin's lightning network.

Here's the workflow: You set up your business profile, add your clients, and create invoices with itemized line items, taxes, and discounts. Each invoice gets a unique shareable link. When your client opens that link, they see a clean payment page with a QR code. They scan it with any lightning wallet, confirm, and the payment settles in seconds. No bank intermediaries. No 3-5 business day waiting periods. No 2.9% + 30 cent processing fees.

The application includes:

  • Dashboard with real-time stats: total revenue, outstanding amounts, paid invoice count, and wallet balance

  • Invoice Builder with line items, tax rates, currency selection, and automatic fiat-to-sats conversion

  • Client Management for organizing your customer base

  • Settings for configuring your business profile and connecting your lightning wallet via Nostr Wallet Connect (NWC)

  • Public Payment Pages where clients pay by scanning a lightning QR code

Why Bitcoin Lightning Is Perfect for Global Workers

The global freelance economy has a payments problem. A designer in Lagos working for a startup in Berlin shouldn't need to wait five days and lose 5-8% of their invoice to wire fees and currency conversion. A developer in Buenos Aires shouldn't have their payment frozen because a compliance algorithm flagged a routine international transfer.

Bitcoin on lightning solves this cleanly:

  • Settlement in seconds, not days

  • Near-zero fees, regardless of amount or geography

  • No intermediaries that can freeze, reverse, or delay payments

  • Truly global: works the same whether you're in San Francisco or Nairobi

  • Self-sovereign: you control your money from the moment it arrives in your Alby wallet

For the growing class of remote workers, digital nomads, and cross-border freelancers, bitcoin on lightning isn't just a nice option. It's the payment rail that actually matches how they work.

What Makes a Good Prompt for an AI Agent

Building ZapVoice taught a clear lesson: the quality of what you build with AI depends heavily on how you communicate what you want. Here's what matters:

Be Specific About the Problem, Not the Solution

Don't say "build me an app." Say "I'm a freelancer who needs to invoice clients and get paid in bitcoin over lightning. I want to create invoices with line items, share a payment link, and have clients pay by scanning a QR code." The more context about your actual workflow, the better the result.

Describe the Experience You Want

Mentioning "clean, professional UI with amber/gold accents" and "dark mode support" gave the AI agent concrete design direction. Saying "I want a dashboard with stats cards" is more useful than "make it look good." The AI can make excellent design decisions, but it needs to know your taste.

Name the Technologies When You Know Them

Specifying NWC (Nostr Wallet Connect) for wallet integration and mentioning the Alby SDK pointed the agent toward the right tools immediately, avoiding a detour through payment processors that don't understand lightning.

Think in User Journeys

The most productive prompts describe what users actually do: "A client receives a link, opens it, sees the invoice details, scans a QR code, and pays." This gives the AI agent a clear path to implement, test, and verify.

Trust the Agent on Technical Decisions

You don't need to specify database schemas, API structures, or component architectures. A good AI agent handles those decisions based on best practices. Focus on what the application should do, not how it should be built internally.

The Alby Builder Skill: Building Blocks for Bitcoin Apps

One of the key enablers for ZapVoice was the Alby ecosystem, specifically the `@getalby/sdk` and `@getalby/lightning-tools` packages. The Alby Bitcoin Builder Skill teaches AI agents everything needed to integrate bitcoin payments.

Alby's tools provide a clean abstraction layer for lightning network operations through NWC (Nostr Wallet Connect). Instead of running a lightning node, managing channels, and handling the complexity of the lightning protocol directly within the application, you connect your existing wallet with a single NWC URL. This makes it easy and secure.

The SDK then handles:

  • Invoice generation: Create lightning invoices with specific amounts programmatically

  • Payment verification: Check whether an invoice has been paid

  • Wallet information: Query balance and transaction history

  • Fiat conversion: Convert between traditional currencies and satoshis using real-time exchange rates via `@getalby/lightning-tools`

For an AI agent building a bitcoin application, this is a significant advantage. The Alby SDK provides a well-documented, high-level API that maps cleanly to application logic. "Create an invoice for 50,000 sats" becomes a single function call. "Check if this invoice was paid" is another. The AI agent doesn't need to understand the intricacies of BOLT11 invoices or Nostr relay protocols; it works with clear abstractions.

This is exactly how the best developer tools should work in the AI era: provide clean interfaces that both humans and AI agents can reason about effectively.

Replit Agent: The Perfect Building Partner

Building ZapVoice wasn't a matter of pasting code snippets together. It required coordinating a database schema, a backend API with payment integration, a multi-page frontend with real-time updates, and a public-facing payment flow. That's the kind of work that Replit Agent is specifically designed for.

Here's what creates the fit:

Full-Stack Capability in One Environment. Replit Agent doesn't just write frontend code and leave you to figure out the backend. It designs the database, implements the API, builds the UI, and connects everything together. The PostgreSQL database, the Express server, the React frontend, the bitcoin payment integration: all built and running in a single coherent environment.

Iterative Problem-Solving. When the WebSocket polyfill was missing for the NWC relay connection, the agent diagnosed the error, installed the right package, applied the fix, and verified the solution. No Stack Overflow detour or "works on my machine" issues. The feedback loop between writing code, running it, and fixing issues happens in seconds.

Testing and Verification. The agent doesn't just write code and hope it works. It runs end-to-end tests, checking that the dashboard renders correctly, invoices can be created, clients can be managed, and the payment flow functions. When issues surface, like a missing import, they're caught and fixed before you ever see them.

Deployment Built In. When the application was ready, publishing it to a live URL was a single action. No configuring servers, no setting up CI/CD pipelines, no wrestling with DNS records.

The result is that a non-technical person with a clear vision can build production-quality software. And a technical person can move ten times faster than they would alone. The agent handles the grunt work; the human provides the direction and domain knowledge.

What Comes Next

We're at the beginning of a fundamental shift. The barrier between "having an idea" and "having working software" is collapsing.

As shown already by this example a freelancer in any country can now build their own invoicing system that accepts global, instant payments. 

And this is just the start. Bitcoin’s lightning network is ready. And as AI agents become more capable, we're heading toward a world where anyone with a clear idea can build software that rivals what well-funded teams produce today. The playing field isn't just leveling; it's dissolving entirely.

Bitcoin is the money for this new world.

The future belongs to the builders. And now, everyone can be one.