Design onboarding around the first useful action.
If your setup asks for everything before anyone can do anything, build it around one useful first action instead. In the example, that's a board with one task on it. Ask only what that action needs, keep the board name in view, make the step count match the real path, move optional work to where it's useful, and end on the work itself.
Setup before the job
I want to add a task, but this setup wants my role, my team size, an avatar and some invitations first. None of those tells me what the board is like to use.
I'd rather get to a board with one task on it, then decide whether I need the rest.

Long setup, teaching variant
First stepPick the first useful result
For this example, the useful starting point is a board called Website refresh with a task called Review homepage copy. That's the point where I can see what I've made. Finishing a profile wouldn't show me that.
Keep the project in view
The first screen asks for the board name. I'd explain that the board holds the work for one project, then let people use their own name for it. Here it's Website refresh.
Once that's entered, the next screen asks for the first task. Keep the board name visible, so the task doesn't feel disconnected from what just happened. You don't need to teach every feature before someone can put one thing on the board.
Make progress honest
Show the remaining work too. The first heading can say "Name your board, step 1 of 2". The next says "Add your first task, step 2 of 2".
Those counts need to match the actual required path. If another choice adds a required step, don't pretend the person is nearly finished when they aren't. A progress indicator should explain where people are, not make the setup look shorter than it is. The W3C has a tutorial on multi-page forms.

Step 2 of 2
The boardOptional work can wait
Optional work can wait somewhere sensible. An invitation might belong on the board once there's something to share. An avatar can stay in profile settings.
Don't call an invitation optional and then block the next screen until an address is entered. And give people a way back without losing the board name. Nobody should have to retype their work because they wanted to check the previous screen.
Keep the setup you need
This doesn't mean every product should have two steps. If a choice changes what the product can safely do, or somebody needs to give permission, it might belong up front. A team tool may genuinely need an organisation before it can create anything. Keep the required work, and explain it.
The question is whether this first action needs the question you're asking now, not whether shorter always wins.
End on the work
At the end, show the actual board with Review homepage copy sitting in To do. Don't cover that moment with another setup checklist. Let people see what they just made.
For your own product, pick one useful thing someone can finish on their first visit, and walk the path to it. Anything you defer still needs a place later. You're changing when it becomes useful, not hoping people never need it.
Pictures for empty app screens
I make Illos, animated illustrations for product sites and apps. If your app has screens with nothing on them yet, empty state illustrations for web apps shows what to put there. The 87 spot illustrations are free, with no account.
Browse free illustrationsQuestions
Anything else? Write to hello@illos.dev.
What is the first useful action in onboarding?
One thing a new person can finish that shows them what the product is like to use. In the example, a board with one task on it.
Should onboarding ask for a role, team size and an avatar?
Only if the first action needs them. In the example none of them did, so the avatar stays in profile settings and invitations wait on the board.
How should onboarding show progress?
With step counts that match the real required path, such as step 1 of 2 and step 2 of 2. Don't make the setup look shorter than it is.
Is shorter onboarding always better?
No. If a choice changes what the product can safely do, or someone needs to give permission, it may belong up front. Keep it, and explain it.