Testing and Publishing a Workflow
Run a workflow the way a Member would with Preview, fix the warnings that block it, then publish it and keep it working.
Try It, Fix It, Publish It
Preview runs your workflow exactly as a Member would, in a new tab. It works on drafts, so you can test before you publish and after every change. What you see tells you what to change: on the canvas, or by asking Spark if Spark built the workflow. When it works the way you want, click Publish.
A Preview is a real run. Webhook Steps send their data, the run uses Credits like any run of your tools, and it shows up in Activity and Analytics. See Credits.
Open a Preview
At the top of the workflow editor, click Preview. The workflow opens in a new tab. Keep the editor open in the first tab, so you can switch back, change something, and click Preview again. Your changes are already saved.
Preview is greyed out while the workflow has no Steps, or while a Step has a warning that blocks it. See Fix Warnings Before You Preview or Publish.
If Spark built the workflow, Test Run in Spark does the same thing. See Refining a Tool With Spark.
Run Through It as a Member
Start
If the workflow has a start screen, read it and click the start button. See Workflow Settings.
Work through the Steps
Answer each question the way a Member would. While Steps run, the progress list shows where the run is, and each Step that waits for you shows "Step 2 of 5" or similar above it.
Review where the workflow pauses
At each Agent step with Pause for Human Review, read the result. Try Give Feedback and Edit if they're on, then click Approve or Continue. See Human Review.
Check the completion screen
Read the completion text, play the video if there is one, and open each Asset. Click Run Again to start over.
If a Step fails, the run stops and says what went wrong, or "Run failed."
What the Progress List Shows
Your Members see the same progress list. It lists the Steps in the order they run, each by its Progress Label or, if that's blank, its Step Name. A few Steps don't appear:
- Steps with Hide from Progress List on. A Step with Pause for Human Review always appears.
- Steps on a Condition Step's branch that the run didn't take.
See Building a Workflow on the Canvas.
Leaving and Coming Back
If you leave a run while it waits for you, such as at a Human Input Step or a Human Review pause, the run stays where it was. Open it again from Activity, where it shows as In Progress. Your Members can do the same.
Test Like Your Members
- Test a few different situations, not just one. Write down the answers a few different Members might give, keep them open in another window, and paste them in.
- Check what was saved. If the workflow saves to User Knowledge, a Preview saves to your own profile. Open Profile from your account menu to see what was saved.
- Check the webhooks. If the workflow has a Webhook Step, check that the other system received the data, and look at Webhook Deliveries on the Workflows list. See Webhook Step.
- Check what your Members will see. Member View on the Workflows page opens the Tools page your Members use. It shows every published tool, not only the tools a particular Member has access to.
Fix Warnings Before You Preview or Publish
A warning icon on a Step means something in it needs attention. Hover over the icon to read the message. These warnings turn off Preview and Publish until you fix them:
| Warning | Where | What to do |
|---|---|---|
| "Add agent instructions to this Agent step before publishing." | Agent step | Write the Step's Agent Instructions. See Agent Step. |
| "Select a model for this Agent step before publishing." | Agent step | Choose the Step's model. |
| "Select an agent for this step before publishing." | Agent step using a saved agent | Choose the agent the Step runs. |
| "Connect the True handle to a downstream step." | Condition Step | Connect the True branch to a Step. See Condition Step. |
| "Connect the False handle to a downstream step." | Condition Step | Connect the False branch to a Step. |
Other warnings are reminders and don't block anything, such as an Info Step with nothing to show or an Opt-In Step with no email field chosen. Fix them anyway, because your Members will run into them.
Publish a Workflow
Click Publish at the top of the editor. ThoughtFlow says "Published", and the badge next to the name changes from Draft to Published.
If ThoughtFlow can't publish the workflow, it tells you why:
- A Step has a warning that blocks publishing. The message names the Step and the warning. Fix it and click Publish again.
- Your plan's limit on published workflows is reached. The limit counts published workflows across all your Apps, and depends on your plan. Unpublish a workflow you no longer use, or upgrade your plan. See Your Plan and Trial.
Publishing alone doesn't put the workflow in front of your Members. They also need access to it. See Publishing and Visibility.
Change a Published Workflow
You can keep changing a workflow after you publish it. Every change saves as you make it, so your Members get it right away. Before a bigger change, duplicate the workflow to keep a copy of the version that works. The copy starts as a Secret draft and doesn't keep every setting. See Duplicate a Workflow.
If Spark built this workflow, a later Spark change replaces every Step, including Steps you added on the canvas and your edits to them. See What a Spark Change Replaces.
Unpublish a Workflow
Click Unpublish at the top of the editor. ThoughtFlow says "Unpublished", and Members no longer see the workflow. You can still open, change and preview it, and publish it again later.
When a Preview Doesn't Run
| What you see | Why | What to do |
|---|---|---|
| Preview is greyed out | The workflow has no Steps, or a Step has a warning that blocks it. | Add a Step, or fix the warning. See Fix Warnings Before You Preview or Publish. |
| Tool Unavailable | A Step's AI model has been retired. Members see this too. | Choose a new model for the Step. On the Workflows list, the workflow shows a warning icon. See Agent Step. |
| "This step is still getting ready. Please try Continue again in a moment." | You clicked Continue before the run was ready for that Step. ThoughtFlow tries again on its own before it shows this. Your Members can see it too. | Wait a moment, then click again. |
| "Workflow hook not ready yet. Please try again." | The same, at a Pause for Human Review Step when you click Continue or Approve. Your Members can see it too. | Wait a moment, then click again. |