Skip to main content
The agent action allows you to interact with AI models like OpenAI’s GPT to process queries, generate content, and execute tool functions. Agents can be enhanced with tools that give them the ability to call other actions in your workflow or external services via MCP.

agent

Interacts with AI models to process queries and optionally execute tool functions.

Integration ID

The AI integration to use (e.g., OpenAI).

System Prompt

Instructions that define the agent’s behavior and context. This sets the personality, constraints, and capabilities of the agent.

User Prompt

The user’s message or query to send to the agent.

Tool Configurations

An array of tool configurations that give the agent additional capabilities. Tools can be MCP endpoints or workflow actions. See Tool Configuration for details.

Conversation ID

An identifier for maintaining conversation context across multiple interactions.

Return Last Message

When enabled, returns only the final message instead of the full conversation history.

File Upload

Configuration for file inputs to the agent.

Examples

Simple Query

A basic agent that answers user questions:

Structured Response

Generate structured data using the agent:

Conversational Agent

Maintain conversation context across requests:

Tool Configuration

Tools extend an agent’s capabilities by allowing it to perform actions during its reasoning process. There are two types of tools:

MCP Tools

Connect to external services using the Model Context Protocol (MCP):

MCP Config Fields

Workflow Tools

Allow the agent to execute other actions in your workflow:

Workflow Config Fields

Use tool_param to access parameters passed by the agent to your workflow tool.

Common Patterns

RAG (Retrieval-Augmented Generation)

Combine vector search with an agent for knowledge-based responses:

Multi-Tool Agent

An agent with multiple workflow tools:

Content Generation

Generate content with specific formatting:

Next Steps

Vector Operations

Build RAG pipelines with vector search.

Data Operations

Connect agents to your database.

HTTP Requests

Call external APIs from your workflows.

Actions Overview

Learn the fundamentals of ServFlow actions.