Workflow Preview and Publish
Review, preview, improve, publish.
Portal Workflow
Open the draft in Portal
Review generated metadata, copy, checkpoints, and success-state hints.
Launch Test & Improve
Run the draft in your app so reviewers can catch copy, targeting, and timing issues.
Apply corrections
Save inline edits, feedback-based fixes, or a step re-teach before the next preview pass.
Publish after validation
Release only after the latest draft version matches the real customer path.
What To Validate
Broken targets make the experience feel unreliable immediately.
The user should return to the intended task, not a nearby page.
Completion copy should reflect the actual post-task screen.
If the user returns halfway through, the language should remain coherent.
Re-Teach During Test & Improve
When a draft step is wrong in preview, an authorized reviewer can pause the run and re-teach only that step from the app. The SDK captures the corrected interaction and submits it back to the current draft in the background.
- Use re-teach for localized issues such as a changed button, a fragile selector, or the wrong expected screen state.
- You do not need to record the full workflow again when only one step needs correction.
- Re-teach is an internal review tool. End users only experience the published workflow, not the authoring flow behind it.
Use inline edits for simple copy or ordering changes.
Use re-teach when the step logic, target, or expected user action needs to be shown again in the product.
How New Versions Are Created
Portal versions are created when a draft change from Test & Improve is applied. That includes accepted feedback changes and step re-teach corrections.
- Start Test & Improve on a draft workflow.
- Apply a correction from feedback or from a re-teach capture.
- Portal saves the updated draft as the next version, such as
v2,v3, or later. - Use Version Inspector to compare applied changes, keep refining the current draft, then publish when ready.
Versions are draft revisions for your team. Customers continue to see the currently published workflow until you publish the updated draft.
Programmatic Launch
URL-triggered previews are useful, but production apps often launch a workflow from a button, checklist item, empty state, or chat bubble search flow. Use startWorkFlow(workFlowId) to fetch and start an onboarding workflow directly from code.
import { useModelNex } from '@modelnex/sdk'
export function SetupButton() {
const { startWorkFlow } = useModelNex()
return (
<button onClick={() => void startWorkFlow('FLOW_ID')}>
Start Workspace Setup
</button>
)
}
In Portal, these code-driven and search-driven launches are grouped under the manual trigger label "Manual or Search".
Fixing Preview Failures
You usually do not need to re-record a flow. Most preview failures can be fixed directly in Portal.
Agent cannot find the element
Edit the selector or text-match rule so the step points at a stable element.
Step fires before page load
Add a wait condition or a short delay so the target exists before the agent acts.
Recovery lands on the wrong page
Update the step target URL so recovery takes the user back to the intended route.
Narration sounds confusing
Rewrite the step copy in Portal and re-run the preview immediately.
Use Workflow Authoring for capture and draft generation. Use this page for review, preview, testing, and publish decisions.