Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_support-agent

Customer Support Agent (grounded answers, approved refunds)

17 COMPONENTS · 23 FLOWS · UPDATED 2026-11-21
GITHUB README / PR PREVIEW CARD
[![Customer Support Agent (grounded answers, approved refunds) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_support-agent/opengraph-image)](https://archos.sageideas.dev/d/dgm_support-agent)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_support-agent)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_support-agent" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Customer Support Agent (grounded answers, approved refunds) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0[("Customer")]
  model_1["Inference server"]
  reviewer_2["Human-in-the-loop approval (HITL)"]
  gw_3["API gateway"]
  orch_4[("Agent orchestration runtime")]
  tsdb_5[("Time-series database (TSDB)")]
  alerting_6[("Alerting")]
  secrets_7[("Secrets manager")]
  aigw_8["AI gateway"]
  guard_9["Guardrails"]
  toolgw_10["Function calling"]
  postgres_11[("PostgreSQL")]
  vector_12[("Vector database")]
  queue_13[("Message queue")]
  dlq_14[("Dead-letter queue (DLQ)")]
  pdp_15["Policy decision point (PDP)"]
  capacity_16["Capacity Estimate"]
  client_0 -->|"1. Calls with JWT · HTTPS"| gw_3
  gw_3 -->|"2. Starts turn · HTTP/2"| orch_4
  orch_4 -->|"3. Screens input · HTTP/2"| guard_9
  guard_9 -->|"4. Verdict · HTTP/2"| orch_4
  orch_4 -->|"5. Asks model · HTTP/2"| aigw_8
  aigw_8 -->|"6. Calls model · HTTPS"| model_1
  model_1 -->|"7. Reply · HTTPS"| aigw_8
  aigw_8 -->|"8. Reply · HTTP/2"| orch_4
  orch_4 -->|"9. Calls tool · HTTP/2"| toolgw_10
  toolgw_10 -->|"10a. Result · HTTP/2"| orch_4
  toolgw_10 -->|"10b. Asks approval · TCP"| queue_13
  orch_4 -->|"11a. Cited answer · HTTP/2"| gw_3
  queue_13 -->|"11b. Notifies · HTTPS"| reviewer_2
  gw_3 -->|"12. Answer · HTTPS"| client_0
  orch_4 -->|"Reads, writes memory · SQL"| postgres_11
  secrets_7 -->|"Model key · HTTPS"| aigw_8
  toolgw_10 -->|"Asks policy · HTTP/2"| pdp_15
  queue_13 -->|"Parks · TCP"| dlq_14
  orch_4 -->|"Exports (OTLP) · OTLP"| tsdb_5
  tsdb_5 -->|"Feeds alerts · HTTP"| alerting_6
  reviewer_2 -->|"Approves (JWT) · HTTPS"| pdp_15
  orch_4 -->|"Retrieves · HTTP/2"| vector_12
  vector_12 -->|"Passages · HTTP/2"| orch_4

COMPONENT STACK (16)

  • CustomerSTATEFUL
    Chats from an untrusted network
  • Inference serverSTATELESS
    Hosted model API outside our boundary
  • Human-in-the-loop approval (HITL)STATELESS
    Support person who approves refunds
  • API gatewaySTATELESS
    Checks the JWT, then starts the turn
  • Agent orchestration runtimeSTATEFUL
    Loops: model, tool, observe; step cap
  • Time-series database (TSDB)STATEFUL
    Stores turn latency, errors, tokens
  • AlertingSTATEFUL
    Pages on turn errors and latency
  • Secrets managerSTATEFUL
    Holds the model API key
  • AI gatewaySTATELESS
    Holds the model key; routes and limits calls
  • GuardrailsSTATELESS
    Screens input and the draft answer
  • Function callingSTATELESS
    Runs only allowed tools, least privilege
  • PostgreSQLSTATEFUL
    Tickets and conversation memory
  • Vector databaseSTATEFUL
    Help-center passages with source ids
  • Message queueSTATEFUL
    Holds refund approvals for a person
  • Dead-letter queue (DLQ)STATEFUL
    Parks approvals that keep failing
  • Policy decision point (PDP)STATELESS
    Allows, denies or asks approval per tool

REQUEST & DATA FLOW (23)

  1. Customer → API gateway (Calls with JWT)[HTTPS]
  2. API gateway → Agent orchestration runtime (Starts turn)[HTTP/2]
  3. Agent orchestration runtime → Guardrails (Screens input)[HTTP/2]
  4. Guardrails → Agent orchestration runtime (Verdict)[HTTP/2]
  5. Agent orchestration runtime → AI gateway (Asks model)[HTTP/2]
  6. AI gateway → Inference server (Calls model)[HTTPS]
  7. Inference server → AI gateway (Reply)[HTTPS]
  8. AI gateway → Agent orchestration runtime (Reply)[HTTP/2]
  9. Agent orchestration runtime → Function calling (Calls tool)[HTTP/2]
  10. Function calling → Agent orchestration runtime (Result)[HTTP/2]
  11. Function calling → Message queue (Asks approval)[TCP]
  12. Agent orchestration runtime → API gateway (Cited answer)[HTTP/2]
  13. Message queue → Human-in-the-loop approval (HITL) (Notifies)[HTTPS]
  14. API gateway → Customer (Answer)[HTTPS]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →