When the mabl agent authors a test, it can now create new reusable flows, not just add flows that already exist. The agent follows your team's flow naming conventions and testing best practices, including keeping each flow focused on one task so it stays easy to reuse.
Agent-created flows behave like any flow you build yourself: you can reuse them across tests, edit them, and track their version history.
How it works
The mabl agent only creates flows when agent instructions or the test prompt instruct it to do so.
Agent instructions
To help the agent make better choices about when to create a new flow, add guidelines as agent instructions in Agents > Settings. For example:
Create flows for reusable actions that aren't already covered by an existing flow in the workspace:
- Navigation flows: if your goal is to test page X, you will create/reuse a flow to navigate to the page.
- Fill form flows: if you need to create an entity, create/reuse a flow to fill out the form. If the created entity includes a unique ID, capture that ID in a variable for use later in the test.
- Don't create flows with just one step.
Test prompts
You can also specify when to create flows on a test-by-test basis. Just tell the agent what sequence of steps should become a reusable flow.