How to use the Agent Component in real scenarios

Learn more about how to use the Agent Component in real scenarios, with examples that show when to apply each configuration and what results to expect.

The Agent Component lets you integrate AI models into your pipelines to perform tasks such as classification, moderation, content generation, and data structuring.

In this article, you’ll find a collection of practical use cases that illustrate different ways to configure the component, from simple prompts to combinations with JSON Schema, dynamic data, and MCP Server. Each example demonstrates when to use each approach and what kind of results you can expect.

If you want to explore every configuration option in detail, see the Agent Component documentation.

Configuration with User Prompt only

This configuration uses only the User Prompt parameter to send a request to the AI model.

Advantages:

Practical example

  • Use case: A pipeline integrated with Zendesk receives a new customer ticket. The Agent Component is used to analyze the request and classify its topic.

  • Goal: Classify the topic of a support ticket.

User Prompt:

Classify the topic of the following customer request:  
"My payment was declined, but the amount was debited from my account. I need help fixing this."

Example output:

Configuration with User + System Prompts

This configuration uses both the User Prompt and System Prompt parameters to guide the AI response.

Advantages:

Practical example

  • Use case: After classifying the support ticket, the pipeline queries a knowledge database. The Agent Component is then used again to generate a personalized response for the customer.

  • Goal: Generate a custom response using predefined tone and style.

System Prompt:

User Prompt:

Output:

Configuration with Prompts + JSON Schema

Support for JSON Schema may vary across LLM providers and models. We recommend reviewing the official documentation of the provider and model before configuring to confirm compatibility.

This configuration uses User Prompt, System Prompt, and JSON Schema to generate a structured response.

Advantages:

Practical example

  • Use case: A pipeline receives a user-generated comment from an ISV (independent software vendor) platform. The Agent Component sends the comment to the AI to evaluate whether it’s harmful or offensive. The returned score is then used to decide whether the comment should be published or if the user should be flagged.

  • Goal: Evaluate and score a comment’s harmfulness and determine whether it should be approved.

System Prompt:

User Prompt:

JSON Schema:

Output:

Configuration with Prompts + plain JSON

This configuration uses User Prompt, System Prompt, and plain JSON (no schema) to return a structured response.

Advantages:

Practical example

  • Using the same use case as above, the prompts guide the AI to return a JSON object directly, without schema validation.

System Prompt:

User Prompt:

Plain JSON:

Output:

Configuration with Prompts + Double Braces

This configuration uses the User Prompt field to dynamically inject data from a previous connector using Double Braces expressions. In addition, the System Prompt and Output Format fields are used to guide the AI and generate a structured response.

Advantages:

Practical example

  • Use case: A pipeline receives address data from a REST connector that queries a Brazilian public ZIP code API (OpenCEP). The Agent Component is then used to classify the type of address as residential, commercial or rural, based on the street name and neighborhood returned by the API.

  • Goal: Categorize the address type using dynamic data from the previous connector.

System Prompt:

User Prompt with Double Braces:

JSON Schema:

Output:

MCP Server configuration

This configuration uses an MCP Server, combined with User Prompt, System Prompt, and JSON Schema, to request and structure documentation generated from external data sources.

Advantages:

Practical example

  • Use case: A pipeline connects to the Deepwiki MCP server to retrieve technical knowledge about a topic. The AI transforms this raw information into structured documentation.

  • Goal: Generate a documentation section about Event-Driven Architecture with a clear title, short description, practical use cases, and best practices.

MCP Server:

System Prompt:

User Prompt:

JSON Schema:

Output:

Last updated

Was this helpful?