Build Your First AI System
Most organizations start with prompts.
Some move to agents.
A few build workflows.
But production AI requires more than any individual component.
It requires AI Systems.
In this guide, we’ll build an Employee IT Support Assistant that can:
- Understand employee requests
- Retrieve company policies
- Interact with internal systems
- Request approvals
- Execute business actions
- Provide complete auditability
By the end, you’ll have built a production-ready AI system.
Video Tutorial
Section titled “Video Tutorial”Follow the complete walkthrough to create your first AI System in Karyam.
The Problem
Section titled “The Problem”An employee submits a request:
My VPN access has expired. Can you restore it?
A typical chatbot might answer:
Please contact IT support.
A production AI system should do much more.
The Desired Outcome
Section titled “The Desired Outcome”Our AI system will:
- Understand the employee request.
- Retrieve the company’s VPN policy.
- Check employee status in the HR system.
- Determine whether approval is required.
- Request manager approval.
- Create an IT support ticket.
- Record the complete execution history.
The Final Architecture
Section titled “The Final Architecture”Employee Request ↓AI Agent ↓Vector Search ↓Skills & MCP Tools ↓Approval Workflow ↓IT Ticket Creation ↓Observability & Audit LogsThis is an AI System.
Not a chatbot.
Step 1 — Configure Enterprise Retrieval
Section titled “Step 1 — Configure Enterprise Retrieval”Every AI system starts with context.
Before an agent can understand company policies, we need to configure the retrieval pipeline.
In Karyam, enterprise knowledge is powered by:
Vector Database +Embedding Model +Embedding Listener +File Upload ↓RAG PipelineConfigure an Embedding Model
Section titled “Configure an Embedding Model”Navigate to:
Models → Create ModelSelect a model of type:
EmbeddingExamples:
- text-embedding-3-large
- Gemini Embedding
- Voyage AI
- Ollama Embeddings
This model converts uploaded content into vectors.
Create a Vector Database
Section titled “Create a Vector Database”Navigate to:
Vector Databases → Create Vector DatabaseChoose your preferred provider from the list
This database stores embeddings generated from uploaded files.
Create an Embedding Listener
Section titled “Create an Embedding Listener”Navigate to:
Listeners → Create ListenerConfigure:
| Setting | Value |
|---|---|
| Type | Embedding Listener |
| Folder Path | /knowledge-base/it-support |
| Vector Database | IT Support DB |
| Embedding Model | text-embedding-3-large |
Embedding listeners automatically react to new file uploads.
Upload Enterprise Documents
Section titled “Upload Enterprise Documents”Upload:
- VPN Policy.pdf
- IT Access SOP.pdf
- Employee Access Guidelines.pdf
Example:
knowledge-base/└── it-support/ ├── vpn-policy.pdf ├── access-sop.pdf └── employee-guidelines.pdfThe ingestion pipeline executes automatically:
File Uploaded ↓Listener Triggered ↓Parsing & Chunking ↓Embedding Generation ↓Vector Storage ↓RAG Run CreatedNo manual synchronization is required.
Verify Ingestion
Section titled “Verify Ingestion”Navigate to:
RAG RunsYou can observe:
- File parsing
- Chunk generation
- Embedding creation
- Vector storage
- Errors and retries
Every ingestion operation is fully observable.
Step 2 — Create an AI Agent
Section titled “Step 2 — Create an AI Agent”Navigate to:
Agents → Create AgentConfigure:
| Setting | Value |
|---|---|
| Name | IT Support Assistant |
| Model | Claude Sonnet |
| Temperature | 0.2 |
| Max Steps | 10 |
Attach:
- HR Skills
- Ticketing Skills
- MCP Tools
- Approval Flow
System Instructions
Section titled “System Instructions”You are an IT Support Assistant responsible for handling VPN access requests.
Responsibilities:- Verify user eligibility.- Retrieve company policies.- Request approvals when required.- Create IT tickets after approval.
Rules:- Never bypass approval requirements.- Always reference retrieved company knowledge.- Escalate uncertain situations to human operators.Step 3 — Connect Skills and MCP Tools
Section titled “Step 3 — Connect Skills and MCP Tools”AI becomes useful when it can act.
Attach:
Skills
Section titled “Skills”- HR System Lookup
- Ticket Creation
- Email Notifications
MCP Tools
Section titled “MCP Tools”- HR Database
- Active Directory
- Jira Service Management
Your AI system can now interact securely with business systems.
Step 4 — Build the Workflow
Section titled “Step 4 — Build the Workflow”Navigate to:
AI Flows → Create FlowCreate:
Employee Request ↓Retrieve Context ↓Check HR Status ↓Approval Required? ↙ ↘ Yes No ↓ ↓Manager Create TicketApproval ↓ ↓ ↓Create Ticket Notify EmployeeBusiness processes require control.
Karyam workflows combine intelligence with governance.
Step 5 — Add Human Approval
Section titled “Step 5 — Add Human Approval”Configure an approval step:
| Trigger | Approval Required |
|---|---|
| VPN Access Restoration | Yes |
| Administrator Access | Yes |
| Password Reset | No |
Approvals can be routed to:
- Managers
- IT Teams
- Security Teams
- Compliance Teams
This is Human-in-the-Loop (HITL).
Step 6 — Execute the System
Section titled “Step 6 — Execute the System”The employee asks:
My VPN access has expired. Can you restore it?
The AI system executes:
Understand Request ↓Retrieve VPN Policy ↓Check HR Status ↓Request Approval ↓Create Ticket ↓Notify EmployeeStep 7 — Observe Everything
Section titled “Step 7 — Observe Everything”Production AI requires visibility.
Navigate to:
RunsRAG RunsAudit LogsMonitor:
- Agent Logs
- Workflow Logs
- RAG Runs
- Tool Executions
- Approval Events
- Audit Logs
- Token Usage
- Costs
Example Execution Trace
Section titled “Example Execution Trace”10:01 Employee Request Received10:01 VPN Policy Retrieved10:02 Employee Status Verified10:02 Approval Request Sent10:05 Manager Approved10:05 Ticket Created10:05 Employee NotifiedEvery action is recorded.
Every decision is traceable.
Every workflow is observable.
The Karyam Model
Section titled “The Karyam Model”Vector Databases +Embedding Models +Embedding Listeners +Agents +Skills +Flows +Approvals +Observability ↓Production AI SystemsThis is the Karyam approach.
Build AI Systems. Not Hacks.
Next Steps
Section titled “Next Steps”Congratulations 🎉
You have built your first AI System in Karyam.
Next you can explore:
- Multi-agent collaboration
- Advanced workflows
- Custom MCP integrations
- Enterprise governance
- On-prem deployments
