Skip to main content

AI Components

AI components bring large language model (LLM) capabilities into your automations. Use them to generate content, analyze data, make decisions, and perform complex reasoning tasks.

Overview

Agent Studio provides these AI components:

LLM V2

A straightforward component for generating text using a large language model.

Configuration

Example: Generate Email Content

System Prompt:
User Prompt:

Output

Use Cases

  • Drafting personalized emails
  • Generating meeting summaries
  • Creating task descriptions
  • Writing notification messages

LLM with Structured Output V2

Generates responses that conform to a specific JSON schema, ensuring consistent, parseable output.

Configuration

Example: Extract Action Items

System Prompt:
User Prompt:
Output Schema:

Output

Use Cases

  • Extracting structured data from unstructured text
  • Classifying content into categories
  • Parsing meeting transcripts
  • Generating form-ready data

Pre-Built Agent

Drops an agent you’ve already built (in the Agents section of Agent Studio) into a flow. Instead of configuring a system prompt and tools inline, you pick a ready-made agent and give it a task — it brings its own instructions, tools, and knowledge.

Configuration

If the selected agent uses tools that normally require approval, adding it prompts “Auto-approve these tools?” — because a flow runs unattended and can’t pause for in-loop approval, confirming lets those tools run without prompting. See Third-Party MCP Servers.
See Agents for building the agents you select here.

Agent V2

Legacy. Agent V2 has been superseded by the Pre-Built Agent component above. Existing flows keep working, but build new agent steps with Pre-Built Agent.
An autonomous agent that can reason, use tools, and perform multi-step tasks — you configure its instructions and tools inline on the component.

How Agents Work

Unlike simple LLM calls, agents can:
  1. Reason about what steps to take
  2. Use tools to fetch information or take actions
  3. Iterate through multiple steps to complete a task
  4. Adapt based on intermediate results

Configuration

Available Tools

An agent’s tools are other components in your flow. To give the agent a tool, select that component, click Tool Mode in its toolbar, and connect it to the agent’s Tools input. Only components that support Tool Mode show the button.

Example: Research and Summarize Account

System Prompt:
User Prompt:
Tools connected:
  • Stella V2, to look up the account’s recent activity, health, open tasks and key contacts
  • Current Date V2, so “recent” is measured from today

Output

The agent will:
  1. Ask Stella V2 about the account’s recent activity, health trend, open tasks and key contacts
  2. Use the current date to judge what counts as recent
  3. Synthesize the answers into a structured QBR summary

Use Cases

  • Complex research tasks
  • Multi-step workflows
  • Decision-making with multiple data sources
  • Autonomous customer analysis

Choosing the Right AI Component

Use LLM V2 when...

  • You need simple text generation
  • The task is straightforward
  • You want fast, single-step output
  • Format flexibility is acceptable

Use Structured Output when...

  • You need specific data formats
  • Output will be used by other nodes
  • You need reliable parsing
  • Consistency is important

Use a Pre-Built Agent when...

  • Task requires multiple steps
  • You need to fetch/combine data
  • Complex reasoning is required
  • You want a reusable agent with its own tools

Best Practices

Prompt Engineering

Good prompt:
Poor prompt:
Always include relevant context in prompts:
  • Account information
  • Recent activities
  • Historical data
  • Your specific goals
For complex outputs, provide examples:

Temperature Settings

Error Handling

Add condition nodes after AI components to validate:
  • Output is not empty
  • Required fields are present
  • Values are within expected ranges
Create alternative flows for when AI doesn’t produce usable output:

Troubleshooting

  • Add more specific context to your prompt
  • Include examples of desired output
  • Lower the temperature
  • Provide relevant data via @ notation
  • Use Structured Output component instead of plain LLM
  • Add explicit format instructions to the prompt
  • Include an example in the prompt
  • Connect fewer tools
  • Simplify the task into smaller steps
  • Add more guidance to narrow the search space
  • Check that each tool is in Tool Mode and connected to the agent’s Tools input
  • Add explicit instructions to use specific tools
  • Check that the task actually requires tools

Next Steps

Agents Overview

Build standalone AI agents

Testing Automations

Test your AI components