Skip to main content
Configure every aspect of an agent before execution. For running agents, see Run Agents. Common use cases include customer support assistants, RAG-powered document Q&A, coding assistants, research and data extraction pipelines, and any multi-step AI workflow that needs tools, memory, and knowledge bases.

Create an Agent

Agent Studio is the visual interface for building, configuring, and testing AI agents without writing code.
1

Navigate to the AI Studio

2

Create a new Agent

Use the button in the Project or folder.New entity menu listing Folder, Agent (Beta), Dataset, Deployment, Evaluator, Experiment, Knowledge, Playground, Prompt, Snippet, and Tool.
3

Configure the Agent

Name and describe the Agent. Use the AI assistant to pre-configure role and instructions, or choose Start from scratch for full manual control.Create Agent dialog with fields for Agent Key, Agent Name, and a description field, and options to Create with AI or Start from scratch.The Agent Studio opens with a customizable template.
The Agent Studio has three panels:
Agent Studio showing the three-panel layout: Instructions panel on the left, Configuration panel in the center, and Chat panel on the right.

Agent Studio three-panel layout.

  • Instructions Panel (left): Define what the agent does and how it behaves.
  • Configuration Panel (center): Set up model, tools, context, evaluators, and constraints.
  • Chat Panel (right): Chat with the agent and test their behaviour.
Save the configuration at any time using the Publish button.

Select a Model

Select the language model that powers the agent from the Configuration panel.
Available models depend on the AI Gateway configuration. Switch models at any time and the agent uses the new model on its next execution.
Access the model parameters sub-menu to configure temperature and other parameters.

Access the model parameters sub-menu to configure temperature and other parameters.

Considerations when selecting a model:
  • Speed vs Quality: Smaller models are faster but less capable.
  • Cost: Larger models cost more per token.
  • Capability: Some tasks require more advanced reasoning models.
  • Latency: Models that use reasoning tokens add latency. Consider the impact of Max Iterations and Max Execution Time constraints.

Configure Instructions

The Instructions panel defines the agent’s behavior, goals, and personality. Write clear, exhaustive instructions to keep behavior consistent across executions.
Use the AI button to generate effective instructions for the agent.

Role and Description

  • Role: Defines the agent’s responsibility and coverage. Sent to the agent during execution to reinforce its perimeter.
  • Description: Used by other agents in multi-agent setups to understand what this agent can do. Write a detailed description so orchestrators delegate correctly.
To learn more about multi-agent orchestration, see Multi-Agent Workflows.

Skills

Skills can be used with agents in two ways: Static reference: Use {{skill.key}} directly in the instruction text to inject a Skill’s content at that position on every run. Use this for content that should always be present, such as a company policy or a standard output format. On-demand attachment: Click Skills in the Skills section of the agent configuration to attach a Skill.
Agent configuration panel showing a skill being attached in the Skills section.

Attaching a Skill to an agent for on-demand reference.

Attached Skills are available for the agent to invoke when relevant, without being statically embedded in the instructions. Any update to a Skill propagates automatically to every agent that references or has it attached.

Variables and Templates

Reference dynamic values in agent instructions using double braces: {{variableName}}. Pass a key-value map in the variables field at invocation time and Orq.ai substitutes each variable before execution.
Agent Studio editor showing instructions with a {{language}} variable highlighted in green.

Variables defined in the agent instructions are highlighted in the AI Studio.

Orq.ai supports three template engines. Select the Template Engine from the Agent Settings panel:
  • Text (default): variables use {{double_braces}} syntax.
  • Jinja: full templating with conditionals, loops, filters, and more.
  • Mustache: logic-less templating with sections.
Template Engine dropdown with Text currently selected, and options for Jinja and Mustache.

Select a Template Engine in the Agent Settings panel.

Instructions template:
Invoke the agent:
cURL
Instructions template:
Invoke the agent:
cURL
For a complete reference of all template features including filters, macros, and more, see Prompt Templating.
To test declared variables without calling the API, use the Chat Panel’s Variables button. See Test in the Chat Panel below.

Add Tools

Tools extend the agent’s capabilities by allowing it to interact with external systems, execute code, or fetch information. Add tools from the Tool selection modal.
Tool library showing available tools including Web search, Current date, Write memory store, Delete memory document, http_tool, python_tool, and others.

Browse the tool library to find all tools available in the Project.

Standard Tools

The following tools are available to all agents out of the box:
Create custom tools to use within Agents:
Agent instructions must explicitly mention the available tools so the model knows when and how to invoke them.The model will not use tools unless the instructions clearly describe:
  • What each tool does
  • When to use it
  • How to call it
Example: Web Search Agent

Function Tools

Define custom functions inline with an OpenAPI-style schema.

Python Tools

Embed executable Python code directly in the tool definition. The code runs server-side in a sandboxed environment.
Python code is limited to 1 MB (1,048,576 bytes) per tool: roughly 1 million characters, or about 20,000 lines of typical Python. Larger code returns a Code exceeds maximum size error and does not run.
The code receives declared parameters via params.get(...) and must assign its output to result. Using return is not supported.

HTTP Tools

Reference a pre-created HTTP tool by its key. Create HTTP tools first via the Tools page or API.

MCP Tools

Reference a pre-created MCP tool by its tool_id. Create MCP tools first via the Tools page or API.
See the full Create Agent API reference for all tool configuration options.

Connect Knowledge Bases

Attach a Knowledge Base to ground the agent’s responses in relevant data.
  1. Click Add context in the Configuration panel.
  2. Select a Knowledge Base.
Unlike Deployments, a Knowledge Base attached to an agent is not queried on every request. The agent decides when to use the query_knowledge_base tool based on context.
The Knowledge Base description must be explicit so the agent knows when to query it.
For more on building Knowledge Bases for Agents, see Knowledge Bases.

Connect Memory Stores

Attach a Memory Store to give the agent persistent memory across conversations.
  1. Click Add context in the Configuration panel.
  2. Select a Memory Store.
Memory Stores are created and managed through the API. To learn more, see Using Memory Stores.
To use a Memory Store correctly, a Memory Entity ID must be sent during agent execution. This entity ID scopes memories to a specific user or session.
For more on using Memory Stores with Agents, see the Memory Stores documentation.

Configure Evaluators and Guardrails

Evaluators measure agent performance against defined criteria. Guardrails can block execution when an evaluation fails.
Only pre-configured Evaluators can be attached to agents. To see available standard evaluators or create custom ones, see Evaluators.
  1. Click Add Evaluator or Add Guardrail in the Configuration panel.
  2. Select the evaluator type.
  3. Configure evaluation parameters:
    • Input or Output: whether to evaluate the agent’s input or its output.
    • Sample Rate (Evaluators only): the fraction of executions that trigger evaluation.
Evaluators run automatically during task execution and provide performance metrics.
Output Guardrails and Streaming: When an agent is invoked with streaming enabled, output guardrails are deactivated because they cannot run on partial chunks.

Configure Runtime Constraints

Control resource usage and execution limits from the Configuration panel.
Max Iterations and Max Execution Time compound: an agent requiring many reasoning steps can hit both limits simultaneously. max_execution_time counts only LLM thinking time; tool call and sub-agent call duration is excluded. Start conservative and increase as needed.
Agents are run and scaled by Orq.ai. No infrastructure setup required.

Versions

The Versions tab shows the full history of all published agent configurations. Open it by selecting Versions from the tabs in the Agent Studio page.
Versions tab listing v4.1.0 (latest, beta_env), v4.0.0 (production), v3.0.0, and v2.0.0, each with author and timestamp.

The Versions tab shows the full history of published agent configurations with environment assignments.

Each version entry shows the version number, author, timestamp, optional commit message, and any assigned environment badges (e.g. latest, production).

Comparing Changes

Click on any version to open the Compare Changes view. Use the From and To dropdowns to compare any two versions, including Current (unpublished working changes).
Side-by-side diff view comparing two agent versions, highlighting changed lines in the instructions field.

Compare Changes shows a side-by-side diff between any two versions.

Two view modes are available:
  • Instructions: diff of agent instructions only.
  • Snapshot: full JSON diff of the complete agent configuration.
Use the button to toggle between side-by-side and unified diff layouts.

Restoring a Version

Open Compare Changes (see above), then click Restore next to an older version to load it into the current working draft. Restore does not publish automatically: the agent is loaded into the draft as unpublished changes, and Publish still needs to be clicked for it to become a real version. Earlier versions are never deleted, so restoring is always reversible. Restore replaces the full agent configuration, including connected Knowledge Bases, Memory Stores, Team of Agents, Skills, Variables, and Tools.
If there are unpublished changes already, a confirmation dialog asks for confirmation before overwriting them.

Assigning Environments

Click on a version to assign it to an environment:
  • Select an existing environment (e.g. develop, production).
  • Create environment: add a new environment from this dropdown.
  • Manage environments: open the full environment management settings.
A version can be assigned to multiple environments. Assigned badges appear on the version row.
Version row showing environment badge labels assigned to a specific version.

Environment tags are visible next to version number.

To learn more about environments, see Environments.

Test in the Chat Panel

The Chat Panel, labeled Chat Playground, sends messages to the agent using its current working configuration, including unpublished changes, so instructions, tools, and model changes can be tested before publishing.
  • Send a message to see the agent’s response, including any tool calls it makes.
  • Click Chat History to switch between, rename, or delete previous test conversations.
Use the Variables button above the message input to test declared variables without calling the API. The button shows a count once the instructions declare one or more variables; click a variable to set its value, using Open in panel for longer values. Sent values persist with the conversation until changed.
Chat Panel message input with a Variables button showing a count of 2 declared variables.

Testing an agent's declared variables from the Chat Panel.

The Variables panel lists variables already declared with {{variableName}} in the instructions. Adding a new variable name is not supported from this panel; add the placeholder to the instructions first.