Skip to main content
Tired of repeating context to the base AI model, manually pasting internal documents, and re-stating answer formats every time? An Agent bundles a Knowledge Base + Tool + Guardrail + System Prompt together to create a per-department-optimized AI assistant.
In one line — bundle a system prompt + knowledge base + tools + guardrails into a task-specific AI tailored per team.
  • When does it fit? When the same context repeats turn after turn, or when answer format and internal-source citations must stay consistent
  • How long to build? A minimal prompt-only agent takes ~5 min · a full setup with KB, tools, and guardrails is closer to 30 min
  • What about cost? Each response adds KB retrieval and tool routing on top of the base model, so token usage is higher — for casual questions, the base model is cheaper
  • Is this the right tool? If branching and loops dominate, look at Flows. If you only need one or two tools, Tools alone may be enough

Example

“Show me this month’s sales status”
Agent list

View created agents in Workspace > Agents


Agent Processing Pipeline

The agent receives a user question and generates a response through this pipeline. A guardrail validates the input, the Knowledge Base retrieves related documents, tools (API, DB) are invoked when needed, and the LLM produces the final response.

Which Should You Use?

Agent, Base Model, and Flow look similar but fit different situations.

Base Model

When — One-off questions, free-form answers, general knowledge.Casual prompts like “what does this code mean?” or “what’s today’s FX rate” are fastest and cheapest here. No KB retrieval or tool routing means lower token usage.

Agent

When — Repeated KB citations, fixed tone or format, guardrails required.HR policy Q&A, code reviewers, data analysts — the pattern of letting the LLM decide which KB to cite and which tool to call.

Flow

When — Branching, loops, or external API chains dominate.Form input → automated processing → notification, multi-step approvals, and similar automation. You specify the decision flow as nodes, so behavior is predictable.
When in doubt, start with an Agent. If it feels like overkill for simple questions, drop down to the base model; if you find yourself wanting if/else branches, move it to a Flow. You don’t have to pick the right one on the first try.

Creating an Agent

1

Enter basic info

Click Workspace > Agents > ”+ New Agent” and fill in basic info.
Agent basic info

Set the agent's name, description, and profile image

2

Pick the base model

Choose the AI model the agent will use. Pick from the model list registered by the admin.
3

Write the prompts

Define the agent’s role, persona, and response rules.Click the Generate with AI button next to each prompt field — it analyzes the agent’s name, description, and connected resources to draft the prompt automatically.
During AI auto-generation, technical instructions (tool usage, SQL writing rules, etc.) are automatically excluded. The platform handles those — the prompt only contains role, persona, and restrictions.
Task prompt input

Write the Task Prompt (role definition) and Response Format Prompt (output format) separately

The two prompts are used at different stages of agent execution.Separating them lets you change just the output format while keeping the role, or vice versa.
4

Configure prompt suggestions (optional)

Set conversation-starter suggestions shown when an agent is selected in chat.
Providing example questions matched to the agent’s purpose helps users start conversations quickly. Examples: “Summarize this month’s sales”, “Draft a social media post”
5

Connect Knowledge Bases

Attach documents the agent should reference.
  1. Click “Select Knowledge” in the “Knowledge Base” section
  2. Select Knowledge Bases to connect (multiple supported)
Connected Knowledge Bases are searched via RAG and used in answers, with citations.
Agent Knowledge Base connections

When you connect multiple Knowledge Bases, the agent automatically picks the right one based on the question

6

Connect databases (optional)

Connect a Database (DbSphere) for natural-language data queries (NL-to-SQL).
  1. Click “Select Database” in the “Database” section
  2. Select databases (multiple supported)
Ask questions in natural language about the connected DB; the AI generates and runs SQL, returning results.
7

Connect glossaries (optional)

Connect a Glossary so the agent understands your organization’s business terminology.
  1. Click “Select Glossary” in the “Glossary” section
  2. Select glossaries (multiple supported)
Term definitions, synonyms, and context registered in the glossary are reflected in agent responses.
8

Connect tools (optional)

Connect tools for external system integration. In the “Tool Connections” section, choose MCP servers or OpenAPI servers.
If a connected tool’s description is empty, a warning banner appears at the top of the editor. The tool description is the LLM’s primary cue for “when to call this tool”, so a missing description leads to incorrect calls or unused tools. When the banner appears, fill in the description from the tool definition.
9

Capability settings (optional)

Configure advanced features the agent can use. Each capability has 3 states.
Agent capability settings

Each capability is set to one of Disabled / Default On / Default Off

10

Response format (optional)

Constrain the agent’s response to a structured JSON format.In Structured mode, define the response schema with the visual field builder or the raw JSON editor.
Response format settings

Define the response structure with JSON Schema in Structured mode

11

Guardrail settings (optional)

Attach security guardrails to validate I/O.
  • Auto-detect and mask PII
  • Custom pattern filtering
  • Block prohibited words
  • LLM-based content validation
12

Auto-evaluation settings (optional)

Automatically monitor response quality.
Sampling-rate guidance:
Retrieval Quality and Faithfulness evaluations only run when there are Knowledge Base search results. For agents without a KB, choose Response Quality only.
Auto-evaluation settings

Enable auto-evaluation to continuously monitor response quality

13

Access permissions

Set who can use the agent.
Access control settings

Refine agent access by group or organizational unit

14

Save

Click Save & Create to create the agent.

Using Agents

Select in Chat

In the model selector dropdown at the top of the chat, pick an agent. Agents appear in the list alongside regular models.

Invoke with @

Call a specific agent in chat with @agent-name.

Agent Management

Use export/import to move agents created in a development environment over to production.

Real-World Scenarios

Concrete situations from operations and how to configure for them — use these as a starting point if your case is similar.
Situation: HR fields the same questions about leave, benefits, and employment policy. Answers need to cite the specific policy article to be trusted.Configuration:Build sequence: Create KB → upload PDFs → create Agent → connect KB → write system prompt → attach guardrail → publish to orgCommon pitfalls:
  • Stuffing too many docs in one KB hurts retrieval accuracy → keep HR domain separate
  • Without explicit “cite source” instruction, the LLM hallucinates → bake into system prompt
Situation: Each team has different coding rules (naming, error handling, lint), and new hires keep asking on Slack.Configuration:Build sequence: Organize guidelines into a KB → create Agent → assign @code-reviewer handle → invoke in chat with @code-reviewer review this functionCommon pitfalls:
  • Outdated guidelines → set a KB sync cadence
  • Pasting whole files explodes token cost → guide users toward function-level review
Situation: Non-technical users want answers like “TOP 5 sellers this month” without bothering BI for SQL.Configuration:Build sequence: Register DB in DbSphere + extract schema → write data dictionary KB → create Agent → connect DB and KBCommon pitfalls:
  • Skipping schema extraction makes the LLM guess column names → bad SQL
  • Full-table SELECTs blow up costs → enforce LIMIT in the system prompt
  • For sensitive columns (e.g., salary), use column-level blocking on the DB connection
Situation: Embed a chatbot on the product site so anonymous visitors can ask FAQs — but no internal information must leak.Configuration:Build sequence: Split a public-only KB → write guardrail policies → create Agent (public visibility) → select this agent in Embed Widget settings → enable guest modeCommon pitfalls:
  • Mixing internal and public KBs leaks internal info → separate at the KB level
  • Guardrails validate output, KB separation isolates information — you need both
Situation: Summarize weekly meeting notes for Slack. No KB or tools needed — just text shaping.Configuration:Build sequence: Create Agent → write system prompt only → paste notes in chatWhen this is enough: When you only want to bundle “prompt + model” without KB/tools/guardrails. 5 minutes to build. If even simpler, the Prompts feature may be all you need.

Best Practices

Prompt Writing

  1. Define the role clearly — “You are a content specialist on Cloocus’s marketing team”
  2. Provide concrete instructions — response language, length, citation rules, etc.
  3. Set restrictions — no competitor disparagement, no PII exposure, etc.

Knowledge Base Connection

  • Connect only relevant documents: Too many documents actually degrade retrieval accuracy
  • Keep documents up-to-date: Refresh stale information regularly
  • Write tool descriptions: Detailed tool descriptions for Knowledge Bases improve agent KB selection accuracy

Access Permissions

  • Principle of least privilege: Grant access only to those who need it
  • Manage by group/organization: More efficient than per-user assignment
  • Review periodically: Check permission settings on a regular cadence

FAQ

Agents add Knowledge Bases, Tools, system prompts, and Guardrails to a base model, optimizing it for a specific task. Use the base model for general-purpose chat and agents for task-specialized chat.
Yes — connect multiple Knowledge Bases and databases at once. The agent automatically picks the appropriate resource based on the question. Writing a detailed Tool Description for each Knowledge Base improves selection accuracy.
Check the agent’s capability settings:
  • Disabled: The capability is completely hidden in chat
  • Default Off: User must turn it on in the chat input
  • Default On: Auto-enabled. If still not working, check admin settings (web search/image generation connections)
Code Interpreter requires both the agent setting and the user toggle in chat to be on.
Yes — view per-agent usage, token consumption, and auto-evaluation results in the monitoring dashboard.
Yes — use Export to download the JSON, then Import in the other environment. Note: connected Knowledge Bases, tools, and guardrails must be set up separately in the target environment.
Yes — use the toggle at the top-right of the agent card to change its state to Disabled, and it’s hidden from the chat model selector. The agent isn’t deleted and can be shown again.

Knowledge Base

Document-based knowledge stores you can attach to agents

Guardrails

Validate agent I/O for security

Tools

OpenAPI / MCP external service integration