Skip to main content
Tools like Lovable, Figma Make, Replit, Vercel v0, Builder.io, Claude, and AI Studio let you build a working prototype just by describing what you want, no coding experience required. You can use the same approach to add Sprig to a prototype: paste the Sprig install snippet into the chat and ask the AI to add it for you. Once it’s installed, you can start running In-Product Surveys, Heatmaps, Replays, and Feedback Studies!
You don’t need to write or read any code. Everywhere this page says “give this to the AI,” it means literally paste it into the chat box of the tool you’re using, the same way you’d ask it to change a button color.
This page is for anybody with no coding background. Find your tool in the table below, then expand its section for the exact prompt to use and anything specific to that tool.

Want more precise targeting, or more context on respondents?

No-code events cover most cases, but Next Steps with Your AI Prototype has the prompt for code events and attributes. Works the same way on every tool on this page.

Find your tool

Which install method to ask for (HTML snippet vs. npm/pnpm package) depends on how the tool bundles your prototype’s code under the hood, not on anything you’re doing wrong. The table below summarizes what we’ve verified for each tool.
Using a tool that’s not listed here, or a general-purpose AI coding assistant like Cursor? Those tend to work more like adding Sprig to a website you already host yourself, rather than a one-click prototype flow. Email support@sprig.com and we can help, or try the general steps below.

The General Pattern

Whichever tool you’re using, the underlying steps are the same. Build your prototype first and get it working the way you want, don’t worry about Sprig until then:
  1. Go to your Sprig instance and open Integrations > Javascript SDK to get your Environment ID. (Ask your Sprig admin for access if you don’t have it.)
  2. Copy the right prompt for your tool from Prompts below, swap in your real Environment ID, and paste it into the AI’s chat the same way you’d paste in any other request.
  3. Ask the AI to publish or deploy the prototype (the exact wording depends on the tool, e.g. “publish this” or “deploy to production”).
  4. Open the published link (not the in-editor preview) and confirm Sprig loaded by checking for a network request to api.sprig.com in your browser’s developer tools, or by asking a teammate with engineering access to check for you.
  5. From the Sprig dashboard, create no-code events based on your published URL, then create your study and set the trigger. More on creating your audience and testing FAQs.
A prototype that’s still open in the tool’s own editor/preview window is not the same as a published prototype. Several tool-specific caveats below only show up in the editor preview and disappear once the prototype is actually deployed.

Prompts

There are two prompts below: one for the HTML snippet, one for the npm/pnpm package. All you need to do is copy & paste one of these prompts into your AI assistant! Which one applies to your tool is called out in the table above and again in Tool-specific notes, so check there before you paste either one in.
Swap in your real Environment ID before sending either prompt. You’ll find it in your Sprig instance under Integrations > Javascript SDK.

HTML snippet prompt

Lovable, AI Studio, Claude Artifacts, Replit, and v0 all use this one. It tells the AI to add the snippet right before the closing </body> tag, not the <head>. The script loads asynchronously, so placement doesn’t affect load time, but </body> is Sprig’s own recommendation since it guarantees the snippet can never be what’s blocking the rest of the page from rendering.

npm or pnpm prompt

Figma Make and Builder.io use this one, since both support installing the SDK as a package directly.

Tool-specific notes

Always ask for the HTML snippet, not the npm package.Paste the HTML snippet prompt into Lovable’s chat, then ask Lovable to publish, and verify on the published link.
Always ask for the HTML snippet, not the npm package.Paste the HTML snippet prompt into AI Studio’s chat, then ask AI Studio to publish, and verify on the published link.
Claude builds Artifacts as a single self-contained HTML file, not a project with a package manager. Use the HTML snippet prompt and have Claude add it right before the closing </body> tag of the Artifact’s HTML.The bigger catch: Artifacts run in a sandbox that blocks most outgoing calls to third-party services, including the calls Sprig’s SDK makes to api.sprig.com. Sprig won’t work in the live Artifact preview inside Claude, even with a correctly installed snippet, and there’s no way around this from within Claude itself. Take the code Claude wrote and deploy it somewhere outside the sandbox, for example Vercel, Netlify, or GitHub Pages. Once it’s on a real URL, the restriction disappears.
If you ask Claude “why isn’t Sprig showing up?” while still inside the Artifact preview, the answer is almost always this network restriction, not a problem with your snippet or your Sprig setup.
You’ll need a Figma Make account and your Sprig Environment ID.Paste the npm or pnpm prompt into the Figma Make agent chat panel, swapping in your Environment ID, then publish your prototype and verify Sprig loaded on the published link, which will end in .figma.site.Re-deploying later is as simple as making changes in Figma Make and republishing.
Builder.io works with Sprig, but its in-editor preview is sandboxed in a way that affects no-code events (the click and URL-based triggers you set up in Sprig’s Targeting module without writing code). Depending on your workflow, you’ll follow one of two paths:You’ll need your Sprig Environment ID either way. Paste the npm or pnpm prompt into Builder’s agent chat with your Environment ID swapped in.
You’ll need a Builder.io Pro or Enterprise account for this path (there’s a free-tier workaround below if you’re not on one).
  1. In Builder’s agent chat, type “Host this app with Netlify” or “Host this app with Vercel.” Builder will ask to connect your account if it needs to, then deploy automatically to a real URL like https://your-project.netlify.app.
  2. That deployed URL is the link you share with participants, not the *.projects.builder.my preview, and the one you’ll use when creating no-code events from the Sprig dashboard.
  3. Re-deploying later is just “Redeploy to Netlify” (or Vercel).
If a survey isn’t showing up for participants, check that you’re sharing the deployed URL rather than the preview link, and that the trigger event name matches exactly. If Builder’s agent made unexpected changes while installing the SDK, restore a checkpoint in its History panel and re-run the install prompt exactly as written. If the deploy itself fails, paste the error from Builder’s agent into the chat and ask it to fix the build.
Builder’s one-click Netlify/Vercel deploy is paid-plan only. You can still deploy for free using GitHub as a go-between:
  1. In the Builder editor, open the ⋮ menu“Create Repo” or “Sync from GitHub”
  2. Connect your GitHub account and create a repository
  3. Go to netlify.com“Add new site”“Import an existing project” → choose your repo
  4. Netlify auto-detects the build settings and deploys, giving you a *.netlify.app URL
Both the HTML snippet and the npm package work in Replit. If you ever need to run a command yourself in Replit’s terminal, note that Replit uses pnpm instead of npm.Paste your chosen prompt from Prompts into Replit’s chat, then ask Replit to publish or deploy, and verify on the published link.
Always ask for the HTML snippet, not the npm package, even though v0 builds Next.js apps that normally use npm for everything else. If you peek at the code afterward and it looks a little different from what you pasted, that’s expected, not a mistake, v0 just needs to write it into the page slightly differently.Paste the HTML snippet prompt into v0’s chat, then ask v0 to publish or deploy, and verify on the published link.

Going Further

Once Sprig is installed, no-code events already cover most targeting needs. For finer-grained targeting with code events, or to capture more context about respondents with attributes, see Next Steps with Your AI Prototype. The same prompt works on every tool above.

Troubleshooting

If Sprig doesn’t seem to be working:
  1. Confirm you used the install method recommended for your tool (see the table above).
  2. Confirm the prototype has been published/deployed, not just previewed inside the tool.
  3. Test again on the live, deployed URL rather than the in-editor preview.
If you’ve done all three and Sprig still isn’t showing up, reach out to support@sprig.com with the tool name and a link to your deployed prototype.
If you try another AI prototyping tool and find an installation method that works, let us know at support@sprig.com so we can add it here.