๐Ÿงน Kehrwoche AI
โ† Back to Main

n8n Workflow Design

Interactive visualization of the Kehrwoche AI Agent and Copilot RAG pipelines โ€” modelled as n8n-style node workflows.

1 Trigger
โฐ
EventBridge
Cron: hourly during Q1/Q3
aws:eventbridgecron: 0 * * * *
invokes
2 Orchestrator
๐Ÿงฌ
Orchestrator Agent
Central coordinator โ€” plans, delegates, retries
state: DynamoDBretry: 3ร—timeout: 30min
๐Ÿง  Agent State โ€” run_id status fact_sheets[] drafts[] errors[]
๐Ÿ“‹ PLANNING SUB-AGENT
3
๐Ÿ“ก
Fetch Open To-Dos
GraphQL allFactSheets query
tool: leanix_graphql
4
๐Ÿ”€
Dedup + Filter
Skip already-processed in DynamoDB
tool: dynamodb_query
5
๐Ÿ“
Build Execution Plan
Group by PO, load skill_guide.yaml
tool: skill_guide_loaderoutput: plan.json
๐Ÿ”„ FOR EACH fact sheet in execution plan
๐Ÿ” SOURCE RESOLUTION SUB-AGENT
6
๐Ÿ”
Resolve Sources (Priority Chain)
4-level fallback: org props โ†’ externalId โ†’ file scan โ†’ fuzzy match
tool: github_org_props tool: leanix_external_id tool: repo_file_scanner tool: fuzzy_matcher
95%+ hit rate
๐Ÿ’พ Cache mappings โ€” returns: github_repo confluence_space jira_project iam_app alice_users cloud_accounts
๐Ÿ“‚ EVIDENCE GATHERING SUB-AGENT
โšก PARALLEL TOOL CALLS โ€” fetch evidence concurrently
๐Ÿ’ป
GitHub
Tech stack, Dockerfile, CI
tool: github_api
๐Ÿ“‹
Jira
Roles, releases, sprints
tool: jira_api
๐Ÿ“–
Confluence
Arch docs, data protection
tool: confluence_api
๐Ÿ›ก๏ธ
Archer
Security class, availability
tool: archer_api
๐Ÿ“Š
LeanIX
Relations, org structure
tool: leanix_graphql
๐Ÿ”‘
IAM
App registration, auth
tool: iam_api
๐Ÿ‘ฅ
Alice
User details, org contacts
tool: alice_api
โ˜๏ธ
Cloud Accounts
AWS/Azure hosting, region
tool: cloud_accounts_api
MERGE โ€” Assemble evidence bundle per question
๐Ÿง  REASONING SUB-AGENT
7
๐Ÿ“‹
Skill Guide Lookup
Map question โ†’ answering strategy
config: skill_guide.yaml
?
Strategy: Deterministic or LLM?
~70% Rules
8a
โš™๏ธ
Rules Engine
Direct lookup from evidence
tool: rule_engineconfidence: 1.0
~30% LLM
8b
๐Ÿง 
LLM Answerer
Nexus โ€” structured JSON output
tool: nexus_llmformat: json_mode
MERGE โ€” Combine all answers per fact sheet
9
โœ…
Quality Gate
All answers present, confidence โ‰ฅ 0.8, enums valid
tool: answer_validatorretry: low-confidence
๐Ÿ’พ Persist answers โ€” drafts/{po_email}/{fs_id}
๐Ÿ” END FOR EACH โ€” all fact sheets processed
๐Ÿ“ง NOTIFICATION SUB-AGENT
10
๐Ÿ“ฆ
Bundle per PO
Aggregate drafts by RESPONSIBLE
tool: po_bundler
11
๐Ÿ”
HMAC Tokens
SHA-256 signed approval URLs
tool: hmac_signerttl: 30d
12
๐Ÿ“ง
Send Email
HTML with answers + "Approve All"
tool: smtp_senderrelay: corporate
๐Ÿ‘ค HUMAN-IN-THE-LOOP
๐Ÿ›‘
PO Review Gate
Agent pauses โ€” PO reviews answers in email, optionally edits via Copilot
13
โณ
Escalation Timer
7d remind ยท 14d escalate ยท 30d expire
tool: reminder_scheduler
PO clicks Approve
14
๐Ÿ”—
Lambda Validate
Verify HMAC + expiry + binding
tool: hmac_validatoraws: lambda_url
15
โœ๏ธ
Write to LeanIX
GraphQL mutations + audit trail
tool: leanix_mutatetool: audit_logger
16 Done
โœ…
Confirmation
Summary email + Copilot link
tool: smtp_sender
๐Ÿ Run Complete โ€” status: done approved: N pending: M expired: K
Trigger
Tool Call / API
Condition / Gate
Data / Transform
LLM / AI
Notification
Orchestrator
Human-in-the-Loop
1 User
๐Ÿ‘ค
Product Owner
Opens Copilot from email or portal
2
๐Ÿ’ฌ
User Question
Natural language query
"How do I fill Cloud Nativity?"
3
๐Ÿ“
Embed Query
multilingual-e5 โ†’ 384-dim
tool: embedding_model
4
๐Ÿ”
Vector Search
FAISS index โ€” Top-5 chunks
tool: faiss_search
๐Ÿง  LLM GENERATION โ€” Nexus Model Garden
5
๐Ÿง 
LLM Generation
Context + App Data + KB Sources โ†’ Answer with citations
tool: nexus_llmformat: json_mode
Knowledge Sources
๐Ÿค–
Agent Resultspre-filled answers
๐Ÿ“Š
LeanIXfact sheet data
๐Ÿ“„
User GuidePDF chunks
๐Ÿ“‹
KehrwocheExcel
๐Ÿ“œ
PoliciesRISE / GDPR
โš™๏ธ
Field Metaenums / rules
๐Ÿ’ป
GitHubrepo context
๐Ÿ”‘
IAMApp Details
๐Ÿ‘ฅ
AliceUser Details
โ˜๏ธ
Cloud AcctsAWS / Azure
6
โœ…
Response
Answer + citations + "Apply" button
7
๐Ÿ”€
PO Decision
Accept, edit, or ask more?
?
Apply changes to LeanIX?
โœ… Apply
8a
โœ๏ธ
LeanIX Write
GraphQL mutation โ†’ update field
tool: leanix_mutate
๐Ÿ“
Audit Log
DynamoDB โ€” change + evidence
tool: audit_logger
๐Ÿ’ฌ Edit / Ask
8b
๐Ÿ”„
Continue Chat
Follow-up question โ†’ loops back
Loops back to step 2
Trigger
Tool Call / API
Condition / Gate
Data / Transform
LLM / AI
Notification
Human / User