Automate Customer Onboarding in Salesforce, Step by Step
Automate customer onboarding in Salesforce: an onboarding object, a Closed Won flow, milestone tasks, stall alerts, and a report that shows who is stuck.
You can automate customer onboarding in Salesforce without buying an onboarding app, and for most teams you should try that first. The deal is already in Salesforce. The account, the contacts, the products and the signed date are already there. What is missing is a record that says “this customer is being onboarded, here is where they are, and here is who owns the next step.” Build that record, create it automatically at Closed Won, and the rest of the process hangs off it.
This tutorial builds the whole thing in order: the data model, the Closed Won flow, milestone tasks, a kickoff email, stall alerts, and the report your leadership actually wants. It assumes standard Salesforce with Flow, no packages, and an admin or an AI that can build in your org.
One distinction before starting. This post is about onboarding customers after they buy. If you are trying to automate onboarding employees as Salesforce users, that is a different build, covered in Salesforce user onboarding and offboarding.
Why onboarding breaks in the handoff
Onboarding rarely fails because the team does not know what to do. It fails because nobody can see it. The rep closes the deal, sends a Slack message to delivery, and the customer’s details live in three places: the opportunity, the rep’s notes, and somebody’s inbox.
That works at a handful of new customers a month. It stops working when volume grows, when the person who usually picks things up is on vacation, or when someone asks “how many customers are mid-onboarding right now, and which ones are stuck?” and the honest answer is a spreadsheet nobody updated.
The fix is not a project-management suite. It is one object, one flow, and a report. If you want the wider view of what should happen after a deal closes, seven Salesforce automations for after the deal closes covers the full handoff. This post goes deep on the onboarding piece.
Step 1: Map your onboarding before you build it
Do this on paper first. Every onboarding process has a small number of milestones that actually mean something. Write yours down, in order, with who owns each one and how long it should take.
A typical B2B version looks like this:
- Kickoff held (owner: onboarding manager, target: within 5 business days of close)
- Data or assets received from the customer (owner: customer, chased by onboarding manager)
- Access granted (owner: delivery or support)
- Configuration or setup complete (owner: delivery)
- First value reached (owner: onboarding manager, the moment the customer gets the thing they bought)
- Handoff to account management or support (owner: onboarding manager)
Keep it to five to eight milestones. If you write down twenty, you are describing tasks, not milestones, and the tasks come later. Also write down what “stuck” means for you, for example “no milestone completed in 10 days.” You will need that number in Step 5.
Step 2: Build the onboarding object
Create a custom object called Onboarding. Each record represents one customer’s onboarding, created once per won deal (or once per account, if you onboard accounts rather than deals).
Fields that earn their place:
- Account (lookup to Account) and Opportunity (lookup to Opportunity)
- Stage (picklist matching your milestones from Step 1, plus Not Started, Stalled and Complete)
- Onboarding Owner (lookup to User, or use record owner)
- Close Date (copied from the opportunity, so the record does not depend on the deal staying unchanged)
- Target Go-Live Date
- Last Milestone Date (date, updated whenever the stage moves forward)
- Primary Customer Contact (lookup to Contact)
- Handoff Notes (long text, filled from the opportunity at creation)
Lookup or master-detail to Account is a real decision. Master-detail means deleting the account deletes its onboarding records, and the account controls who can see them, as Salesforce’s object relationships module on Trailhead explains. Lookup keeps onboarding independent. Most teams want lookup here, because onboarding history should survive an account merge. If you need roll-ups across a lookup later, there are ways around the master-detail requirement, covered in roll-ups without master-detail.
Add the Onboarding related list to the Account and Opportunity page layouts so reps and account managers see the status without leaving the record they live in. If you have never built a custom object, your first custom object, built by AI walks through the pattern line by line.
Step 3: Create the onboarding record at Closed Won
This is the step that removes the Slack handoff. Build a record-triggered flow on Opportunity:
- Trigger: when a record is updated
- Entry condition: Stage Name equals Closed Won, and run only when the record is updated to meet the condition (so it fires once, not on every later edit)
- Optimize for: Actions and Related Records
Inside the flow:
- Get Records to check whether an Onboarding record already exists for this opportunity. If one does, stop. This guards against a deal being reopened and closed again, which happens more than anyone admits.
- Create Records for the new Onboarding, mapping Account, Opportunity, Close Date and Handoff Notes from the opportunity. Set Stage to Not Started and Target Go-Live to the close date plus your standard onboarding length.
- Assign the owner. If one person runs onboarding, hardcode them. If several do, assign to a queue or use a simple round robin. The same patterns used for leads apply, see round robin assignment in Salesforce.
Decide what “Handoff Notes” pulls. A good default is the opportunity description plus any fields your reps already fill in about the customer’s goals. If reps do not fill those in, add one required field at Closed Won with a validation rule. One required field is a reasonable ask. Six is how you get “asdf.”
Step 4: Generate milestone tasks and the kickoff email
With the record in place, generate the work. Add to the same flow, or build a second flow on Onboarding create:
- Create Tasks for the first milestones, assigned to the right owners, related to the Onboarding record, with due dates offset from the close date. “Schedule kickoff” due in 2 business days, “Hold kickoff” in 5.
- Send the kickoff email to the primary customer contact using an email template that introduces their onboarding owner, states what happens next and asks for whatever you need from them in milestone 2.
Do not create every task for every milestone on day one. Create tasks for the current milestone only. When the stage advances, a flow on Onboarding update creates the next milestone’s tasks and stamps Last Milestone Date with today. That keeps task lists short, keeps due dates relative to when the previous step actually finished, and makes the stage field the single source of truth.
For the email, keep the template plain. A short message from a named person beats a branded newsletter-style welcome that reads like automation, even though it is automation.
Step 5: Add stall alerts with scheduled paths
The most valuable automation in the whole build is the one that notices when nothing happens. Salesforce Flow handles this with scheduled paths: actions that run a set time after a date on the triggering record, as described in Trailhead’s scheduled paths unit. Scheduled paths need the flow to be optimized for Actions and Related Records, and your org’s Default Workflow User must be set.
Build a record-triggered flow on Onboarding:
- Trigger: when a record is created or updated, entry condition Stage is not Complete
- Scheduled path: 10 days after Last Milestone Date (use your “stuck” number from Step 1)
- Action: check the stage is still not Complete and Last Milestone Date has not changed, then set Stage to Stalled, notify the owner and their manager, and create a task to re-engage the customer
Add a second scheduled path on Target Go-Live Date: 3 days before, if the stage is not at or past “Configuration complete,” alert the owner. That turns a missed go-live from a surprise into a decision someone makes ahead of time.
For time-based rules that span many records at once (for example, a weekly digest of all stalled onboardings), a schedule-triggered flow is the better tool. If the logic gets complicated enough that Flow becomes hard to read, that is the point to consider Apex, see Salesforce Flow vs Apex.
Step 6: Hand off cleanly at the end
Onboarding has an end, and the end needs automating as much as the start. When Stage is set to Complete:
- Stamp a Completed Date and calculate Days to Complete (Completed Date minus Close Date) in a formula field. This is the number you will want in every review.
- Reassign or notify the account manager or support owner, with the handoff notes and the milestone history.
- Start the renewal clock if it is not already running. Building renewal alerts off the close or contract date is covered in Salesforce renewal alerts automation.
If support takes over at handoff, make sure any open customer issues logged during onboarding are cases, not tasks, so your existing support rules route and escalate them. Salesforce case escalation rules covers that side.
Step 7: Build the report that answers “who is stuck?”
Now the reporting is almost free. Build a report on Onboarding records:
- Grouped by Stage and Onboarding Owner
- Columns: Account, Close Date, Target Go-Live, Last Milestone Date, days since last milestone (a formula field: TODAY() minus Last Milestone Date)
- Filter: Stage not equal to Complete
- Conditional highlighting on days since last milestone
Put it on a dashboard with two more components: average Days to Complete by month (are we getting faster?) and count of Stalled records (is anyone stuck right now?). Those three views answer the questions leadership asks in every QBR. If someone asks for a view that standard reports cannot produce, such as time spent in each stage, that is a known limit with known workarounds, collected in the Salesforce reports you have been told you cannot build.
Step 8: Test it in a sandbox before production
Run the whole thing end to end in a sandbox before turning it on:
- Close a test opportunity. Confirm exactly one Onboarding record appears with the right owner, dates and notes.
- Reopen and re-close the same opportunity. Confirm no second record is created.
- Advance the stage. Confirm the next milestone’s tasks appear and Last Milestone Date updates.
- Backdate Last Milestone Date on a test record and confirm the stall logic behaves as expected (scheduled paths run on their schedule, so test them by setting dates that make the path due soon).
- Complete a record. Confirm Days to Complete calculates and the handoff notification fires.
If you have existing customers mid-onboarding in a spreadsheet, load them as Onboarding records once the build is live, so the report reflects reality from day one. A one-time load of a few hundred rows is a job for the Data Import Wizard.
What this takes, and where AI fits
Count the pieces: one custom object with about ten fields, three or four flows, an email template, a few formula fields, a report and a dashboard. None of it is exotic. For an experienced admin it is a few focused days. For a team whose admin is buried in requests, it is the kind of build that sits in a backlog for a quarter, because every piece is small and none of them is urgent until a customer churns during onboarding.
That backlog is where an AI that can build in your org changes things. You describe the process in plain language, for example “create an onboarding record at Closed Won, assign it round robin across the onboarding team, and alert the owner if no milestone moves for ten days,” and your AI builds the object, fields and flows, deploys to a sandbox first with tests, and moves to production when you have checked it. With Sentinel, every change is logged and a snapshot is taken before each deploy. That does not stop a bad change from being made; it means you can always see what changed and get back to where you were. To see how the connection works, start with connecting Claude to your Salesforce org, or read what it means for your AI to become your CRM developer.
The takeaway
Automating customer onboarding in Salesforce comes down to one decision: make onboarding a record, not a conversation. Create it at Closed Won, generate only the current milestone’s work, alert on silence, and report on stages. Build that first, run real customers through it for a month, and only then decide whether you need anything bigger.
If you want to see your AI build this in your own org, we will walk you through it. Pricing is flat per Sentinel and is covered on a short demo call.
KEEP READING
Salesforce Custom Integration: Build One End to End
A Salesforce custom integration, end to end: the contract, named credentials, async callouts, the failure log most builds skip, and sandbox-first deploys.
Quotes in Salesforce: Set Up Standard Quoting Step by Step
Set up quotes in Salesforce step by step: enable Quotes, build a template, generate PDFs, sync to the opportunity, and spot where CPQ quote automation starts.
See Sentinel Workspace build in your own CRM on a short demo call.
Book a Demo Call