Why vibecoding deserves a second look
This blog is a practical, hands-on guide to building better donation experiences on Experience Cloud with the help of AI. It covers everything you need to build your own donation page, step by step. I would highly recommend you read the entire blog first before starting.
Vibe-coding, is building software by describing what you want in plain language and letting AI write the code. However, it doesn't have the best reputation. Many people associate it with apps that leak data, code nobody really understands, or security holes that end up in production. And to be fair, writing secure code and building secure applications still require expert human review. Most experts agree that AI-built backend processes that handle money or personal data should only go live after a diligent, thorough review.
Front-end work is a different story. A donation page is mostly layout, copy, images, colors, the order of the steps and the amounts you suggest. That is exactly what AI is good at, and exactly where many nonprofits lose time waiting for a developer or agency. If something looks off, you see it right away and simply ask for a change. In other words, the risk is low and the time saved is significant.
In this blog, I'll walk you through two different tracks to get started: Salesforce's own Builder Central, which runs entirely inside Salesforce, and Claude in the Claude desktop app, which takes a little setup but gives you access to FinDock's own skills. But before we get to the tools, let's start with the golden rule.
The golden rule: vibecode the front, never the back
It all comes down to one simple rule: vibecode the front, not the back. Let AI design the page, but never let it build the payment processing.
The moment a page collects card details, bank details or personal data, you are in regulated territory. Card payments fall under PCI DSS, the security standard of the card industry, and personal data falls under GDPR in the EU, UK GDPR in the United Kingdom, and similar national laws elsewhere in Europe, such as the Swiss Federal Act on Data Protection. A custom-built form that captures card numbers, even if only for a moment, pulls your organization into PCI scope. Having that form generated by AI is a very bad idea, and it simply won't be compliant.
FinDock is fully PCI-DSS and GDPR compliant. Combining FinDock capabilities with AI assisted programming gives you the best of both worlds. FinDock's payment components handle the sensitive parts: card, wallet or bank details go straight to the payment provider, and FinDock creates the right records with the personal data in Salesforce. Your vibe-coded page never touches those details. It places the FinDock components and takes care of everything around them.
Let the AI build this
- Page layout, sections, images, colors and fonts
- Headlines, impact stories and copy in several languages
- Suggested amounts and the order of the steps
- Thank-you messages and campaign variations
- The mobile layout
Leave this to FinDock and Salesforce
- Capturing card, wallet or bank details
- Talking to the payment provider (Stripe, Saferpay and others)
- Creating payment, recurring payment and installment records
- Matching, reconciliation and status updates
- Guest user permissions and sharing settings
Permissions deserve a special mention. Experience Cloud donation pages run as a guest user, meaning someone who isn't logged in. If an AI agent tries to "fix" a page by giving that guest user more access to objects or fields, you could end up exposing donor data to the entire internet. So the brief lets the AI make only the one guest change every donation page needs: access to your donation Flow and the FinDock Payer permission set group, and only after you've said yes. Anything beyond that, like object access, profiles or sharing rules, should always be checked and done by a human.
A few terms, explained
Before we get started, here are the terms that come up throughout this blog and what they mean in plain language. Feel free to skip ahead and come back here whenever you run into one.
| Term | What it means |
|---|---|
| AI agent | An AI that doesn't just answer questions, but also takes actions, like creating files, running commands or deploying to Salesforce. Builder Central's Build Agent and Claude are both AI agents. |
| Prompt | The instruction you type to the AI, in plain language. |
| Skill | An instruction pack that teaches an AI agent a specialist topic, such as FinDock's payment components or Salesforce Flow best practices. Once installed, the agent loads a skill automatically when it's relevant to what you ask. |
| MCP (Model Context Protocol) | A standard way to connect an AI agent to an outside source, such as the FinDock documentation, so it can look things up while it works. |
| Experience Cloud site (LWR) | Salesforce's product for public websites and portals. LWR (Lightning Web Runtime) is the modern type of site that the FinDock components run on. |
| Metadata | Your Salesforce configuration, like flows, pages, components and fields, as opposed to your data, like donors and payments. |
| Salesforce CLI | Salesforce's tool for working with your org from your own computer. In Track 2, Claude uses it to deploy your page for you. |
| PCI DSS | The security standard for anyone who handles card details. |
Before you start: the foundation both tracks need
Whichever track you pick, the AI only builds the page. The payment plumbing needs to be in place first, and that is something you set up yourself. So before you open any AI tool, make sure you can tick off the items below.
Your Salesforce org
- FinDock is installed and at least one payment processor is set up (for example Stripe, Mollie, or any of the supported payment service providers), ideally in test mode while you build. The FinDock setup guide walks you through it.
- Digital Experiences is enabled and you have an Experience Cloud site (LWR) to put the page on (Salesforce guide: create an LWR site).
- You have System Administrator access.
- You are working in a sandbox or Developer Edition org, not in production. If you're just starting out, build and test everything there first. Once it all works, you can deploy it to production later.
FinDock Payment Experiences
The page is built from FinDock's managed components: the FinDock Payment Method Selector (shows the donor the payment methods you enabled) and the FinDock Pay Button (creates the payment and sends the donor to the payment provider when needed). Payment Experiences has its own setup guide in the FinDock docs.
- Optional but recommended: install a starting template from FinDock Labs payment-experiences-templates. There are donation flows for Nonprofit Cloud and NPSP, a UK Gift Aid variant, a checkout flow and a full donation site.
Public page access (donors who aren't logged in)
Check these yourself, in Setup. The brief lets the AI give the Guest User access to your Flow and the FinDock Payer permission set group after you approve it; but there are some steps best handled by you directly:
- Ensure FinDock WebHub is connected from FinDock Setup.
- The integration user that WebHub connects with has the FinDock Integration User permission set group.
- The site's Guest User has the FinDock Payer permission set group.
- The Guest User has access to your donation Flow (Salesforce guide).
- In Experience Builder → Administration → Preferences, Allow guest users to access public APIs is switched on.
If any of these are missing, the page will look perfect, but the payment will fail. This is a very common "it doesn't work" moment, and no amount of prompting will fix it.
Track 1: Builder Central, nothing to install
Builder Central is Salesforce's new no-code workspace. You describe what you want in plain language, and its Build Agent plans it, builds it and shows you a preview. Since it runs entirely inside Salesforce, there is nothing to install on your laptop, which makes it the easiest way to get started.
Good to know before you start:
- It's a beta. It's available on Enterprise, Performance, Unlimited and Developer Editions with Foundations or Agentforce 1, and needs the Agentforce entitlement. If you don't see it in Setup, ask your Salesforce account team.
- During the beta it's free to use, within what Salesforce calls reasonable usage limits. Those limits haven't been published yet, and pricing may change once Builder Central is generally available.
- It already knows Salesforce's own skills, but it can't import external skills yet, so it has no FinDock knowledge. That's what the project brief is for.
Step 1: Switch it on
- In Setup, type Builder Central in Quick Find and select Builder Central (Beta).
- Under Builder Central Availability, switch the toggle on.
- Under Grant Access, click Manage Permission Sets and assign the Access Builder Central permission set to yourself and anyone else who will build.
- Optional but recommended: under Metadata Experts MCP Server, click Set Up Metadata Experts. It helps Builder Central generate better metadata for more complex builds.
- Click Open Builder Central. Next time, you can also find it in the App Launcher.
Step 2: Give it a FinDock project brief
Builder Central knows Salesforce, but out of the box it doesn't know FinDock, and it can't import external skills yet. Without some guidance it will do what it knows best, which is building its own payment form. And that is exactly what we don't want. So I've put together a project brief that explains the FinDock components and how to configure them.
- Copy the brief below into a text editor.
- Fill in everything in
[square brackets]under "About this project". - Start a new build in Builder Central and paste the whole brief as your first message.
- Add your actual request at the end, for example: "Build a monthly giving page for our Clean Water campaign on the Donations site, using the FinDock Labs donation flow as the starting point."
This brief is based on FinDock's public payment-web-builder skill, condensed for tools that can't load skills.
# Project brief: donation page on Salesforce Experience Cloud with FinDock
## About this project (fill in)
- Organization: [name, one-line mission]
- Campaign / page purpose: [e.g. monthly giving for our water projects]
- Experience Cloud site: [site name, LWR] and its URL path prefix
[e.g. /donations, see the site URL in Setup → Digital Experiences]
- Starting point: [installed FinDock Labs donation flow, e.g. Donation_Flow,
or "none, build a new flow"]
- Gift types: [one-time / monthly / both]
- Currency: [EUR / GBP / CHF / ...]
- Suggested amounts and what they fund: [e.g. 20 = school kit, 50 = ...]
- Payment methods to offer: [e.g. cards, Apple Pay, iDEAL, SEPA Direct Debit,
Bacs Direct Debit, TWINT]
- Languages: [e.g. English, Dutch, German]
- Brand: [colors (hex), fonts, logo file, tone of voice]
- Style reference: [a screenshot, or a description. You can't open URLs.]
- Thank-you page and failure page: [existing pages on the site, or create them]
## Your role
You build the FRONT END only: page layout, copy, images, styling, screen order
and the configuration of FinDock's components. FinDock and Salesforce handle all
payment processing, data and security.
## Hard rules (never break these)
1. Never build your own payment form. Never create inputs that capture card
numbers, CVC, IBAN/bank details or TWINT data. Payment details are handled
only by FinDock's managed components and the payment provider (PCI DSS).
2. Never write Apex, triggers or code that creates or updates FinDock payment
records (cpm__ objects) directly. The FinDock Pay Button does this.
3. Never call the FinDock REST endpoint (/services/apexrest/cpm/...) from the page.
4. Guest User and permissions. You MAY do exactly these, and nothing more:
a. Create one project-owned permission set for the site's guest user
(e.g. Donation_Page_Guest_Access) that grants access to the donation
flow and every subflow it calls (flowAccesses only).
b. Assign that permission set and the FinDock Payer permission set group
to the site's guest user. Find the guest user through the site itself
(the Site record's guest user), not by guessing a name.
Before you do this, list the exact flows, the permission set and the user
you'll assign it to, and wait for my yes.
If you can't assign permission sets yourself, give me the click path
instead.
You must NEVER:
- edit any profile, including the guest user profile
- grant object or field permissions, View All, Modify All or API Enabled
to the guest user, even if an error suggests it
- change sharing rules, org-wide defaults or site security preferences
- touch any user other than the site's guest user, including the FinDock
integration user
If an error points at missing access beyond flow access, STOP and tell me
what you think is missing. I'll decide and do it myself.
5. Never edit metadata installed by FinDock or FinDock Labs. This includes the
unmanaged FinDock Labs components and flows (amountAndFrequency,
experienceProgressStages, currencyPicker, Donation_Flow, Contact_Assignment,
and so on), including their .js-meta.xml files. Using them as they are is
fine. To change one, clone it first and work on the copy.
6. Never deploy CustomSite or Network metadata. They contain usernames and site
settings that break deploys. Pages, routes, views and branding live in the
DigitalExperienceBundle; deploy only that, plus the files you created.
7. Ask before deleting anything or before deploying. Deploy only what you
created or changed.
Rules 4 and 5 protect security settings and installed metadata. They do NOT
stop you from using FinDock's components (adding the Amount & Frequency,
Payment Method Selector and Pay Button to Flow screens and mapping their
variables is your job) or from the guest flow access described in rule 4.
Do those yourself, don't leave them for me.
## Starting point
If a FinDock Labs donation flow is installed (for example Donation_Flow), use
it. Don't build a new flow from scratch. If the flow needs changes, save a
clone with a project-owned API name and change the clone. Most of the work is
the page around the flow: layout, copy, images and branding.
## The FinDock building blocks
Use these managed components from the FinDock package (namespace cpm):
- FinDock Payment Method Selector (Flow: cpm:paymentMethodSelector,
LWC tag: cpm-payment-method-selector). Shows the donor the payment methods
enabled for this page. Configure methods, processors and merchant accounts
in its configuration editor (component settings in Flow Builder).
Input: frequency (so it only offers methods valid for one-time or recurring).
Output: context = the donor's selected payment method.
- FinDock Pay Button (Flow: cpm:payButton, LWC tag: cpm-pay-button).
Creates the payment (a FinDock PaymentIntent) when clicked and redirects the
donor to the payment provider when needed. In Flow, map these inputs:
contact (a Contact record), payment method (= the selector's context output),
one-time amount, recurring amount, currency, frequency, success URL and
failure URL (see "Experience Cloud LWR rules" for the URL format). Set a
button label that includes the amount, e.g. "Donate €25 per month".
The Pay Button has one type mapping, recurringType: the object that stores
recurring gifts. Check the org yourself and use the first one that applies:
1. Nonprofit Cloud is available (the GiftCommitment object exists)
-> GiftCommitment
2. NPSP is installed (npe03__Recurring_Donation__c exists)
-> npe03__Recurring_Donation__c
3. Otherwise, FinDock stand-alone
-> cpm__Recurring_Payment__c
In Flow metadata this is a dataTypeMappings entry on the Pay Button field
(typeName recurringType, typeValue = the object above). Include it in your
first deploy. Don't leave the Pay Button as a placeholder because of this.
- Amount & Frequency (unmanaged, from the FinDock Labs templates;
Flow: c:amountAndFrequency). Lets the donor pick one-time or recurring and an
amount. Outputs: frequency, amountOneTime, amountRecurring.
If it isn't installed, build simple amount and frequency inputs that output
the same three values.
## Flow structure (only when building or cloning a flow)
Screen order (one screen, or split into Amount -> Details -> Payment):
1. Amount & Frequency
2. First name and last name (required)
3. Email (use the standard email screen component, flowruntime:email)
4. Payment Method Selector, with frequency wired from step 1
5. Pay Button
Wiring:
- Amount & Frequency returns amountOneTime and amountRecurring as text. Only
one of them is filled, depending on the frequency the donor picked.
- One-time amount formula:
IF(ISBLANK({!amountAndFrequency.amountOneTime}), null,
VALUE({!amountAndFrequency.amountOneTime}))
- Recurring amount formula:
IF(ISBLANK({!amountAndFrequency.amountRecurring}), null,
VALUE({!amountAndFrequency.amountRecurring}))
- Resolve the Contact in a subflow: find an existing Contact by email,
create one only if none is found. Never create a duplicate on every gift.
- Add a text input variable "status". The payment provider returns the donor to
the success or failure URL with ?status=success or ?status=failure.
A Decision routes: success -> thank-you screen, failure -> "payment not
completed, try again" screen, otherwise -> the payment screen.
- For a multi-screen version, put a progress indicator at the top of each
screen (c:experienceProgressStages, if installed).
## Experience Cloud LWR rules
- Put the flow on the page with Salesforce's standard Flow component. In the
view's content.json:
"definition": "dxp_flow:flow",
"attributes": {
"dxpStyle": {},
"flowName": "{\\"flowName\\":\\"\\",\\"flowLabel\\":\\" Step 3: Check the plan before it builds
Before it builds anything, the Build Agent proposes a plan. Take the time to read it carefully, because this is where you can catch mistakes before they cost you any time.
Check that the plan:
- uses the FinDock Payment Method Selector and FinDock Pay Button, not its own payment fields
- puts the form on your Experience Cloud site, in a Screen Flow
- only touches the Guest User to give it access to your donation Flow and the FinDock Payer permission set group, and doesn't change profiles, object access or sharing
If anything is off, say so: "Don't build your own card fields, use the FinDock Pay Button as described in the brief."
Step 4: Preview and refine
Now you can start refining the page. Simply ask for changes in plain language until you're happy with the result, for example:
- "Make the hero image full width and the headline shorter."
- "Show the impact of each amount under the amount buttons."
- "Split the form into three steps with a progress bar."
- "Check the page at mobile width."
Don't worry if your donation form shows up as a gray placeholder in Experience Builder, like in the screenshot above. Flows don't run in Experience Builder, not even in Preview. Publish the site and open the published page to see and test the actual form.
Step 5: Publish, then finish the payment settings yourself
When you're happy, click Publish to Sandbox to deploy the result. Then finish the FinDock part in Flow Builder:
- Open the Flow in Flow Builder.
- Check that the FinDock components are on the right screens, with their variables mapped. If Builder Central left placeholder text instead, ask it to add the components for you: "Please add the FinDock components to the Flow screens and map their variables."
- On the payment screen, open the Payment Method Selector settings and choose the methods, processors and merchant accounts to offer.
- On the Pay Button, check the success and failure URLs.
- Activate the Flow. Check that the Guest User has access to it and has the FinDock Payer permission set group. Builder Central can set this up once you approve it.
- Publish the site in Experience Builder. Do this again after every deploy: a deploy updates the pages, but visitors only see the changes once you publish.
Common errors and how to fix them
These are the errors I ran into while testing the brief in Builder Central. Most of them are fixed with one clear instruction to the Build Agent.
| What you see | What's going on | What to do |
|---|---|---|
| The page asks visitors to log in | The site isn't published yet, or guests aren't allowed in | Publish the site in Experience Builder, and check that guests can view it without logging in |
| "You do not have the level of access necessary…" | The Guest User can't run your Flow | Ask Builder Central to give the Guest User access to the Flow and the FinDock Payer permission set group, as rule 4 of the brief allows |
| LWR3008: Error loading … on the Flow's components | The Flow is wrapped in a custom component instead of Salesforce's standard Flow component | Ask: "Replace your wrapper with the standard Flow component, dxp_flow:flow, as described in the brief." |
| Headings or text blocks show up empty | The page text uses Custom Label references, which LWR sites don't support | Ask Builder Central to put the text directly in the text blocks |
| Images and the logo don't load | The image paths use /resource/ instead of /sfsites/c/resource/ | Ask Builder Central to fix the image paths |
| Deploy fails with "Cannot find a user that matches any of the following usernames" | Builder Central tried to deploy the site's settings file, which contains usernames | Ask it to leave the CustomSite file out of the deploy and deploy only the pages |
If the same error comes back after a fix, don't keep asking for another attempt. Every try costs a deploy and Agentforce credits. Copy the full error message, and check the brief or the FinDock docs first.
Step 6: Test on your phone
Open the page on your phone in a private window and make a test payment with each method. Then check in Salesforce that the payment records were created.
Track 2: Claude in the Claude desktop app
Track 2 uses the Claude desktop app: the same Claude you may already use to chat, but in its Code tab. In that tab, Claude works in a folder on your own computer, so it can create the files for your page and, with the help of the Salesforce CLI, deploy them straight to your org. And you never need to open a terminal or an editor.
The big advantage over Builder Central is that you can give Claude FinDock's own skills, so there's no need for a project brief. In return, you need a paid Claude plan (Pro, Max, Team or Enterprise) and about 15 minutes to set things up, once.
We use Claude in this blog, but you're not tied to it. The same approach works perfectly well with other AI tools, such as Agentforce Vibes, OpenAI's Codex, GitHub Copilot or Cursor, and most of them can use the FinDock Labs skills too. The menus and install steps will just look a little different.
Step 1: Install the Claude app and the Salesforce CLI
- Download and install the Claude desktop app for Mac or Windows, and sign in with your Claude account.
- Download and install the Salesforce CLI, accepting the defaults. This is the tool Claude uses to talk to your org.
- On Windows only: the Code tab also needs Git for Windows. You won't use Git yourself in this blog: just install it with the defaults, then restart the Claude app.
Step 2: Add the FinDock and Salesforce skills
Skills are instruction packs that teach Claude a specialist topic. You add them once, through the app's menus:
- In the Claude desktop app, go to Customize → Plugins.
- Click Add → Add marketplace, paste
FinDockLabs/findock-labs-skillsand click Sync. - Install the findock-payments plugin. This teaches Claude FinDock's payment components and how to configure them.
- Do the same for Salesforce's own skills: add the marketplace
forcedotcom/sf-skillsand install the salesforce-development plugin.
Step 3: Open the Code tab and connect your org
- Create an empty folder on your computer, for example
donation-page. - In the Claude app, click the Code tab at the top. Make sure it's set to Local, and select your new folder.
- Ask Claude: "Connect this project to my Salesforce org." Claude starts the Salesforce login for you. Log in in the browser window that opens, and you're connected.
Step 4: Build
Now describe what you want, for example:
"Build a monthly giving page for our Clean Water campaign on the Donations site. Use the FinDock Labs donation flow as the starting point."
The FinDock skill first asks you a few questions as clickable options, like new or existing page, gift types, starting point, region and payment methods. Then it builds.
Claude asks permission before it changes files or runs commands. Read what it wants to do before you click Allow, and if something doesn't look right, just say so.
Step 5: Deploy and test
Ask Claude: "Deploy this to my org." It runs the Salesforce CLI for you and tells you if anything fails. Then:
- Do the same checks as in Track 1, Step 5: Payment Method Selector configuration, Pay Button URLs, Flow activation and Guest User access, and publishing the site.
- Test on your phone with a test payment for each method.
And that's it. Once your page is deployed and published, the result can look something like this:
The finished donation page, with FinDock's payment components taking care of the payment.
Which track should you pick?
There is no one best track, it really depends on your situation. If you want to try this today without installing anything, Builder Central is the quickest way in. If you plan to build more than one page, or want the best results with FinDock, the Claude desktop app is the better choice.
| Builder Central | Claude desktop app | |
|---|---|---|
| Setup | None, switch it on in Setup | About 15 minutes, once |
| Where it runs | In your browser, inside Salesforce | On your own computer |
| Cost | Free during the beta, within usage limits | Your Claude plan |
| FinDock knowledge | Through the project brief only | FinDock's own skills |
| Salesforce knowledge | Built in | Salesforce's own skills |
| Deploying | Built in | Claude runs the Salesforce CLI for you |
| Seeing changes | Visual preview | You approve each change before Claude makes it |
| Status | Beta | Generally available |
And you don't have to choose forever. You can start in Builder Central and move to the Claude desktop app once you want more control.
Your turn
Now it's your turn. Pick a track, block out an afternoon and build a donation page for one of your real campaigns. Then send me what you've built: a screenshot, a link to your test page, or the prompt that worked best for you. With your permission, I'll share the best ones in a follow-up blog.
And if you got stuck somewhere, please send me that as well. Knowing where people get stuck helps me decide what the next blogs in this series should cover.
Send your results to: peter@findock.com or message me on LinkedIn.
Next in this series
- Put your donation form on your own website. With Lightning Out 2.0 you can embed the FinDock payment form you just built on any website, not only on Experience Cloud.
- Never lose a working version again. An introduction to Git for admins: saving every version of your page, rolling back mistakes and sharing your setup with your team.
- Build safely, without touching your live site. How to move your page from a sandbox to production, step by step.
- Level up with VS Code. For those who want more control: Claude Code in Visual Studio Code, with skills installed per project.
Want to know when the next one is out? Follow me on LinkedIn or keep an eye on the FinDock blog. And check FinDock Labs every now and then for new skills, including one that clones an existing Experience Cloud page in a single prompt.
And remember the one rule: vibecode the front, not the back. Let AI make your page look great, and leave the payments to FinDock.








