Skip to content
Karyam

Create Your First AI Flow

AI Flows are how organizations transform AI capabilities into repeatable business processes.

Unlike a simple prompt, an AI Flow can:

  • Accept structured inputs
  • Execute AI reasoning
  • Use Skills and MCP tools
  • Trigger sub-flows
  • Produce structured outputs
  • Integrate into larger workflows

In this guide, we’ll create an Incident Analysis Flow that analyzes production incidents and generates structured summaries.


Follow the complete walkthrough to create your first AI Flow in Karyam.


Input Parameters
↓
System Instructions
↓
User Prompt
↓
AI Reasoning
↓
Skills & MCP Tools
↓
Output Formatting
↓
Structured Result

Navigate to:

Workspace → AI Flows → Create New Flow

You will see the following sections:

  • General Information
  • Model & Tuning
  • Skills & Tools
  • Categories
  • Inputs
  • System Instructions
  • User Prompt
  • Output Format

Choose a business-oriented name that clearly describes the purpose of the flow.

Examples:

  • Incident Analyzer
  • Vendor Risk Assessment
  • Meeting Summarizer
  • Contract Reviewer
  • Customer Feedback Classifier

Avoid:

  • Flow 1
  • Test Flow
  • AI Workflow

Explain what the flow does and where it will be used.

Example:

Analyzes production incidents and generates structured reports
including root cause, impact assessment, and recommended actions.

Choose an icon that visually represents the flow.

This makes large workspaces easier to navigate and organize.


Select the model that best matches the complexity of your workflow.

Use Case Recommended Model
Classification GPT-5 Mini
Summarization Claude Sonnet
Deep Analysis GPT-5
Cost-sensitive Tasks Gemini Flash
Private Infrastructure Ollama

Controls how many reasoning iterations the flow can perform.

Flow Type Recommended Steps
Classification 5
Summarization 8
Analysis 10
Multi-stage Reasoning 15+

Higher values improve reasoning quality but increase latency and cost.


Controls creativity.

Value Behavior
0.0 Deterministic
0.2 Focused
0.5 Balanced
0.8 Creative
1.0 Highly creative

Recommended:

  • Data extraction → 0.0
  • Analysis → 0.2
  • Content generation → 0.8

Enable caching to improve response times and reduce costs for repeated requests.

Recommended for:

  • Summarization flows
  • Classification flows
  • Frequently executed workflows

Flows become significantly more powerful when connected to external systems.

Attach up to 5 Skills.

Examples:

  • Send Email
  • Search CRM
  • Query Database
  • Create Ticket

Attach up to 5 MCP Tools.

Examples:

  • GitHub
  • Slack
  • PostgreSQL
  • Jira
  • Salesforce

Attach up to 5 sub-flows.

This allows complex workflows to be broken into smaller reusable components.

Example:

Incident Analysis
├── Root Cause Analysis
├── Impact Assessment
└── Executive Summary

Categories help organize large collections of flows.

Examples:

  • Operations
  • Finance
  • HR
  • Customer Support
  • Engineering

You can assign up to 5 categories to each flow.


Inputs allow flows to receive dynamic values at runtime.

Click Add Input Field to create an input.

Examples:

Name Type
incident_id Text
customer_name Text
severity Select
region Text

Inputs can be referenced using placeholders:

Analyze incident ${incident_id}
for customer ${customer_name}
with severity ${severity}.

At runtime these placeholders are automatically replaced with real values.


System Instructions define:

  • Role
  • Behavior
  • Constraints
  • Decision boundaries
  • Tone

These instructions run before every execution.

Example:

You are a Senior Site Reliability Engineer.
Responsibilities:
- Analyze incidents.
- Identify probable root causes.
- Recommend mitigation actions.
Rules:
- Never speculate without evidence.
- Prefer data-driven conclusions.
- Return concise technical explanations.

The User Prompt defines the task the flow performs.

Unlike System Instructions, this prompt changes between flows.

Example:

Analyze the following incident:
Incident ID: ${incident_id}
Severity: ${severity}
Region: ${region}
Provide:
1. Root Cause
2. Impact Assessment
3. Recommended Actions

Output Formats allow flows to return structured results.

Examples:

{
"root_cause": "",
"impact": "",
"actions": []
}

## Root Cause
## Impact
## Recommendations

Field Value
Root Cause
Impact
Actions

If left empty, the AI will return its default output format.


Setting Value
Model GPT-5
Steps 10
Temperature 0.2
Skills Jira Search
MCP Tools PostgreSQL
Inputs incident_id, severity
Output JSON

Prefer smaller reusable flows over large monolithic workflows.


Dynamic inputs make flows reusable across multiple scenarios.


JSON outputs are easier to consume in downstream workflows and automations.


Break large business processes into smaller reusable building blocks.


Monitor:

  • Flow Logs
  • Execution Traces
  • Token Usage
  • Cost Analytics

Production AI requires visibility.


Congratulations 🎉

You have created your first AI Flow in Karyam.

Next, connect your flow to Agents, Skills, and business systems to automate real work.