Skip to content
OTFotf
All posts

How Papaya Global built a no-engineer production compliance agent with Claude

O
OTFAuthor
How Papaya Global built a no-engineer production compliance agent with Claude

Payroll compliance is the least forgiving place to ship experimental AI. Papaya Global operates payroll in 160 countries, where a single bad answer can trigger a $250,000 fine—and the real competition isn't another payroll SaaS, but the ChatGPT tab every customer already trusts at 2am. The remarkable part: Papaya shipped a genuinely production-ready compliance agent, complete with guardrails and client trust, using tools like Claude, Lovable, and Supabase—without writing backend code or a platoon of engineers. Here's how they did it, and how the approach generalizes for anyone facing AI compliance in the real world.

Why general AI chatbots can be risky for payroll compliance

Generic AI chatbots look great in a vacuum—instant answers, authoritative tone, 24/7 coverage. But the second regulation or liability enters the picture, off-the-shelf AI goes from fast to a lawsuit risk. Papaya's own client base—spanning 160 countries—makes this non-theoretical: for routine payroll, one hallucinated “yes/no” can trigger government penalties upward of $250,000. The SaaStr AI Annual 2026 session spelled out the real problem: when a client asked whether they could terminate a worker in Germany, they weren't turning to Papaya's carefully-vetted docs. They asked ChatGPT. The model answered quickly and confidently—and sometimes? Dead wrong.

A stress-test from Papaya's team illustrates the danger: they ran a real Brazilian CLT contract and an actual compliance question through both Claude and ChatGPT. Both sounded certain. Both generated incompatible answers. When checked against Brazilian law, neither was fully correct. The danger isn't just model selection—it's that general-purpose AI doesn't know its own knowledge boundaries, and will fill in with alarmingly plausible mistakes.

For high-stakes domains, generic chatbots create a hidden risk profile: the quick answer you didn't vet becomes the legal liability you can't afford.

What is a production compliance agent?

A production compliance agent with AI isn't just a fancy chatbot. It's a system that delivers auditable, up-to-date, and domain-correct compliance guidance in real time, without requiring trust in a human expert behind the interface. Papaya Global's journey shows what separates production-grade compliance AI from generic bots:

  • Domain specificity is mandatory. The agent must ingest regulatory statutes, company policies, and edge cases that differ by country and employment type.
  • Auditability comes first. Every answer must be traceable—down to a statutory source, policy timestamp, or documented decision tree.
  • Rigorous accuracy. “Close enough” isn't good enough when payroll mistakes mean $250,000 fines or regulatory blacklists.
  • Client trust is explicit. Your answer history and compliance guarantees are exposed to end-users; you eat the cost of mistakes, not the end customer.

Contrast this with generic AI chatbots: they have no hardwired notion of jurisdiction, no up-to-date statutory base, and no system for documenting what law or policy underlies a given answer.

Same component. Web and mobile. One codebase.

The free, open-source SDK gives you components that work the same on web and mobile — one codebase. github.com/otf-kit/sdk

Get the free SDK

How Papaya Global built their compliance agent without engineers

Papaya Global tackled the "build vs trust" split head-on. The technical build took just four weeks. Engineering headcount? Zero. Instead, they used a stack of proven no-code tools:

  • Claude (Anthropic): For best-in-class natural language reasoning, answer synthesis, and as the “brain” of the agent.
  • Lovable: Provided a no-code interface layer, enabling product and CX teams to script and control client dialogues, refine prompts, and manage workflows without code pushes.
  • Supabase: Functioned as a backend and source of truth for regulations, employer policies, and conversational state; low-friction integration kept the AI “on rails.”

By connecting these, Papaya built a compliant, auditable answer pipeline. The workflow looked like this:

  1. Client question (e.g., “Can I terminate an employee in Germany on X grounds?”) enters via Lovable chat.
  2. Lovable triggers a domain-specific prompt and context build, tailored with Supabase-stored policies and historical guidance.
  3. Claude processes the prompted context, returns an answer, and Lovable logs both prompt and AI output.
  4. Answers relevant to compliance are tagged and tracked, so Papaya’s compliance team can review, flag, and refine ambiguous or borderline cases—iterations happen without engineering involved.

The no-engineer approach meant faster iteration: business teams validated output daily, and prompt/policy fixes shipped as soon as gaps appeared. The upshot: a shippable, production-ready payroll compliance AI agent, running across 160 countries, built in less than a month.

The slow part? Client trust—which took four months of steady improvements, audits, and demonstrated reliability to win over skeptics accustomed to general AI. The takeaway: product build is easy; building trust in your answers takes relentless iteration.

How to deploy a production compliance agent today using AI and no-code tools

You don't need to wait for a DevOps sprint or machine-learning headcount to build a real compliance AI agent. With Claude, Lovable, and Supabase, the workflow is reproducible:

  1. Define your domain-specific regulatory map
    Start by cataloging the recurring compliance questions and relevant statutes—your “mini knowledge base.” For payroll, that's country-by-country rules, contracts, and documented precedence.

    // Example: US overtime rule entry in Supabase
    {
      jurisdiction: "US",
      rule: "Overtime Pay",
      excerpt: "Nonexempt employees must receive overtime...",
      legalCitation: "FLSA Sec. 207(a)(1)",
      updatedAt: "2026-05-01"
    }
  2. Configure Claude for contextually accurate AI responses
    Use prompt templates and system messages that restrict scope: “Only answer if legal authority found in Supabase DB,” “If ambiguous, explain required documentation, don’t guess.” Explicitly cite country, regulation, and last update.

    {
      "system_instruction": "If the law for user question exists in Supabase, cite regulation and respond. Otherwise, escalate to human or request clarifying documentation."
    }
  3. Integrate Lovable for the user chat interface
    Using Lovable’s setup, wire the chat UI to hold, display, and annotate outbound answers (with sources, last-synced dates). Product and support can push question flows directly in the admin—zero deploy friction.

Building a production compliance agent with AI, as Papaya Global proved at SaaStr AI Annual 2026, is feasible and replicable without a traditional engineering lift. In payroll and other regulated workflows, the only line of defense between your company and catastrophic fines is a trustworthy, domain-aware, rigorously auditable AI agent. With Claude, Lovable, and Supabase, startups and enterprises alike can deploy AI compliance agents that clients rely on—transforming AI from a risk into a real competitive defense.


Originally published at otf-kit.dev — full-stack kits your AI coding agent can actually ship to production. See the kits →

#ai-toolsagentssupabase
OTF SDK + Kits

Buy once, own the code. Ship with the agent you already use.

  • Free, open-source SDK — same component, web and mobile
  • Paid kits include AI configs + 40+ tested prompts — your agent reads the whole project
  • $99/kit or $149 for everything. No subscription, no sandbox limit.