header
login

Continue With (continue_with)

The continue_with function immediately redirects workflow execution to another function. Used for non-linear routing and reusing logic blocks.

How It Works

When execution reaches continue_with, it jumps to the specified function, skipping all blocks in between. This allows you to:

  • Reuse common logic across different branches
  • Create loops and returns
  • Organize complex workflows without duplication

Creating a Transition

Transitions are created automatically when connecting blocks on the canvas. Drag a connection from one block's output to another block's input — the system will create a continue_with with the correct path.

Path Format

The path points to a specific function in the workflow structure:

triggers[0].steps[1].functions[0]

This means: first trigger → second step → first function.

Display in Editor

On the canvas, the block shows the target function's name:

Continue with → Send Message

If the target function has been deleted, it shows [deleted].

Difference from register_next_step

  • continue_withimmediate jump, does not wait for a user message
  • register_next_stepregisters a handler for the user's next message