%% In-product copilot on gcp. Generated; edit the catalog, not this file.
flowchart LR
subgraph people["People and channels"]
n_tenant_user["Tenant user
Person"]:::people
n_product["Product UI with copilot panel
Cloud Run"]:::people
end
subgraph control["Control and trust"]
n_edge["Edge protection
Cloud Armor + Load Balancing"]:::control
n_identity["Tenant identity
Identity Platform"]:::control
n_copilot_api["Copilot API
Cloud Run"]:::control
n_gateway["Model gateway
Apigee (AI gateway policies)"]:::control
end
subgraph intelligence["Intelligence and work"]
n_model["Assistant model
Gemini 3.8 Flash (Agent Platform)"]:::intelligence
n_actions["Product actions
MCP server on Cloud Run"]:::intelligence
end
subgraph knowledge["Knowledge and records"]
n_tenant_index["Tenant-partitioned index
AlloyDB for PostgreSQL"]:::knowledge
n_app_db["Product database
AlloyDB for PostgreSQL"]:::knowledge
n_meter["Usage meter
BigQuery + Looker Studio"]:::knowledge
end
subgraph assurance["Assurance and operations"]
n_traces["Traces
Cloud Logging, Monitoring, Trace"]:::assurance
n_evals["Release evals
Evaluation service (Agent Platform)"]:::assurance
end
%% flow open (data, tenant)
n_tenant_user -->|"Question in context"| n_product
%% flow protect (control, operational)
n_product -.->|"Tenant rate limits"| n_edge
%% flow send (data, tenant)
n_product -->|"Question and screen context"| n_copilot_api
%% flow scope (control, identity)
n_copilot_api -.->|"Resolve tenant from session"| n_identity
%% flow retrieve (data, tenant)
n_copilot_api -->|"Tenant namespace query"| n_tenant_index
%% flow ask-model (data, tenant)
n_copilot_api -->|"Prompt tagged with tenant"| n_gateway
%% flow infer (data, tenant)
n_gateway -->|"Model call"| n_model
%% flow propose (data, tenant)
n_copilot_api -->|"Proposed action (dry run)"| n_actions
%% flow apply (data, tenant)
n_actions -->|"Confirmed write with undo token"| n_app_db
%% flow meter-usage (telemetry, operational)
n_gateway -.-o|"Tokens per tenant"| n_meter
%% flow telemetry (telemetry, operational)
n_copilot_api -.-o|"Latency and refusals"| n_traces
%% flow probe (control, internal)
n_evals -.->|"Cross-tenant probes per release"| n_copilot_api
classDef people fill:#8AB4FF22,stroke:#8AB4FF,color:#0f1017
classDef control fill:#B9A7FF22,stroke:#B9A7FF,color:#0f1017
classDef intelligence fill:#5EE6CF22,stroke:#5EE6CF,color:#0f1017
classDef knowledge fill:#FFC07A22,stroke:#FFC07A,color:#0f1017
classDef assurance fill:#FF9FCB22,stroke:#FF9FCB,color:#0f1017