Agent steps let your AI make autonomous decisions about how to complete complex tasks. Instead of following fixed workflows, they work from guidelines you provide and choose which skills to use based on the situation.Think of them as hiring a smart assistant who can adapt to unexpected scenarios. They’ll keep working until they meet your exit conditions, using whatever combination of skills they need to get the job done.Agent steps are powerful but more expensive than standard actions. Use them only when the next steps are genuinely uncertain and you need intelligent decision-making.
AI Agents are powerful but more expensive and potentially less reliable than standard actions. Use them only when the next steps are truly uncertain. When possible, use actions and conditions instead.
Write clear, detailed instructions that define your agent’s role, approach, and expectations. A good prompt should establish the agent’s identity, explain available tools, and set quality standards.Example research agent prompt:
Copy
Ask AI
You are a professional research assistant specializing in company intelligence gathering. Your role is to thoroughly research companies and compile accurate, up-to-date information.RESEARCH TARGETS:For each company, find and verify:- Official company name and any aliases- Founding date and brief history- Current employee headcount (approximate range is acceptable)- Primary business focus and industry- LinkedIn company profile URL- Website URLRESEARCH APPROACH:1. Start with web searches using company name and variations2. Cross-reference information across multiple sources3. Prioritize official sources (company websites, LinkedIn, Crunchbase)4. When exact data isn't available, note "approximately" or "estimated"5. If you can't find specific information, clearly state "not found"QUALITY STANDARDS:- Verify information across 2+ sources when possible- Include confidence level for uncertain data- Organize findings in a clear, structured format- Note your research methodology for transparencyEXIT CONDITIONS:Stop your research when you meet any of these criteria:1. You have successfully found and verified all required company information2. You have conducted thorough research using multiple strategies and documented what you found, clearly noting any unavailable data3. You have performed at least 8 research actions and gathered substantial information
Key elements of effective agent prompts:
Role definition: Who is the agent and what’s their expertise?
Clear objectives: What specific outcomes do you need?
Process guidance: How should they approach the task?
Quality standards: What level of accuracy and detail is expected?
Skills are the tools and actions your agent can use to accomplish its goals. Think of them as giving your agent specific capabilities — like the ability to search the web, send emails, or analyze data.
How skills work:
Your agent can use skills multiple times and in different combinations
Skills can be used in sequence (search, then crawl results) or iteratively (search → analyze → search more if needed)
The agent will explain its reasoning for using specific skills
For our research agent example, add these complementary skills:
Web Search: Finds relevant web pages, articles, and resources across the internet. Your agent will craft search queries, evaluate results, and follow promising leads.
Website Content Crawler: Extracts and analyzes content from web pages. Once the agent finds relevant sites through search, it can crawl them to gather detailed information about companies, verify facts, and extract structured data.
Choose skills that work well together. For research tasks, pairing search capabilities with content extraction lets your agent both find and thoroughly analyze information sources.
Skill selection guidelines:
Start with 2-4 essential skills rather than overloading with options
Consider how skills complement each other in your workflow
Exit conditions tell your agent when its work is complete and it should move to the next step in your workflow. Think of them as success criteria that define “done” for your agent’s task.
How exit conditions work:
Your agent will keep working until at least one exit condition is satisfied
You can have multiple exit conditions — the agent stops when ANY of them is met
Exit conditions should be specific and measurable
The agent evaluates conditions after each action it takes
Example exit conditions for our research agent:
Primary success condition:
Copy
Ask AI
You have successfully found and verified all required company information: company name, founding date, headcount, business focus, LinkedIn URL, and website URL.
Fallback condition:
Copy
Ask AI
You have conducted thorough research using multiple search strategies and documented what information you were able to find, clearly noting any data that remains unavailable after extensive searching.
Time/effort limit:
Copy
Ask AI
You have performed at least 8 research actions (searches and crawls) and gathered substantial information even if some details remain incomplete.
Best practices for exit conditions:
Include a fallback option for when perfect results aren’t achievable
Be specific about what constitutes “completion”
Consider both ideal outcomes and acceptable partial results
Use measurable criteria when possible (e.g., “found at least 80% of required data”)
Only use agent steps when the next actions are genuinely uncertain. For predictable workflows, use standard actions and conditions for better reliability and lower costs.
Write Comprehensive Prompts
Include all five key elements: role definition, clear objectives, process guidance, quality standards, and exit conditions. Structure your prompt with clear sections like the research agent example.
Choose Complementary Skills
Start with 2-4 essential skills that work well together. For research tasks, pair search with content extraction. Avoid overloading with too many options.
Include Multiple Exit Conditions
Always provide a primary success condition and a fallback option. Be specific about what constitutes completion and use measurable criteria when possible.
Test with Diverse Scenarios
Agent steps introduce variability. Test with different inputs to ensure consistent performance and adjust prompts based on results.
If costs are high or results inconsistent, consider using conditions and standard actions instead of AI Agents.