This page does not cover building workflows. Triggers, nodes, and data mapping are defined once on the platform; see the Workflows overview. Here you only expose what is already built.
How exposing a workflow works
A workflow surfaces to a customer through their config: the same object that holds their config field values also lists every workflow available to them and whether each is enabled. You read that list, render it, and write back the customer’s choices.Publish the workflow on the platform
Build and publish the workflow for the connector. Published workflows appear in the customer’s config; unpublished ones do not.
Read the customer's config
Fetch the config for the linked account. The response includes a
workflows array, each with an id, name, enabled flag, and any workflow-level config fields.Let the customer enable and configure it
Render the workflow with a toggle and its fields, then save the customer’s choices back to the config.
Trigger the workflow
Once enabled, the workflow runs from its trigger: a connected-app event, a schedule, or an event your backend fires for the linked account.
Surface workflows in your UI
You have two ways to expose workflows, matching the two frontend flows. Both read and write the same config, so pick by how much UI you want to own.| Approach | What you build | Best when |
|---|---|---|
| Prebuilt component | Drop in the React SDK <Config> component | You want toggles and fields rendered for you |
| Your own UI | Read the config, render workflows yourself, save with the SDK | You need a fully custom settings experience |
With the React SDK component
The React SDK<Config> component renders connection status, config fields, and a toggle for each available workflow. The customer enables a workflow and fills its fields inside the component, and the SDK saves the result. You write no toggle logic.
With your own UI
To render workflows yourself, read the config, then write the customer’s choices back. The config response lists each available workflow with itsid, name, enabled state, and fields.
Read the available workflows
Call
config() for the linked account. The workflows array tells you what to render.SDK
Trigger an exposed workflow
Enabling a workflow does not run it. Once it is enabled for a linked account, it runs from its trigger, which is set when the workflow is built:- A connected-app event, such as a new contact created in the customer’s connected app.
- A schedule, which runs the workflow at a set interval.
- An event your backend fires for the linked account, when your product should kick off the workflow.
The trigger type is part of the workflow definition on the platform, not a Native setting. Choose it when you build the workflow. To fire an event trigger from your backend, send the event for the linked account with the Trigger event API; see Events.
Best practices
See also
- Workflows overview: build the automation on the platform
- Workflows (Native): the Native-side summary
- Config fields: collect the inputs a workflow needs
- React SDK: the
<Config>component reference - Events: fire an event to trigger a workflow