WEM AI Agent
The AI Agent Resource Tab in your WEM Project
The AI Agent tab in the resource pane is where Agents are created and managed within the WEM Modeler. This interface provides an intuitive way to configure AI Agents, define their properties, and integrate them into your application workflows.
Below is an image illustrating the location of the AI Agent tab in the resource pane. This tab serves as the central hub for managing agents, allowing developers to orchestrate application agents efficiently.

Creating a New Agent
A new AI Agent can be added by right-clicking "AI agents" and selecting the New AI Agent option from the context menu. This will open the "New AI Agent" Wizard, where you can configure the following options:
Name: This serves as the identifier for the AI Agent. Choose a meaningful name to easily recognise the Agent's role within your application.
Instruction: This defines the behaviour and purpose of the Agent. It's essentially a description of what the Agent should do, guiding its decision-making process and responses within the application. This instruction is very important to setup correctly - like Prompt-Engineering for Generative AI is a newly emerging "art" to get better results and ensure security.
Model: Opens the model selector overlay where a specific AI model can be assigned to the agent. The available models update automatically. Each model has different strengths around reasoning capability, response speed, context window size, and cost. Choose based on the agent's role and expected workload. The model can be changed on an existing agent after creation. Note that changing the provider or model of an agent that already has active conversations will clear any provider-specific conversation state.
Options: Available options depend on the selected Provider, Model, and Model version. Each option's Default value reflects the provider's recommended setting for general-purpose use. This a good starting point and should be tweaked on its performance and results.
AI Agent Model Picker
The model used is chosen in the model selector overlay, opened from the Model field in the AI Agent wizard and from the same field on an existing agent. When a model is selected its panel is expanded with more details about the model and its capabilities:
Name
The model identifier as the provider publishes it.
Provider
The provider supplying the model, shown with the provider logo.
Description
A short summary of what the model is suited for.
Input
Which input type the model accepts, for example text, image or PDF, and the size of its context window.
Output
The largest response the model can return. Not available for every model.
Tools
Which hosted tools the model can use: File search, Web search, Code interpreter.
Features
Model capabilities that affect how it behaves, such as whether it is a reasoning model.
Conversation modes
Whether the model supports text conversations, voice conversations, or both.
Released
When the provider released the model.
Knowledge cut-off
The point up to which the model's training data extends.
External docs
A link to the provider's own page for the model, where available.
Filtering the list
By default the overlay shows the models that are current and usable, which keeps the list short and steers new agents toward models with a reasonable lifespan ahead of them.
Deprecated models are hidden by default. Enable Include deprecated to bring them back into the list, for example when you need to match the model an existing agent already uses.
Status indicators
Models are labelled in the overlay so their status is visible before you select one.
Preview pill
![]()
The model is offered for evaluation only and may be discontinued on short notice. Do not build production agents on a preview model.
Deprecated warning (yellow)
![]()
The model still works but is no longer recommended, and has a retirement date. Where the provider publishes one, a recommended replacement model is shown.
Retired error (red)
![]()
The model is no longer available. An agent using it will not work and must be moved to another model.
The same deprecated and retired states are also surfaced outside the overlay: as an icon on the agent in the project tree, and as a message in the publisher overlay. Neither blocks publishing.
Model version
Once a model is selected, the model picker overlay is closed, and the new agent overlay is extended with the chosen models controls. Depending on the model it will also now have a model version control, allowing you to choose between the latest version, or a specific model version.
Latest
The agent always uses the most recent release of the model. Useful during development, or when you want model improvements to arrive automatically.
A specific version
The agent is pinned to that exact release. Recommended for production agents, where consistent and predictable behaviour matters more than having the newest capabilities.
Options
After a model has been selected, the Options panel in the New AI agent overlay becomes available. Options control how the model behaves when it responds: how much it reasons, how long its answers may be, and which hosted tools it may call.
Which options appear depends entirely on the provider, the model and the model version. There is no fixed set. Selecting a different model replaces the panel with that model's own options, and any value you set for an option the new model does not support is discarded.
As the available depends on every model we have categorised the type of options you can encounter:
Hosted tools
Toggles a capability the provider hosts, so the agent can use it without you modelling a function for it.
File search, Web search, Code interpreter
Output limits
Caps the size of a response. The cap covers reasoning tokens as well as visible output.
Max output tokens
Reasoning controls
Determines how much thinking the model does before answering, and whether that thinking is reported back.
Thinking, Reasoning effort, Effort, Reasoning summary
Response shaping
Influences the style or variability of the answer rather than its content.
Verbosity, Temperature
Most options offer a Default value, which applies the provider's own recommended setting. Leave options on Default until you have a reason to change them, then tune based on the agent's actual output rather than in advance.
For what an individual option does, refer to the provider's documentation (OpenAI, Anthropic, Google Gemini, Azure OpenAI, Cerebras). Each option in the Modeler also carries a short description underneath it explaining its effect.
Properties of an Agent
After creating an AI Agent, its properties can be configured to define its behaviour and enhance its capabilities through functions. These properties determine how the Agent interacts with the application, which information it can process and what functionalities it can execute.


Conversation Context
The conversation context acts as a "session field" where relevant information is stored throughout an interaction. This data is not directly processed by the AI, but is part of the WEM Agent's context, allowing the application runtime to utilize it for continuity between exchanges. This enables the Agent to maintain context within a session without increasing token usage.
File Sources
Agents can be assigned files, which are stored in a vectorised format for efficient retrieval. These files function as an additional knowledge base, providing structured information that the Agent can reference. While the AI does not treat the entire file content as tokens, any quoted sections may count towards response tokens. This allows for efficient, context-aware responses without excessive computational costs. Files uploaded as part of the File sources are accessible for all instances of this agent, be mindful of what you include as part of the Files sources. This can best be used to supply the agent with documentation or company policies but should not be used to upload files containing personal or proprietary data.
Functions
Functions extend an Agent's capabilities by enabling it to execute predefined actions. These functions operate similarly to flowcharts in the Modeler but are specifically designed for the Agent to follow. By defining structured flows, the Agent can perform tasks beyond text generation, such as triggering processes, interacting with data sources, or modifying system states based a users input. Because the agent knows which functions it has available to them it best practise to instruct the agent to not share this with users in the agent instructions.
Function parameters
Function parameters define specific fields or lists used by a function to execute correctly. Parameters can be simple values such as strings or numbers, or more complex objects containing multiple fields or even lists. When a user makes a request, the Agent identifies the relevant function and populates its parameters with data extracted from the conversation, file sources, or other context. This ensures that the function operates with precise and relevant information, enabling accurate automation and reducing ambiguity. Parameters may have defined types, required/optional status, and default values, ensuring consistent behaviour across different Agent interactions. Using the required property on certain fields can help to force the agent query the user on all relevant information.
AI Agent Conversation field type
A dedicated AI agent conversation field type is now available in the Data Model. This replaces the previous practice of using a plain text field to store a conversation ID.
When adding a new field, select AI agent conversation as the type and link it to the specific AI agent the conversation belongs to. This makes it immediately clear in the data model that a field represents a conversation, rather than an arbitrary text value. More information on this can be found here.
Last updated
Was this helpful?