Docs
/
/
Platform
Workflows
Trigger guide step

Trigger guide step

Learn how to make a recipient eligible for a guide directly from a workflow or broadcast step.

Use a trigger guide step to update a user's guide eligibility within a workflow or broadcast run. This is useful when eligibility is driven by the context of the workflow or broadcast. For example, recipients may become eligible for an onboarding modal after completing a certain action in a cross-channel onboarding campaign.

How it works

#

A trigger guide step references a guide by its key. When you add the step to a workflow or broadcast, Knock creates a managed static audience behind the scenes and links it to the guide's targeting rules. When the step executes for a recipient, Knock adds that recipient to the managed audience to make them eligible for the selected guide.

If the workflow or broadcast run includes a tenant context, Knock adds the recipient to the audience as a user-tenant pair. Learn more about audiences and tenants.

To receive the rendered guide in your application, eligible audience members must also meet any guide targeting criteria set directly on the guide. This includes property-based targeting and activation rules. Guides may also be subject to throttling depending on how they've been prioritized in against other guides your user is eligible for.

Adding a trigger guide step

#
1

Add the trigger guide step

In the workflow or broadcast builder, drag the Trigger guide step onto your canvas. It's listed alongside your channel steps in the step panel.

2

Select a committed guide

Select the guide you want to make recipients eligible for. Only guides that have been created and committed in the current environment are available for selection.

3

Add optional conditions

Add step conditions to control when the step should run.

Promoting the guide with the workflow

#
  1. Create and configure the guide in your development environment, then commit and promote it.
  2. Create or update the workflow or broadcast with the trigger guide step, commit it, and promote it to the same environment.
  3. After the workflow or broadcast references the guide, it appears in the guide's Triggered by section. You can then update the guide's audience targeting. To only target recipients through the step, leave the guide's audience empty, then commit and promote the guide again.
  4. Repeat this order for each environment on the way to production.

If you promote the workflow before the guide, the guide_key cannot resolve in the destination environment, and the workflow or step may be invalid there. Promoting the guide first ensures that the dependency exists before the workflow is evaluated.

Guide targeting and the managed audience

#

When a guide is referenced by a trigger guide step, its Audience settings reflect that it's targeted by a workflow or broadcast step rather than, or in addition to, a manually-selected audience. You can see which workflows and broadcasts trigger a given guide in the Triggered by section of the guide's details page in the dashboard.

Tenant context

#

When a workflow trigger includes a tenant ID, Knock includes that tenant ID in the recipient's audience membership context. This means the trigger guide step enrolls the recipient as a user-tenant pair, rather than as a user alone. The same applies when a broadcast run includes tenant context.

This context can affect guide eligibility when tenancy strict mode is enabled. See the tenancy strict mode documentation for details.

Frequently asked questions

#

Yes. Trigger guide steps are supported in both workflows and broadcasts.

Not necessarily. As described in How it works, enrollment makes the guide eligible, but your application still needs to fetch (or refetch) guides for that recipient before the guide can render. See rendering guides for how to do this in your application.

Not through the trigger guide step itself, since it only adds recipients to the managed audience. If you need to revoke eligibility, use property-based targeting or activation rules on the guide to control when it's actually shown, rather than relying solely on audience membership.

The trigger guide step becomes invalid. Workflow or broadcast runs skip the invalid step and continue to the next step until the guide reference becomes valid again. Knock records the skipped step and error in the run log, but the run does not exit with an error state. Update the step to reference a different committed guide, or restore the guide's committed state.

New chat