Skip to main content

Workflows overview

Workflows are pre-built UI experiences you can use to quickly and easily incorporate essential payroll functionality into your build, such as onboarding an employee or running payroll.

Available workflows

WorkflowDescription
Company onboardingGuided flow to onboard a company to Gusto.
Information requestsHub for responding to outstanding requests from Gusto.
Employee onboardingGuided flow to onboard multiple employees, one at a time.
Employee self-onboardingGuided flow for employee self-onboarding.
Employee dashboardHub for viewing and managing an employee's details.
Employee listHub for viewing and managing all employees, including onboarding new ones.
Employee terminationGuided flow to terminate an employee.
Contractor onboardingGuided flow to onboard a contractor.
Contractor paymentsHub for managing contractor payments.
Payroll processingHub for running and managing payroll.
Payroll executionGuided flow for a single payroll run.
Off-cycle payrollGuided flow for off-cycle payroll.
Dismissal payrollGuided flow for dismissal payroll.
Transition payrollGuided flow for transition payroll.
Time offHub for managing time off policies and schedules.

Why should I use a workflow?

Workflows are simple to add to your application. A single React component placed in your app can encapsulate an entire complex multi-step user experience.

How to use workflows

In this example, we incorporate the entire employee onboarding flow in our application. This component represents multiple steps, including inputting profile details, taxes, and payment info. You can implement it as follows:

import { EmployeeOnboarding, GustoProvider } from '@gusto/embedded-react-sdk'

function MyApp({ companyId }) {
return (
<GustoProvider
config={{
baseUrl: `/myapp/`,
}}
>
<EmployeeOnboarding.OnboardingFlow companyId={companyId} onEvent={() => {...}} />
</GustoProvider>
)
}

This example renders a fully functional flow with the following steps:

Fully functional flow rendered with default workflow steps

As you can see, workflow components let you implement complex flows in a simple way.

For detailed usage, props, events, and block references for each workflow, follow the links in the table above.