SiamCafe.net Blog
Technology

Kryon RPA คือ ระบบ Robotic Process Automation ทม AI Process Discovery

kryon rpa คอ
Kryon Rpa คืออะไร | SiamCafe Blog
2025-12-25· อ. บอม — SiamCafe.net· 1,551 คำ

Kryon RPA ?????????????????????

Kryon ???????????? Robotic Process Automation (RPA) platform ?????????????????????????????????????????? AI-powered Process Discovery ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ?????? processes ?????????????????????????????????????????? automation ??????????????????????????? bot ????????? recorded actions ?????????????????? implementation ????????????????????????????????????????????????????????????????????????

RPA ?????????????????????????????????????????????????????? software robots (bots) ??????????????????????????? ??????????????? ???????????? ??????????????????????????????, copy-paste ?????????????????????????????????, ????????? email, generate reports ????????? bot ????????????????????????????????????????????????????????????????????????????????? ???????????? ??????????????? ?????????????????????????????? ????????????????????????????????? ?????????????????????????????? ??????????????? 24/7

Kryon ?????? 3 components ???????????? Kryon Studio ??????????????????????????????????????? automation workflows, Kryon Console ?????????????????? bots, schedules, users, Kryon Process Discovery AI ??????????????????????????? desktop activities ?????? automation opportunities ??????????????????????????? ???????????? feature ???????????????????????? Kryon ?????????????????????????????? RPA tools ????????????

??????????????????????????????????????????????????? Kryon

Setup Kryon RPA environment

# === Kryon RPA Setup ===

# 1. System Requirements
# Server:
#   - Windows Server 2019/2022
#   - 8+ CPU cores, 32GB+ RAM
#   - SQL Server 2019+
#   - .NET Framework 4.8
#   - IIS 10

# Robot Machine:
#   - Windows 10/11 Pro
#   - 4+ CPU cores, 8GB+ RAM
#   - Screen resolution: 1920x1080
#   - Applications to automate installed

# 2. Infrastructure Setup (PowerShell)
# Install IIS
Install-WindowsFeature -Name Web-Server -IncludeManagementTools
Install-WindowsFeature -Name Web-Asp-Net45

# Install .NET Framework 4.8
# Download from Microsoft

# 3. Database Setup (SQL Server)
cat > setup_db.sql << 'EOF'
-- Create Kryon databases
CREATE DATABASE KryonServer;
CREATE DATABASE KryonProcessDiscovery;

-- Create service account
CREATE LOGIN KryonService WITH PASSWORD = 'StrongPassword123!';
USE KryonServer;
CREATE USER KryonService FOR LOGIN KryonService;
ALTER ROLE db_owner ADD MEMBER KryonService;

USE KryonProcessDiscovery;
CREATE USER KryonService FOR LOGIN KryonService;
ALTER ROLE db_owner ADD MEMBER KryonService;
GO
EOF

# 4. Kryon Server Installation
# - Download Kryon installer from portal
# - Run installer as Administrator
# - Configure:
#   - Database connection string
#   - IIS site binding (HTTPS recommended)
#   - Service account credentials
#   - License key

# 5. Robot Agent Installation
# On each robot machine:
# - Install Kryon Robot Agent
# - Configure server URL
# - Register robot with Console
# - Test connection

# 6. Network Requirements
# Ports:
#   443  - Console web UI (HTTPS)
#   8080 - Robot communication
#   1433 - SQL Server
#   5672 - Message queue (RabbitMQ)

# 7. Security Configuration
# - Enable HTTPS on Console
# - Configure Active Directory integration
# - Set up role-based access control
# - Enable audit logging
# - Configure robot credentials vault

echo "Kryon infrastructure ready"

??????????????? Bot ???????????????????????????

??????????????? RPA bot ???????????? Kryon Studio

#!/usr/bin/env python3
# rpa_workflow.py ??? RPA Workflow Design Patterns
import json
import logging
from typing import Dict, List
from datetime import datetime

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("rpa")

class RPAWorkflowDesigner:
    def __init__(self):
        self.workflows = {}
    
    def invoice_processing_workflow(self):
        """Invoice processing bot workflow"""
        return {
            "name": "Invoice Processing Bot",
            "trigger": "New email with invoice attachment",
            "steps": [
                {
                    "step": 1,
                    "action": "Monitor Inbox",
                    "type": "email_trigger",
                    "config": {
                        "folder": "Invoices",
                        "filter": "has:attachment subject:invoice",
                        "check_interval": "5 minutes",
                    },
                },
                {
                    "step": 2,
                    "action": "Download Attachment",
                    "type": "file_operation",
                    "config": {
                        "save_to": "C:/RPA/invoices/incoming/",
                        "supported_formats": ["pdf", "jpg", "png"],
                    },
                },
                {
                    "step": 3,
                    "action": "OCR Extract Data",
                    "type": "ai_ocr",
                    "config": {
                        "engine": "Kryon AI OCR",
                        "fields": ["invoice_number", "date", "amount", "vendor", "tax_id"],
                        "confidence_threshold": 0.85,
                    },
                },
                {
                    "step": 4,
                    "action": "Validate Data",
                    "type": "business_rule",
                    "config": {
                        "rules": [
                            "amount > 0",
                            "date is valid",
                            "vendor exists in master data",
                            "no duplicate invoice number",
                        ],
                    },
                },
                {
                    "step": 5,
                    "action": "Enter into ERP",
                    "type": "ui_automation",
                    "config": {
                        "application": "SAP",
                        "transaction": "MIRO",
                        "fields_mapping": {
                            "vendor": "LIFNR",
                            "amount": "WRBTR",
                            "date": "BLDAT",
                        },
                    },
                },
                {
                    "step": 6,
                    "action": "Send Confirmation",
                    "type": "email_send",
                    "config": {
                        "to": "accounting@company.com",
                        "subject": "Invoice {invoice_number} processed",
                    },
                },
            ],
            "error_handling": {
                "ocr_low_confidence": "Send to human review queue",
                "validation_failure": "Email requester for correction",
                "erp_error": "Retry 3 times, then escalate",
            },
            "metrics": {
                "avg_processing_time": "45 seconds",
                "success_rate": "92%",
                "human_review_rate": "8%",
            },
        }
    
    def employee_onboarding_workflow(self):
        return {
            "name": "Employee Onboarding Bot",
            "steps_count": 12,
            "systems_touched": ["HR System", "Active Directory", "Email", "ERP", "Badge System"],
            "time_saved": "4 hours per employee",
        }

designer = RPAWorkflowDesigner()
invoice = designer.invoice_processing_workflow()
print(f"Workflow: {invoice['name']}")
print(f"Steps: {len(invoice['steps'])}")
for step in invoice["steps"]:
    print(f"  {step['step']}. {step['action']} ({step['type']})")
print(f"\nSuccess rate: {invoice['metrics']['success_rate']}")

Process Discovery ???????????? AI

????????? AI ??????????????????????????? processes ????????????????????????????????? automation

#!/usr/bin/env python3
# process_discovery.py ??? AI Process Discovery
import json
import logging
from typing import Dict, List

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("discovery")

class ProcessDiscovery:
    def __init__(self):
        self.processes = []
    
    def analyze_automation_potential(self, process):
        """Score a process for automation suitability"""
        score = 0
        factors = []
        
        # Volume (high volume = good for automation)
        volume = process.get("executions_per_month", 0)
        if volume > 1000:
            score += 30
            factors.append({"factor": "High volume", "score": 30})
        elif volume > 100:
            score += 20
            factors.append({"factor": "Medium volume", "score": 20})
        else:
            score += 5
            factors.append({"factor": "Low volume", "score": 5})
        
        # Rule-based (structured = easier to automate)
        if process.get("rule_based", False):
            score += 25
            factors.append({"factor": "Rule-based", "score": 25})
        
        # Digital inputs (vs paper)
        if process.get("digital_inputs", False):
            score += 15
            factors.append({"factor": "Digital inputs", "score": 15})
        
        # Stable process (doesn't change often)
        if process.get("stable", True):
            score += 15
            factors.append({"factor": "Stable process", "score": 15})
        
        # Error-prone (automation reduces errors)
        error_rate = process.get("error_rate_pct", 0)
        if error_rate > 5:
            score += 15
            factors.append({"factor": f"High error rate ({error_rate}%)", "score": 15})
        
        # Determine recommendation
        if score >= 70:
            recommendation = "Highly recommended for automation"
            priority = "HIGH"
        elif score >= 50:
            recommendation = "Good candidate, consider automation"
            priority = "MEDIUM"
        elif score >= 30:
            recommendation = "Partial automation possible"
            priority = "LOW"
        else:
            recommendation = "Not recommended for automation"
            priority = "SKIP"
        
        return {
            "process": process.get("name"),
            "automation_score": score,
            "priority": priority,
            "recommendation": recommendation,
            "factors": factors,
            "estimated_roi": self._estimate_roi(process, score),
        }
    
    def _estimate_roi(self, process, score):
        volume = process.get("executions_per_month", 0)
        time_per_exec = process.get("time_minutes", 0)
        hourly_cost = process.get("hourly_cost", 250)
        
        monthly_hours_saved = (volume * time_per_exec * 0.8) / 60  # 80% automation
        monthly_savings = monthly_hours_saved * hourly_cost
        
        return {
            "hours_saved_monthly": round(monthly_hours_saved, 1),
            "cost_saved_monthly": round(monthly_savings),
            "cost_saved_yearly": round(monthly_savings * 12),
        }

discovery = ProcessDiscovery()

processes = [
    {"name": "Invoice Data Entry", "executions_per_month": 2000, "time_minutes": 15, "rule_based": True, "digital_inputs": True, "stable": True, "error_rate_pct": 8, "hourly_cost": 250},
    {"name": "Report Generation", "executions_per_month": 500, "time_minutes": 30, "rule_based": True, "digital_inputs": True, "stable": True, "error_rate_pct": 3, "hourly_cost": 250},
    {"name": "Customer Complaint Handling", "executions_per_month": 300, "time_minutes": 45, "rule_based": False, "digital_inputs": True, "stable": False, "error_rate_pct": 2, "hourly_cost": 350},
]

print("Process Discovery Results:")
for p in processes:
    result = discovery.analyze_automation_potential(p)
    print(f"\n  {result['process']}: Score {result['automation_score']}/100 ({result['priority']})")
    print(f"  {result['recommendation']}")
    print(f"  Savings: {result['estimated_roi']['cost_saved_yearly']:,} THB/year")

Integration ???????????????????????????????????????

??????????????????????????? RPA ????????? enterprise systems

# === RPA Integration Patterns ===

# 1. SAP Integration
cat > sap_integration.py << 'PYEOF'
#!/usr/bin/env python3
"""SAP integration via RFC/BAPI (using pyrfc)"""
# pip install pyrfc

def sap_create_vendor_invoice(connection_params, invoice_data):
    """Create vendor invoice in SAP using BAPI"""
    # import pyrfc
    # conn = pyrfc.Connection(**connection_params)
    
    bapi_params = {
        "HEADERDATA": {
            "COMP_CODE": invoice_data["company_code"],
            "DOC_DATE": invoice_data["date"],
            "PSTNG_DATE": invoice_data["posting_date"],
            "DOC_TYPE": "RE",
            "CURRENCY": "THB",
        },
        "ADDRESSDATA": {
            "NAME": invoice_data["vendor_name"],
        },
        "ITEMDATA": [{
            "INVOICE_DOC_ITEM": "001",
            "PO_NUMBER": invoice_data["po_number"],
            "PO_ITEM": "00010",
            "TAX_CODE": "V7",
            "ITEM_AMOUNT": invoice_data["amount"],
        }],
    }
    
    # result = conn.call("BAPI_INCOMINGINVOICE_CREATE1", **bapi_params)
    return {"status": "created", "params": bapi_params}

print("SAP integration configured")
PYEOF

# 2. REST API Integration
cat > api_integration.py << 'PYEOF'
#!/usr/bin/env python3
"""Generic REST API integration for RPA"""
import json

class RPAAPIClient:
    def __init__(self, base_url, api_key):
        self.base_url = base_url
        self.headers = {"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"}
    
    def get_pending_tasks(self):
        """Get tasks from queue"""
        return [
            {"id": 1, "type": "invoice", "status": "pending"},
            {"id": 2, "type": "onboarding", "status": "pending"},
        ]
    
    def update_task_status(self, task_id, status, result=None):
        """Update task status after bot processing"""
        return {"task_id": task_id, "status": status, "result": result}
    
    def trigger_workflow(self, workflow_name, params):
        """Trigger RPA workflow via API"""
        return {"workflow": workflow_name, "status": "triggered", "params": params}

client = RPAAPIClient("https://rpa.example.com/api", "demo_key")
tasks = client.get_pending_tasks()
print(f"Pending tasks: {len(tasks)}")
PYEOF

# 3. Database Integration
cat > db_integration.sql << 'EOF'
-- RPA Bot status tracking table
CREATE TABLE rpa_bot_executions (
    id INT IDENTITY(1,1) PRIMARY KEY,
    bot_name NVARCHAR(100) NOT NULL,
    workflow_name NVARCHAR(200) NOT NULL,
    started_at DATETIME2 DEFAULT GETDATE(),
    completed_at DATETIME2,
    status NVARCHAR(20) DEFAULT 'running',
    records_processed INT DEFAULT 0,
    errors_count INT DEFAULT 0,
    execution_time_seconds INT,
    error_details NVARCHAR(MAX),
    created_by NVARCHAR(100)
);

-- Index for reporting
CREATE INDEX idx_bot_executions_status ON rpa_bot_executions(status, started_at);
CREATE INDEX idx_bot_executions_bot ON rpa_bot_executions(bot_name, started_at);

-- View for dashboard
CREATE VIEW vw_bot_daily_summary AS
SELECT 
    bot_name,
    CAST(started_at AS DATE) as execution_date,
    COUNT(*) as total_runs,
    SUM(CASE WHEN status = 'success' THEN 1 ELSE 0 END) as successful,
    SUM(CASE WHEN status = 'failed' THEN 1 ELSE 0 END) as failed,
    AVG(execution_time_seconds) as avg_time_seconds,
    SUM(records_processed) as total_records
FROM rpa_bot_executions
GROUP BY bot_name, CAST(started_at AS DATE);
EOF

echo "Integrations configured"

Monitoring ????????? Analytics

Monitor RPA bots ?????????????????????????????????????????????????????????????????????

#!/usr/bin/env python3
# rpa_analytics.py ??? RPA Analytics Dashboard
import json
import logging
from datetime import datetime

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("analytics")

class RPAAnalytics:
    def __init__(self):
        self.data = {}
    
    def dashboard_metrics(self):
        return {
            "overview": {
                "total_bots": 15,
                "active_bots": 12,
                "total_executions_today": 1250,
                "success_rate_today": 96.5,
                "hours_saved_today": 45.2,
            },
            "top_bots": [
                {"name": "Invoice Processing", "runs": 450, "success_pct": 98, "hours_saved": 18.5},
                {"name": "Report Generator", "runs": 300, "success_pct": 99, "hours_saved": 12.0},
                {"name": "Data Migration", "runs": 200, "success_pct": 95, "hours_saved": 8.5},
                {"name": "Email Classifier", "runs": 180, "success_pct": 93, "hours_saved": 4.2},
                {"name": "Employee Onboarding", "runs": 120, "success_pct": 97, "hours_saved": 2.0},
            ],
            "monthly_trend": {
                "executions": [35000, 38000, 42000, 45000, 48000, 52000],
                "success_rate": [94.2, 95.1, 95.8, 96.2, 96.5, 97.0],
                "hours_saved": [1200, 1350, 1500, 1600, 1750, 1900],
            },
            "roi_summary": {
                "total_investment": 2500000,
                "monthly_savings": 450000,
                "cumulative_savings": 5400000,
                "roi_pct": 116,
                "payback_achieved": True,
                "payback_month": 6,
            },
        }

analytics = RPAAnalytics()
metrics = analytics.dashboard_metrics()
print(f"Active Bots: {metrics['overview']['active_bots']}")
print(f"Today: {metrics['overview']['total_executions_today']} runs, {metrics['overview']['success_rate_today']}% success")
print(f"Hours saved today: {metrics['overview']['hours_saved_today']}")
print(f"\nROI: {metrics['roi_summary']['roi_pct']}%, Payback in month {metrics['roi_summary']['payback_month']}")

FAQ ??????????????????????????????????????????

Q: Kryon ????????? UiPath ????????? Automation Anywhere ???????????????????????????????????????????

A: Kryon ?????????????????????????????? AI Process Discovery ??????????????????????????? desktop activities ??????????????????????????? ?????? automation opportunities ?????????????????????????????? manual process mapping ????????????????????????????????? ??????????????????????????????????????????????????????????????????????????????????????????????????? automate ???????????? UiPath ???????????? market leader community ?????????????????????????????? features ??????????????????????????? AI Computer Vision ?????? ?????? marketplace ?????????????????? components ?????????????????????????????? ??????????????? enterprise ???????????????????????? Automation Anywhere ???????????? cloud-native RPA ?????????????????????????????? web-based bot builder ????????????????????????????????? ????????????????????????????????????????????????????????? ???????????????????????? budget, use cases ????????? existing ecosystem

Q: RPA ?????????????????????????????????????????????????????????????

A: RPA ???????????????????????????????????????????????????????????? Rule-based ??????????????? rules ?????????????????? ??????????????????????????????????????????????????????????????????, Repetitive ?????????????????? ???????????????????????????????????????????????????, High volume ?????????????????? ????????????????????????????????????????????????, Digital inputs/outputs ?????????????????????????????????????????????????????????????????????, Stable process ?????????????????????????????????????????? ?????????????????????????????? data entry, report generation, email processing, invoice processing, employee onboarding ???????????????????????????????????????????????? ???????????????????????????????????????????????????????????????????????????, ?????????????????? process ?????????????????????????????????, ?????????????????????????????? creative thinking, ????????? physical

Q: RPA bot ???????????????????????????????

A: ???????????????????????????????????????????????? RPA bot ???????????????????????? UI ????????????????????? (?????????????????????????????????????????????, element ID ?????????????????????, ?????????????????? redesign), Application update (version ???????????? layout ?????????????????????), Data format ?????????????????????, Network ?????????/timeout ???????????????????????????????????? ????????? stable selectors (ID > CSS > XPath), ??????????????? error handling ????????? retry logic, ????????? API ????????? UI automation ??????????????????????????????, monitor bots alert ???????????????????????????????????????, test bots ????????????????????? application update ??????????????? bots ??????????????????????????????????????? uptime 95-99%

Q: ??????????????????????????????????????????????????????????????? RPA?

A: ????????????????????? scale ???????????????????????? (1-5 bots) 1 RPA developer + 1 business analyst part-time ????????????????????? 2-4 ?????????????????????????????? bot ???????????????????????? (5-20 bots) 2-3 RPA developers + 1 BA + 1 infrastructure admin ???????????????????????? (20+ bots) RPA CoE (Center of Excellence) 5-10 ?????? ?????? developer, BA, solution architect, infrastructure, support ?????????????????????????????????????????? ?????????????????? business process, programming basics, problem solving, attention to detail ?????????????????????????????????????????????????????????????????????????????? RPA tools ???????????????????????????????????? low-code

📖 บทความที่เกี่ยวข้อง

key factor of rpa คืออ่านบทความ → rpa คือทางการแพทย์อ่านบทความ → ระบบ rpa คืออ่านบทความ → ระบบ rpa คืออะไรอ่านบทความ → workfusion rpa คืออ่านบทความ →

📚 ดูบทความทั้งหมด →