AI Steps
AI Instruction
Execute complex multi-step actions using natural language instructions
Overview
Unlike traditional automation steps that require explicit action definitions, the AI Instruction step can understand and execute a sequence of actions from a single natural language instruction. The AI agent reasons through the prompt and determines the required steps to accomplish the goal.
Key Benefits
- Automatic Step Resolution: AI determines and executes all necessary sub-steps
- Reduced Test Maintenance: Less brittle than explicit step-by-step instructions
- Handles Dynamic Content: Adapts to changing UI elements and layouts
Usage Examples
Login Flow
The AI agent will automatically:
- Locate the username field
- Enter “[email protected]”
- Locate the password field
- Enter “test123”
- Find and click the login button
Complex Form Filling
Navigation and Interaction
Best Practices
- Be Specific: While the AI is powerful, clear and specific instructions yield the best results
- Include Expected Values: When dealing with forms or inputs, explicitly state the values
- Use Natural Language: Write instructions as you would explain them to a person
Limitations
While the AI Instruction step is powerful, be aware of these limitations:
- Complex conditional logic might require multiple instruction steps
- Very specific UI interactions might be better served by explicit steps
- Performance may vary based on the complexity of the instruction
Tips for Success
- Start with simple instructions and gradually increase complexity
- Monitor execution to ensure desired outcomes
- Keep instructions focused on a specific goal or task
Related Topics
- Variables in AI Steps - How to use variables in AI instructions