# elastic/workflows architecture

> Architecture diagram of the GitHub repository elastic/workflows, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/elastic/workflows
- Repository: https://github.com/elastic/workflows

## Overview

This repository is the source for Kibana’s installable, parameterized Workflow Template Library. Its principal user flow is browsing templates in Kibana, providing install-form values, and saving a substituted workflow that can then run in Kibana. The graph emphasizes the authored templates and their documented consumption, with representative security, search, observability, and integration capabilities. The catalogue generator and publishing machinery are intentionally omitted; sampled source was limited to that generator, so relationships among individual templates and runtime steps are not asserted.

Main entry points: [`library/workflows`](https://github.com/elastic/workflows/tree/main/library/workflows) (Workflow templates), [`library/categories.yaml`](https://github.com/elastic/workflows/blob/main/library/categories.yaml) (Category registry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_library["Template library"]
  node_templates["Workflow templates"]
  node_categories["Category registry<br/>[categories.yaml]"]
end

subgraph group_capabilities["Workflow capabilities"]
  node_security["Security workflows"]
  node_search["Search workflows"]
  node_observability["Observability workflows"]
  node_integrations["Integration workflows"]
end

subgraph group_consumer["Kibana consumption"]
  node_kibana["Kibana Workflows app"]
  node_saved["Saved workflow"]
  node_workflow_runtime["Workflow runtime"]
end

node_operator(("Kibana user"))

node_operator -->|"browses templates"| node_kibana
node_templates -->|"supplies templates"| node_kibana
node_categories -->|"categorizes"| node_templates
node_kibana -->|"prompts install values"| node_operator
node_kibana -->|"substitutes and persists"| node_saved
node_saved -->|"runs as"| node_workflow_runtime

click node_templates "https://github.com/elastic/workflows/tree/main/library/workflows"
click node_categories "https://github.com/elastic/workflows/blob/main/library/categories.yaml"
click node_security "https://github.com/elastic/workflows/blob/main/library/workflows/hash-threat-check/hash-threat-check.yaml"
click node_search "https://github.com/elastic/workflows/blob/main/library/workflows/semantic-knowledge-search/semantic-knowledge-search.yaml"
click node_observability "https://github.com/elastic/workflows/blob/main/library/workflows/root-cause-analysis/root-cause-analysis.yaml"
click node_integrations "https://github.com/elastic/workflows/blob/main/library/workflows/create-slack-channel/create-slack-channel.yaml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_templates,node_categories,node_operator toneBlue
class node_security,node_search,node_observability,node_integrations toneAmber
class node_kibana,node_saved,node_workflow_runtime toneMint
```

## Components

### Template library

- [Workflow templates](https://github.com/elastic/workflows/tree/main/library/workflows): `library/workflows`
- [Category registry](https://github.com/elastic/workflows/blob/main/library/categories.yaml): `library/categories.yaml`

### Workflow capabilities

- [Security workflows](https://github.com/elastic/workflows/blob/main/library/workflows/hash-threat-check/hash-threat-check.yaml): `library/workflows/hash-threat-check/hash-threat-check.yaml`
- [Search workflows](https://github.com/elastic/workflows/blob/main/library/workflows/semantic-knowledge-search/semantic-knowledge-search.yaml): `library/workflows/semantic-knowledge-search/semantic-knowledge-search.yaml`
- [Observability workflows](https://github.com/elastic/workflows/blob/main/library/workflows/root-cause-analysis/root-cause-analysis.yaml): `library/workflows/root-cause-analysis/root-cause-analysis.yaml`
- [Integration workflows](https://github.com/elastic/workflows/blob/main/library/workflows/create-slack-channel/create-slack-channel.yaml): `library/workflows/create-slack-channel/create-slack-channel.yaml`

### Kibana consumption

- **Kibana Workflows app**
- **Saved workflow**
- **Workflow runtime**

### Other components

- **Kibana user**

## Connections

- Kibana user → Kibana Workflows app: browses templates (evidence: `README.md`)
- Workflow templates → Kibana Workflows app: supplies templates (evidence: `README.md`)
- Category registry → Workflow templates: categorizes (evidence: `README.md`)
- Kibana Workflows app → Kibana user: prompts install values (evidence: `README.md`)
- Kibana Workflows app → Saved workflow: substitutes and persists (evidence: `README.md`)
- Saved workflow → Workflow runtime: runs as (evidence: `README.md`)
