Skip to content

Commit 396f732

Browse files
authored
Update and restructure the Creating Your First Agent guide (#11209)
* Separate approaches into different docs * Proofread * Fix cross-references * Break off shared setup steps from index page * Standardize introductions * Streamline prereqs for starter apps * Edit and add visuals * Update title * Edit * Add security instruction and links * Review and update Agent Commons guide * Language edit * Apply feedback from review * Apply feedback * Apply feedback * Apply feedback * Correct heading capitalization * end user -> end-user * Add text area conversion instruction * Add note about alternative connectors * Update link
1 parent 979d4e4 commit 396f732

21 files changed

Lines changed: 908 additions & 750 deletions

content/en/docs/marketplace/genai/concepts/agents.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ description: "Describes Agents and Agentic Patterns as used with generative AI i
1010

1111
GenAI agents are autonomous computational systems that perform actions in response to triggers such as user input or system events. These agents apply reasoning, execute tools (functions), and leverage data from knowledge bases to determine the most appropriate responses. They may be adaptive (learning-based) or task-specific, designed to automate processes and improve operational efficiency.
1212

13-
If you are interested in creating your own agent, explore the guide on [building your first agent in Mendix](/appstore/modules/genai/how-to/howto-single-agent/). It walks you through how to combine prompt engineering, function calling, and knowledge base integration—all within a Mendix app.
13+
If you are interested in creating your own agent, explore the guide on [Creating Your First Agent](/appstore/modules/genai/how-to/creating-agents/). It walks you through how to combine prompt engineering, function calling, and knowledge base integration—all within a Mendix app.
1414

15-
## Multi-Agent systems
15+
## Multi-Agent Systems
1616

1717
Sometimes, a single agent is not enough for more complex use cases. In such cases, a multi-agent solution is needed. Multi-agent architectures go beyond single-agent implementations when tasks become too complex for one agent to handle alone. While single agents work well for simple, well-defined tasks, more complex or uncertain scenarios require multiple agents to collaborate. Multi-agent systems enable the coordination of business processes, specialized task allocation, and protocol execution by invoking dedicated sub-agents, often dynamically. This approach leads to better performance and more efficient operations compared to relying on a single agent to handle everything.
1818

content/en/docs/marketplace/genai/how-to/create-single-agent.md

Lines changed: 0 additions & 739 deletions
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: "Creating Your First Agent"
3+
url: /appstore/modules/genai/how-to/creating-agents/
4+
linktitle: "Creating Your First Agent"
5+
weight: 60
6+
description: "Introduces an example agent use case and describes three approaches for implementing it with Agents Kit using knowledge base retrieval and function calling."
7+
aliases:
8+
- /appstore/modules/genai/how-to/howto-single-agent/
9+
---
10+
11+
## Introduction
12+
13+
This guide explains how to create an agent in your Mendix app that combines [knowledge base retrieval (RAG)](/appstore/modules/genai/rag/) and [function calling](/appstore/modules/genai/function-calling/) capabilities from Mendix Agents Kit.
14+
15+
## Agent Use Case
16+
17+
{{< figure src="/attachments/appstore/platform-supported-content/modules/genai/genai-howto-singleagent/structure_singleagent.svg" alt="Agent use case structure showing integration of LLM, knowledge base, and function calling" >}}
18+
19+
For this agent, you will set up logic that calls LLMs available via Mendix Cloud GenAI calls to dynamically determine which in-app and external information is needed based on user input. The system retrieves the necessary information, uses it to reason about the actions to perform, and handles execution while keeping you informed and involved where needed.
20+
21+
The end result is an example agent in a Mendix app. In this use case, you can ask IT-related questions to the model, which assists in solving problems. The model has access to a knowledge base containing historical, resolved tickets that can help identify suitable solutions. Additionally, function microflows are available to enrich the context with relevant ticket information, such as the number of currently open tickets or the status of a specific ticket.
22+
23+
This agent is a task agent, which means that:
24+
25+
* It is a single-turn interaction (one request-response pair for the UI).
26+
* No conversation or memory is applicable.
27+
* It focuses on specific task completion.
28+
* It uses a knowledge base and function calling to retrieve data or perform actions.
29+
30+
## Implementation Approaches {#implementation-approach}
31+
32+
You can define an agent for your Mendix app using any of the following approaches, all of which use Agents Kit:
33+
34+
* Use [Agent Editor in Studio Pro](/appstore/modules/genai/how-to/create-agent-with-agent-editor/) for creating and iterating on agent definitions as part of the app model. This is the recommended approach for most use cases because it uses existing development capabilities of the platform to define, manage, and deploy agents as part of a Mendix app.
35+
* Use the [Agent Builder UI to define agents](/appstore/modules/genai/how-to/create-agent-with-agent-commons/) at runtime based on the principles of Agent Commons. It enables versioning, development iteration, and refinement at runtime, separate from the traditional app logic development cycle.
36+
* Use the building blocks of GenAI Commons to [define the agent programmatically](/appstore/modules/genai/how-to/create-agent-programmatically/). This is useful for very specific use cases, especially when the agent needs to be part of the code repository of the app.
37+
38+
## Getting Started
39+
40+
All three approaches require the same foundational setup. Start with the [Set Up Your App for Agent Creation](/appstore/modules/genai/how-to/creating-agents/shared-setup/) guide to do the following:
41+
42+
* Set up your app with the required modules and configuration
43+
* Generate ticket data and ingest historical information into a knowledge base
44+
* Create the domain model and user interface for agent interaction
45+
* Build function microflows that the agent can call to retrieve data
46+
47+
After completing the shared setup, continue with your chosen implementation approach.

0 commit comments

Comments
 (0)