Skip to main content
If you are organizing essential services or emergency response to COVID-19, activate your free account

There’s a simple workaround to trigger path and path step assignment via our api.   The magic works in creating a survey question for each path and a possible response (survey answer) for each path step you want to assign supporters to as part of your workflow.

For example, take a look at the various steps in the following path: 

To trigger the automatic path assignment, you’ll need to create a single question survey where each response maps to the individual steps in your path. 

Within each possible response you can configure the path step that a user will land on when the relevant survey response is triggered.  This is how you can control for path movement.

Once you’ve got your survey question and path journey aligned, it’s as simple as making the post request for the correct step along the way. 

Here’s an overview of the full flow: https://www.loom.com/share/047d5caaa3c84af199f4627b651

Additionally, keep the following in mind when trying out this solution: 

This solution has the same behavior as if you triggered path movement from a page action like a petition signature, which includes that a user can’t travel backwards on a path, only forward. 

You can use the contacts API to read path ID and path step ID for existing database records as well as the paths API index endpoint to find all the paths and steps in a nation.

Surveys and possible responses are also programmable via the surveys API.

We hope you find this workaround helpful as you navigate optimizing your supporter journey!

Share this post

Be the first to comment

Wrap code snippets in <code></code> tags.
Please check your e-mail for a link to activate your account.