New Workflow Features: Branching, Custom Code Execution, Pause Execution

What’s New?

We’re introducing a bunch of new features in our marketplace – workflows. Developers can now branch, pause executions, and utilize custom code in their actions.

Branches:

The branches feature empowers you to create multiple workflow branches based on predefined conditions. With this functionality, each contact is funneled down the proper path based on their interactions or status.

  • Allow New Branches: This option lets users add new branches within an action.
  • Is Predefined Branches Editable: This option permits users to alter existing predefined branches.
  • Show Branches Section: This displays detailed branch section info for the user.

Custom Code Action Execution

The Custom Code feature gives users the power to create unique logic for more intricate tasks and integrations. This offers control beyond the usual APIs, allowing users to automate complex tasks and integrate with services not supported by the API.

  • Code can be written in the Code Editor.
  • HTTP requests (GET, PUT, POST, DELETE, etc.) can be input via a button.
  • Custom values can be inserted using the picker.
  • The output should be a JavaScript Object or an Array of Objects.

Pause Execution:

The Pause Execution feature stops a contact at a specific action in the workflow. The contact resumes when a resume webhook is requested.

  • If this toggle is enabled, the contact will remain paused until the resume webhook is called.
  • When enabled, an extras object must be provided as a body payload to the resume workflow endpoint.
  • The Show API Details button displays a sample response for both successful and failed execution webhooks.

In case of Sync Execution

If Pause Execution and branching are turned off, the contact will proceed to the appropriate branch based on the branchId provided in the API response or from Custom Code using a return statement. The branchId determines the branch the contact will follow.

In case of Async Execution

For asynchronous execution, when Pause Execution is disabled, the branchId must be sent to the webhook, which can be found in the Show API Details button, to resume the contact’s progress.

Liked this post? Share with others!

Subscribe to our newsletter

Collect visitor’s submissions and store it directly in your Elementor account, or integrate your favorite marketing & CRM tools.

Do you want to boost your business today?

This is your chance to invite visitors to contact you. Tell them you’ll be happy to answer all their questions as soon as possible.

Learn how we helped 100 top brands gain success