Skip to Content
SDK v3newAI agent prompt

AI agent prompt — hand the integration to an agent

Integrating SDK 3.0 into someone else’s project and want to delegate the chores to a coding agent (Cursor, Claude Code, Copilot, Windsurf, Cline)? This page gives you a ready-made prompt + a single link the agent needs for a full-stack integration.

TL;DR. Copy the prompt below, fill in your paywallId / apiOrigin / channel and paste it to the agent. It will fetch /llms-sdk-v3.txt , read the focused pack (~190 KB) and propose a plan + code.

What is llms-sdk-v3.txt

It’s a focused dump of SDK 3.0 docs in one .txt file following the llmstxt.org  standard. The agent pack contains only SDK 3.0–relevant material:

  • Full SDK 3.0 reference: AuthClient, BillingClient, PaywallUI, ApiGatewayClient, bootstrap, events, errors, storage adapters, localization, security model.
  • Three end-to-end integration guides: Web (SPA), Chrome Extension (MV3), Headless (server / custom UI).
  • Paywall features: anonymous sign-in, trial, tokenization, translations, local pricing.
  • Setup overviews: payment processors, custom domains, webhooks.

The file is regenerated on every doc deploy and is always current. The size is calibrated to fit in any modern model’s context (Claude / GPT-4o / Gemini) with headroom for the project code.

Step 1. Gather parameters

Before launching the agent, have these ready:

ParameterWhere to get itExample
paywallIdDashboard → Paywalls → open the relevant one, ID is in the URL3
apiOriginYour paywall’s custom domainhttps://billing.theirapp.com
Channelweb / extension / headlessweb
providerId(optional) Dashboard → API Providers, for the AI proxy8b3f...-uuid
Auth needsLogin required? If yes — which providers (Google, Apple)?email + Google OAuth

apiOrigin is mandatory at SDK init and has no fallback. If you haven’t connected a custom domain yet — do that first, instructions. Until then the integration won’t work.

Step 2. Copy the prompt for your channel

Integrate a paid SaaS paywall via Monetize.software SDK 3.0 into this project. Integration parameters: - paywallId: <YOUR_PAYWALL_ID> - apiOrigin: https://<YOUR_CUSTOM_DOMAIN> - Channel: web (SPA) - Login: built-in (auth: true) — email + OTP + OAuth per paywall config - What to unlock after payment: <describe the feature, e.g. "/dashboard access and the Export PDF button"> Before writing code: 1. Read the focused documentation pack: https://monetize.software/llms-sdk-v3.txt It's the full SDK 3.0 reference + the web (SPA) guide. Use it as the source of truth. 2. Examine my project structure: where the router lives, where components live, how "logged in / premium" is currently determined (if at all). 3. Propose a short plan: which files you'll create/change, where the SDK init goes, where the Upgrade button lives, how you'll store premium state. After plan approval: - Install `@monetize.software/sdk` with my package manager. - Create a PaywallUI with the specified parameters and events `purchase_completed` / `authChange` / `userChange`. - Wire up the Upgrade button and unlock after `purchase_completed` (no reload). - If the project has a backend — add a webhook handler for `subscription.created` / `subscription.cancelled` to persist state in my DB. Rules: - Do NOT load the SDK via `<script src>` / CDN — npm only. - Do NOT invent `apiOrigin`, use exactly what I provided. - If something is unclear (fallback behaviour, which route is "premium") — ask.

Step 3. (optional) Attach the pack to Cursor / Claude Code

To guarantee the agent follows the link and keeps it in context:

In Cursor: ⌘L@DocsAdd new doc → paste https://monetize.software/llms-sdk-v3.txt. Name it monetize-sdk-v3. Now @monetize-sdk-v3 is available in chat — mention it in the prompt and Cursor will read it.

What NOT to expect from the agent

  • Creating a paywall in the dashboard. Manual step — the agent doesn’t have access to your monetize.software account.
  • Configuring a payment processor. Manual too: Stripe keys, Paddle vendor — added via the dashboard UI.
  • Connecting a custom domain. Done once on your side (instructions). Once DNS is live, the agent gets a ready apiOrigin.
  • Real payment testing. Use test IDs and test mode — the agent can suggest which cards, but verification is on you.

If the integration doesn’t work

Give the agent this follow-up:

The integration builds but <describe the issue: "paywall.open() shows nothing" / "401 on bootstrap" / "Stripe checkout returns 400">. Re-check against https://monetize.software/llms-sdk-v3.txt: 1. The "Errors" and "Security" sections — common apiOrigin / CORS issues. 2. The "Events" section — could an event be firing before we subscribed? 3. Does the `paywallId` match what's in the dashboard? If the problem is in my config (not the code) — tell me explicitly what I should check in the dashboard / payment processor.