Skip to content
SaaSFunnelsHelp

Build with your agent · Start

Quickstart: your first Funnel from your coding agent

From your app's repository to a Funnel waiting for your approval in about ten minutes. Sign in from the terminal, connect your agent, ask for a Funnel, then approve it.

On this page

You'll go from your app's repository to a finished Funnel draft that your agent built, wired into your code and tested. It goes live when you approve it. The examples use Claude Code; Codex, Cursor and VS Code work the same way after connecting.

Before you start

  • Open a terminal in your app's repository.
  • Have Node.js 22 or newer.
  • You don't need an account yet. You can create one in step 1.

1. Sign in from your terminal

The fastest start is the setup command on saasfunnels.com, next to Start free trial. Pick Claude Code, Cursor, Codex or Terminal, copy it and paste it into your terminal. Copying it opens Here's what happens next, which walks you through the steps on this page.

Or sign in yourself:

Terminal
npx saasfunnels login
  1. Your browser opens a page on app.saasfunnels.com/cli/connect with a one-time code.

    On a machine without a browser, run npx saasfunnels login --no-browser and open the link it prints.

  2. Check that the code matches the one in your terminal, then select Connect.

    New to SaaSFunnels? You create your account on that page. You can also connect Stripe and add your site there, or leave both for later.

The Connect the SaaSFunnels CLI page, with the one-time code marked 1 and the Connect button outlined and marked 2.
Connecting the CLI.
  1. Code
  2. Connect

Your terminal says you're signed in. npx saasfunnels whoami shows which workspace you're in.

2. Add the SaaSFunnels playbooks to your repository

Terminal
npm install --save-dev saasfunnels@^0.16.0 && npx saasfunnels init && npx saasfunnels agent install --target claude-code

This adds the saasfunnels command to your project, writes .saasfunnels/config.json (no secrets) and gives your agent the step-by-step playbooks for building Funnels and finding your app's events. It also connects Claude Code to SaaSFunnels. Use --target codex, --target cursor or --target markdown for other agents. Cursor is connected the same way, and Codex gets the steps printed. See How it works with your app for every file it writes.

3. Sign in from your agent

Run /mcp in Claude Code, choose saasfunnels and sign in with your SaaSFunnels account. Pick your workspace when asked. There's no API key to paste.

If the install couldn't find Claude Code, it printed this command to run yourself:

Terminal
claude mcp add --transport http saasfunnels https://app.saasfunnels.com/mcp

Using VS Code or another agent? Follow Connect your agent, then come back.

4. Ask for your first Funnel

Type what you want, the way you'd brief a teammate. A good first one:

Text
Use SaaSFunnels to create an NPS survey from the template, called "Quarterly pulse".
Show it only to customers who have been with us for at least 30 days, at most once a week.
If someone scores 9 or 10, ask them for a review; everyone else goes to the thank-you.
Wire it into our app, check every step on desktop and mobile, run the test,
and request publish when it's ready.

Your agent picks the template, creates the draft, sets who sees it, adds the code that opens it to your app and checks each step as it goes. When it needs something only you know, it asks.

Here's what that looks like:

You: Create an NPS survey from the template and rename it "Quarterly pulse".

Agent: Created the NPS draft and renamed it "Quarterly pulse" in one change. One thing is left before it can publish: Add your review page link. What's the address of your review page? Open the draft in Studio: app.saasfunnels.com/app/funnels/…

You: Use our reviews page, https://example.com/reviews.

Agent: Added it to the review step and checked both steps on desktop and mobile. The test passed and nothing blocks publishing. I've requested publish; you'll get an email and an Approve button in Studio.

5. See what your agent did

Open the Studio link your agent gave you. The draft updates as your agent works, even with Studio already open.

  1. Select Agents in the top bar. Agent activity lists who changed what, newest first.
  2. Don't like the latest change? Select Undo to put the draft back the way it was.
Studio with Agents open in the top bar, marked 1, and Agent activity listing an agent's change with Undo outlined and marked 2.
Agent activity.
  1. Agents
  2. Undo

Prefer to make a change yourself? Edit the draft in Studio as usual. Your agent picks up your edits the next time it reads the draft.

6. Approve and go live

When your agent requests publish, you get a one-click approval in Studio and by email. Check the draft, then approve. Nothing goes live until you do.

The Funnel starts showing to the people you chose, and you'll see views, answers and revenue in Results.

What's next