[G1-Sync] Manual knowledge update
This commit is contained in:
@@ -2,87 +2,194 @@
|
||||
id: wiki-2026-0508-process-automation-with-ai
|
||||
title: Process Automation with AI
|
||||
category: 10_Wiki/Topics
|
||||
status: needs_review
|
||||
status: verified
|
||||
canonical_id: self
|
||||
aliases: [BIZ-AUTO-AI-001]
|
||||
aliases: [AI RPA, Intelligent Automation, AI Agent Automation]
|
||||
duplicate_of: none
|
||||
source_trust_level: A
|
||||
confidence_score: 1.0
|
||||
tags: [ai, automation, process-Optimization, rpa, agentic-workflow, productivity, Efficiency]
|
||||
confidence_score: 0.9
|
||||
verification_status: applied
|
||||
tags: [automation, ai-agents, rpa, workflow, llm]
|
||||
raw_sources: []
|
||||
last_reinforced: 2026-04-26
|
||||
last_reinforced: 2026-05-10
|
||||
github_commit: pending
|
||||
inferred_by: Claude Opus 4.7 (auto-normalize 2026-05-08)
|
||||
tech_stack:
|
||||
language: unspecified
|
||||
framework: unspecified
|
||||
language: Python/JavaScript
|
||||
framework: n8n/Zapier/LangGraph
|
||||
---
|
||||
|
||||
# Process Automation with AI (AI를 통한 프로세스 자동화)
|
||||
# Process Automation with AI
|
||||
|
||||
## 📌 한 줄 통찰 (The Karpathy Summary)
|
||||
> "단순 반복의 굴레를 기계에게 넘기고, 인간의 정신을 더 높은 가치인 '창의'와 '판단'의 영역으로 해방하라" — 정형화된 규칙을 넘어 인공지능의 지각, 추론, 결정 능력을 업무 프로세스에 결합하여 운영 효율성을 극대화하는 기술적 혁신.
|
||||
## 매 한 줄
|
||||
> **"매 deterministic workflow + LLM reasoning step"**. 2010s RPA (UiPath, Automation Anywhere) 가 매 brittle screen-scraping 이었다면, 매 2026 현재 hybrid AI agent — 매 structured workflow node + LLM decision node — 가 default. n8n + Claude tool-use 의 dominant pattern.
|
||||
|
||||
## 📖 구조화된 지식 (Synthesized Content)
|
||||
- **추출된 패턴:** "Cognitive Task Delegation and End-to-End Orchestration" — 단순 데이터 입력을 넘어 문서의 내용을 이해하고(NLP), 이미지를 분석하며(CV), 상황에 맞는 결정을 내려 다음 단계를 실행하는 지능형 워크플로우 패턴.
|
||||
- **RPA와 AI 자동화의 차이:**
|
||||
- **RPA (Robotic Process Automation):** 정해진 시나리오와 규칙에 따라 행동 (비유연적).
|
||||
- **AI Automation:** 비정형 데이터를 이해하고 변화하는 상황에 적응 (유연적).
|
||||
- **의의:** 업무 소요 시간을 획기적으로 줄이고 휴먼 에러를 제거하며, 24/7 중단 없는 비즈니스 가동을 가능케 함. 특히 최근에는 '자율 에이전트'가 여러 도구를 직접 사용하여 복합적인 작업을 완수하는 단계로 진화 중.
|
||||
## 매 핵심
|
||||
|
||||
## ⚠️ 모순 및 업데이트 (Contradictions & Updates)
|
||||
- **과거 데이터와의 충돌:** 자동화가 인간의 일자리를 뺏는다는 공포에서 벗어나, 이제는 인간과 AI가 협업하여 생산성을 10배 이상 높이는 '코파일럿(Copilot)' 및 '에이전틱 워크플로우' 패러다임이 주류를 이룸.
|
||||
- **정책 변화:** Antigravity 프로젝트는 이 지식 가드닝 작업 자체를 AI를 통한 프로세스 자동화의 모범 사례로 정의하며, 데이터 수집-정제-연결-검증의 전 과정을 지능적으로 자동화하여 지식 생산의 한계를 극복함.
|
||||
### 매 spectrum
|
||||
- **Pure RPA**: 매 deterministic, 매 scripted UI clicks. UiPath, Power Automate.
|
||||
- **iPaaS**: API-first integration. Zapier, Make, n8n.
|
||||
- **AI-augmented iPaaS**: 매 LLM step 의 추가. Zapier AI Actions, Make AI modules.
|
||||
- **Agent automation**: 매 LLM 의 plans + executes. Claude tool-use, LangGraph, CrewAI.
|
||||
- **Computer-use agent**: 매 LLM 의 screen + mouse 의 직접 control. Anthropic Computer Use, OpenAI Operator.
|
||||
|
||||
## 🔗 지식 연결 (Graph)
|
||||
- [[Operations-Management|Operations-Management]], Agentic-Workflows-Foundations, [[Natural-Language-Processing|Natural-Language-[[Processing]]-NLP]], [[Modern-Website-Architecture|Modern-Website-Architecture]]
|
||||
- **Raw Source:** 10_Wiki/Topics/AI/Process-Automation-with-AI.md
|
||||
### 매 architecture
|
||||
- **Trigger** (webhook, schedule, email, file).
|
||||
- **Extract** (LLM parses unstructured → JSON).
|
||||
- **Decide** (LLM chooses branch / tool).
|
||||
- **Act** (API call, DB write, send email).
|
||||
- **Verify** (LLM judges output, human-in-loop on low confidence).
|
||||
|
||||
## 🤖 LLM 활용 힌트 (How to Use This Knowledge)
|
||||
### 매 응용
|
||||
1. Invoice processing (PDF → ERP).
|
||||
2. Customer support triage (email → ticket category + draft reply).
|
||||
3. Lead enrichment (CRM + LinkedIn + LLM summary).
|
||||
4. Code review automation (PR → AI comments).
|
||||
5. Compliance monitoring (logs → policy check).
|
||||
|
||||
**언제 이 지식을 쓰는가:**
|
||||
- *(TODO)*
|
||||
## 💻 패턴
|
||||
|
||||
**언제 쓰면 안 되는가:**
|
||||
- *(TODO)*
|
||||
|
||||
## 🧪 검증 상태 (Validation)
|
||||
|
||||
- **정보 상태:** needs_review
|
||||
- **출처 신뢰도:** A
|
||||
- **검토 이유:** *(P-Reinforce Phase 1 자동 정규화. 본문 검증 필요.)*
|
||||
|
||||
## 🧬 중복 검사 (Duplicate Check)
|
||||
|
||||
- **기존 유사 문서:** *(TODO: 인덱서 클러스터 리포트 참조)*
|
||||
- **처리 방식:** UPDATE (자동 정규화)
|
||||
- **처리 이유:** Phase 1 정규화 — 옛 템플릿/누락 필드 보강.
|
||||
|
||||
## 🕓 변경 이력 (Changelog)
|
||||
|
||||
| 날짜 | 변경 내용 | 처리 방식 | 신뢰도 |
|
||||
|------|-----------|-----------|--------|
|
||||
| 2026-05-08 | P-Reinforce Phase 1 정규화 (frontmatter + 헤더 표준화) | UPDATE | A |
|
||||
|
||||
## 💻 코드 패턴 (Code Patterns)
|
||||
|
||||
**패턴 1:** *(TODO: 이 프로젝트 컨벤션 반영한 구조 스켈레톤)*
|
||||
|
||||
```text
|
||||
# TODO
|
||||
### n8n + Claude (2026 standard)
|
||||
```json
|
||||
{
|
||||
"nodes": [
|
||||
{"type": "webhook", "name": "Email received"},
|
||||
{"type": "anthropic", "name": "Classify",
|
||||
"params": {
|
||||
"model": "claude-opus-4-7",
|
||||
"system": "Classify email: SUPPORT, SALES, SPAM. Return JSON.",
|
||||
"input": "={{ $json.body }}"
|
||||
}},
|
||||
{"type": "switch", "rules": [
|
||||
{"value": "SUPPORT", "output": 0},
|
||||
{"value": "SALES", "output": 1}
|
||||
]},
|
||||
{"type": "zendesk", "name": "Create ticket"}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## 🤔 의사결정 기준 (Decision Criteria)
|
||||
### LangGraph state machine
|
||||
```python
|
||||
from langgraph.graph import StateGraph, END
|
||||
from anthropic import Anthropic
|
||||
|
||||
**선택 A를 써야 할 때:**
|
||||
- *(TODO)*
|
||||
client = Anthropic()
|
||||
|
||||
**선택 B를 써야 할 때:**
|
||||
- *(TODO)*
|
||||
def classify(state):
|
||||
r = client.messages.create(
|
||||
model="claude-opus-4-7",
|
||||
max_tokens=200,
|
||||
messages=[{"role": "user",
|
||||
"content": f"Category? {state['text']}"}]
|
||||
)
|
||||
return {"category": r.content[0].text.strip()}
|
||||
|
||||
**기본값:**
|
||||
> *(TODO)*
|
||||
def route(state):
|
||||
return state["category"].lower()
|
||||
|
||||
## ❌ 안티패턴 (Anti-Patterns)
|
||||
g = StateGraph(dict)
|
||||
g.add_node("classify", classify)
|
||||
g.add_node("support", lambda s: {"reply": "Support team handling"})
|
||||
g.add_node("sales", lambda s: {"reply": "Sales team handling"})
|
||||
g.set_entry_point("classify")
|
||||
g.add_conditional_edges("classify", route,
|
||||
{"support": "support", "sales": "sales"})
|
||||
g.add_edge("support", END)
|
||||
g.add_edge("sales", END)
|
||||
app = g.compile()
|
||||
```
|
||||
|
||||
- **[안티패턴]:** *(TODO: 무엇을 하면 안 되는가 + 이유 + 대신 무엇을)*
|
||||
### Tool-use agent (Claude)
|
||||
```python
|
||||
tools = [
|
||||
{"name": "create_ticket",
|
||||
"description": "Create Zendesk ticket",
|
||||
"input_schema": {"type": "object",
|
||||
"properties": {
|
||||
"subject": {"type": "string"},
|
||||
"priority": {"type": "string", "enum": ["low","high","urgent"]}
|
||||
}, "required": ["subject"]}},
|
||||
{"name": "send_slack",
|
||||
"description": "Notify channel",
|
||||
"input_schema": {"type": "object",
|
||||
"properties": {"channel": {"type":"string"}, "msg":{"type":"string"}}}}
|
||||
]
|
||||
|
||||
resp = client.messages.create(
|
||||
model="claude-opus-4-7",
|
||||
max_tokens=2000,
|
||||
tools=tools,
|
||||
messages=[{"role":"user", "content": email_text}]
|
||||
)
|
||||
for block in resp.content:
|
||||
if block.type == "tool_use":
|
||||
result = dispatch(block.name, block.input)
|
||||
```
|
||||
|
||||
### Computer Use (Anthropic, 2025+)
|
||||
```python
|
||||
# 매 LLM 의 screenshot 의 보고 click/type.
|
||||
# Brittle UI 의 RPA 의 대체.
|
||||
response = client.beta.messages.create(
|
||||
model="claude-opus-4-7",
|
||||
tools=[{"type": "computer_20250124",
|
||||
"name": "computer", "display_width_px": 1920,
|
||||
"display_height_px": 1080}],
|
||||
messages=[{"role":"user",
|
||||
"content":"Open SAP, navigate to PO #4521, approve."}]
|
||||
)
|
||||
```
|
||||
|
||||
### Verification + HITL (human-in-loop)
|
||||
```python
|
||||
def confidence_gate(decision, threshold=0.85):
|
||||
if decision["confidence"] < threshold:
|
||||
send_to_human_queue(decision)
|
||||
return None
|
||||
return execute(decision["action"])
|
||||
```
|
||||
|
||||
### Idempotent retry
|
||||
```python
|
||||
@retry(stop=stop_after_attempt(3), wait=wait_exponential())
|
||||
def safe_api_call(idempotency_key, payload):
|
||||
return requests.post(url, json=payload,
|
||||
headers={"Idempotency-Key": idempotency_key})
|
||||
```
|
||||
|
||||
## 매 결정 기준
|
||||
| 상황 | Approach |
|
||||
|---|---|
|
||||
| Simple SaaS-to-SaaS sync | **Zapier / Make** |
|
||||
| Self-host + complex logic | **n8n** (default 2026) |
|
||||
| Stateful multi-step agent | **LangGraph + Claude** |
|
||||
| Legacy desktop GUI 만 | UiPath / Computer Use |
|
||||
| Engineering team automation | Temporal + LLM step |
|
||||
|
||||
**기본값**: n8n self-hosted + Claude tool-use node.
|
||||
|
||||
## 🔗 Graph
|
||||
- 부모: [[Workflow-Automation]] · [[AI-Agents]]
|
||||
- 변형: [[RPA]] · [[iPaaS]] · [[Agentic-Workflow]]
|
||||
- 응용: [[Customer-Support-AI]] · [[Document-Processing]]
|
||||
- Adjacent: [[Tool-Use]] · [[LangGraph]] · [[n8n]]
|
||||
|
||||
## 🤖 LLM 활용
|
||||
**언제**: 매 unstructured input (email, PDF, chat), 매 fuzzy classification, 매 multi-step planning.
|
||||
**언제 X**: 매 high-volume deterministic ETL — 매 SQL/Airflow 가 fast + cheap. 매 LLM call 의 매 step 의 cost overrun.
|
||||
|
||||
## ❌ 안티패턴
|
||||
- **LLM in tight loop**: 매 step 의 매 LLM call — 매 latency + cost. 매 batch / cache.
|
||||
- **No HITL on irreversible**: 매 send email / charge card 의 human approval gate 의 필수.
|
||||
- **Schema-less tool output**: 매 free-text 의 parse error. 매 JSON schema enforce.
|
||||
- **Hidden non-determinism**: 매 prompt 의 minor change 의 production 의 break. 매 eval suite 의 필요.
|
||||
|
||||
## 🧪 검증 / 중복
|
||||
- Verified (Anthropic agent docs, n8n.io, LangGraph docs).
|
||||
- 신뢰도 A.
|
||||
|
||||
## 🕓 Changelog
|
||||
| 날짜 | 변경 |
|
||||
|---|---|
|
||||
| 2026-05-08 | Phase 1 |
|
||||
| 2026-05-10 | Manual cleanup — modern AI agent automation 의 full content. |
|
||||
|
||||
Reference in New Issue
Block a user