Autonomous AI agents that can reason, plan, and interact with various tools to complete complex tasks.
Before diving into Agents, you should have a basic understanding of Cortex workflows. If you haven’t already, we recommend familiarizing yourself with creating your first workflow and understanding workflow steps.
Workflow Agents transform your models into autonomous, reasoning systems that interact with tools to perform complex tasks with minimal setup. Connect tools to your model step, provide clear instructions, and watch as the agent orchestrates a sophisticated chain of actions to accomplish your goals.
Creating Your First Agent: Deep Research Assistant
Let’s build something impressive—a comprehensive research assistant that can search the web, browse pages, compare sources, and create a polished report for you. This single agent can accomplish what would typically require complex code or multiple manual steps.
Here’s where the magic begins. Unlike regular workflow steps that connect left-to-right, agent tools connect vertically below the model step through the robot icon. This indicates these tools belong to and are controlled by this specific agent.Connect these three steps as tools to your model:
Open the model step options menu and select “Continue on Error” from the context menu. This allows the agent to recover when tools fail.For example, if the browser tool fails to access a page due to restrictions, the agent can:
Recognize the failure
Try alternative sources
Continue its research using other available information
Research this topic thoroughly: {{input1.output.research_topic}}Use search and browser tools to find reliable information. Compare perspectives, verify facts across multiple sources, and create a comprehensive report with citations. Convert your findings to PDF and provide the link to download it.
That’s it! With just these few lines, the agent knows exactly what to do.
Run the workflow with any research topic and watch the magic unfold! Your agent autonomously breaks down the topic, formulates search queries, browses websites, compares perspectives, verifies facts, and delivers a comprehensive, well-organized PDF report—all without any further input from you.
Let’s see another example. We’ll build a complete email processing system. Every time an email arrives, the agent analyzes it, crafts a personalized response, sends it, and notifies your team—all autonomously and within minutes of setup.
On Receive Email trigger
Model agent with tools:
Send Email Reply
Inform Team (Slack notification)
Copy
Ask AI
You received an email from {{onReceiveEmail.output.from}} with subject "{{onReceiveEmail.output.subject}}".Generate and send a helpful response. Then notify our team in Slack with a brief summary.
While a single agent can handle complex tasks on its own, you can also use multiple agents in one workflow for specialized tasks:
Research agent with specialized search tools
Analysis agent with data processing capabilities
Communication agent with email and notification tools
This modular approach allows you to create specialized agents for different workflow stages, though in many cases, a well-configured single agent can accomplish what might otherwise require multiple steps.
This guide has introduced you to the fundamentals of Cortex agents. Now it’s time to build your own intelligent agents for your unique use cases and experience their transformative capabilities firsthand. Our platform continuously expands with new integrations and capabilities, empowering you to create increasingly sophisticated automated workflows that adapt to your business needs.