# rasahq/rasa-community-resources architecture

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

- Interactive diagram: https://gitdiagram.com/rasahq/rasa-community-resources
- Repository: https://github.com/rasahq/rasa-community-resources

## Overview

Rasa Community Resources is an educational repository of runnable agents, tutorials, reusable patterns, and workshop material—not the Rasa framework. The main user workflow is to find a resource in the catalog, then run or adapt it; the case-build harness separately runs scripted conversations and records results and spend. The graph highlights the documented resource branches and the sampled voice-router, step-up-auth, handoff, and harness internals. Unsampled capabilities are included at directory level; links are omitted where excerpts do not establish runtime wiring.

Main entry points: [`scripts/case_builds/harness.py`](https://github.com/rasahq/rasa-community-resources/blob/main/scripts/case_builds/harness.py) (Conversation harness), [`patterns/voice-auth-stepup/authpolicy/actions.py`](https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-auth-stepup/authpolicy/actions.py) (Action policies), [`patterns/voice-vendor-router/voicerouter/engine.py`](https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-vendor-router/voicerouter/engine.py) (Provider engine), [`patterns/voice-auth-stepup/authpolicy/tiers.py`](https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-auth-stepup/authpolicy/tiers.py) (Tier model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_library["Learning resources"]
  node_catalog["Resource catalog"]
  node_examples["Example agents"]
  node_tutorials["Tutorials"]
  node_patterns["Reusable patterns"]
  node_workshops["Workshop material"]
  node_community["Community projects"]
end

subgraph group_voice["Voice routing"]
  node_router["Voice vendor router"]
  node_router_engine["Provider engine<br/>[engine.py]"]
  node_routed_tts["Routed TTS<br/>[routed_tts.py]"]
  node_routed_asr["Routed ASR<br/>[routed_asr.py]"]
  node_audio["Audio conversion<br/>[audio.py]"]
end

subgraph group_security["Agent patterns"]
  node_auth_tools["Banking tools<br/>[banking.py]"]
  node_auth_policy["Action policies<br/>[actions.py]"]
  node_auth_guard["Tier guard<br/>[guard.py]"]
  node_auth_tiers["Tier model<br/>[tiers.py]"]
  node_auth_challenges["Verification challenges<br/>[challenges.py]"]
  node_handoff_skill["Human handoff skill<br/>[tools.py]"]
  node_handoff_desk["Handoff desk<br/>[desk.py]"]
  node_redaction["Context allowlist<br/>[redaction.py]"]
  node_handoff_schema["Handoff schema<br/>[schema.py]"]
end

subgraph group_harness["Case-build harness"]
  node_harness["Conversation harness<br/>[harness.py]"]
  node_voice_driver["Voice driver<br/>[voice_driver.py]"]
  node_project_check["Project checks<br/>[check_project.py]"]
  node_project_index["Rasa project index<br/>[rasa_projects.py]"]
end

node_practitioner(("Practitioner"))

node_practitioner -->|"finds resources"| node_catalog
node_catalog -->|"lists examples"| node_examples
node_catalog -->|"lists tutorials"| node_tutorials
node_catalog -->|"lists patterns"| node_patterns
node_catalog -->|"lists workshops"| node_workshops
node_catalog -->|"lists projects"| node_community
node_practitioner -->|"runs or adapts"| node_examples
node_practitioner -->|"follows walkthrough"| node_tutorials
node_practitioner -->|"reuses pattern"| node_patterns
node_routed_tts -->|"uses engine"| node_router_engine
node_routed_asr -->|"uses engine"| node_router_engine
node_audio -->|"uses engine"| node_router_engine
node_auth_tools -->|"resolves action policy"| node_auth_policy
node_auth_guard -->|"reads action tiers"| node_auth_policy
node_auth_guard -->|"compares tiers"| node_auth_tiers
node_auth_policy -->|"declares tiers"| node_auth_tiers
node_auth_challenges -->|"grants tiers"| node_auth_tiers
node_handoff_skill -->|"uses desk"| node_handoff_desk
node_handoff_skill -->|"applies allowlist"| node_redaction
node_redaction -->|"builds package"| node_handoff_schema
node_handoff_desk -->|"reads schema"| node_handoff_schema
node_harness -->|"invokes driver"| node_voice_driver
node_harness -->|"checks project"| node_project_check
node_harness -->|"uses project index"| node_project_index

click node_examples "https://github.com/rasahq/rasa-community-resources/tree/main/examples"
click node_tutorials "https://github.com/rasahq/rasa-community-resources/tree/main/tutorials"
click node_patterns "https://github.com/rasahq/rasa-community-resources/tree/main/patterns"
click node_workshops "https://github.com/rasahq/rasa-community-resources/tree/main/workshops"
click node_community "https://github.com/rasahq/rasa-community-resources/tree/main/community"
click node_router "https://github.com/rasahq/rasa-community-resources/tree/main/patterns/voice-vendor-router/voicerouter"
click node_router_engine "https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-vendor-router/voicerouter/engine.py"
click node_routed_tts "https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-vendor-router/voicerouter/routed_tts.py"
click node_routed_asr "https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-vendor-router/voicerouter/routed_asr.py"
click node_audio "https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-vendor-router/voicerouter/audio.py"
click node_auth_tools "https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-auth-stepup/tools/banking.py"
click node_auth_policy "https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-auth-stepup/authpolicy/actions.py"
click node_auth_guard "https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-auth-stepup/authpolicy/guard.py"
click node_auth_tiers "https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-auth-stepup/authpolicy/tiers.py"
click node_auth_challenges "https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-auth-stepup/authpolicy/challenges.py"
click node_handoff_skill "https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-handoff-context/skills/human_handoff/tools.py"
click node_handoff_desk "https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-handoff-context/handoffpkg/desk.py"
click node_redaction "https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-handoff-context/handoffpkg/redaction.py"
click node_handoff_schema "https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-handoff-context/handoffpkg/schema.py"
click node_harness "https://github.com/rasahq/rasa-community-resources/blob/main/scripts/case_builds/harness.py"
click node_voice_driver "https://github.com/rasahq/rasa-community-resources/blob/main/scripts/case_builds/voice_driver.py"
click node_project_check "https://github.com/rasahq/rasa-community-resources/blob/main/scripts/check_project.py"
click node_project_index "https://github.com/rasahq/rasa-community-resources/blob/main/scripts/rasa_projects.py"

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_catalog,node_examples,node_tutorials,node_patterns,node_workshops,node_community toneBlue
class node_router,node_router_engine,node_routed_tts,node_routed_asr,node_audio toneAmber
class node_auth_tools,node_auth_policy,node_auth_guard,node_auth_tiers,node_auth_challenges,node_handoff_skill,node_handoff_desk,node_redaction,node_handoff_schema toneMint
class node_harness,node_voice_driver,node_project_check,node_project_index toneRose
class node_practitioner toneIndigo
```

## Components

### Learning resources

- **Resource catalog**
- [Example agents](https://github.com/rasahq/rasa-community-resources/tree/main/examples): `examples`
- [Tutorials](https://github.com/rasahq/rasa-community-resources/tree/main/tutorials): `tutorials`
- [Reusable patterns](https://github.com/rasahq/rasa-community-resources/tree/main/patterns): `patterns`
- [Workshop material](https://github.com/rasahq/rasa-community-resources/tree/main/workshops): `workshops`
- [Community projects](https://github.com/rasahq/rasa-community-resources/tree/main/community): `community`

### Voice routing

- [Voice vendor router](https://github.com/rasahq/rasa-community-resources/tree/main/patterns/voice-vendor-router/voicerouter): `patterns/voice-vendor-router/voicerouter`
- [Provider engine](https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-vendor-router/voicerouter/engine.py): `patterns/voice-vendor-router/voicerouter/engine.py`
- [Routed TTS](https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-vendor-router/voicerouter/routed_tts.py): `patterns/voice-vendor-router/voicerouter/routed_tts.py`
- [Routed ASR](https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-vendor-router/voicerouter/routed_asr.py): `patterns/voice-vendor-router/voicerouter/routed_asr.py`
- [Audio conversion](https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-vendor-router/voicerouter/audio.py): `patterns/voice-vendor-router/voicerouter/audio.py`

### Agent patterns

- [Banking tools](https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-auth-stepup/tools/banking.py): `patterns/voice-auth-stepup/tools/banking.py`
- [Action policies](https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-auth-stepup/authpolicy/actions.py): `patterns/voice-auth-stepup/authpolicy/actions.py`
- [Tier guard](https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-auth-stepup/authpolicy/guard.py): `patterns/voice-auth-stepup/authpolicy/guard.py`
- [Tier model](https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-auth-stepup/authpolicy/tiers.py): `patterns/voice-auth-stepup/authpolicy/tiers.py`
- [Verification challenges](https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-auth-stepup/authpolicy/challenges.py): `patterns/voice-auth-stepup/authpolicy/challenges.py`
- [Human handoff skill](https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-handoff-context/skills/human_handoff/tools.py): `patterns/voice-handoff-context/skills/human_handoff/tools.py`
- [Handoff desk](https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-handoff-context/handoffpkg/desk.py): `patterns/voice-handoff-context/handoffpkg/desk.py`
- [Context allowlist](https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-handoff-context/handoffpkg/redaction.py): `patterns/voice-handoff-context/handoffpkg/redaction.py`
- [Handoff schema](https://github.com/rasahq/rasa-community-resources/blob/main/patterns/voice-handoff-context/handoffpkg/schema.py): `patterns/voice-handoff-context/handoffpkg/schema.py`

### Case-build harness

- [Conversation harness](https://github.com/rasahq/rasa-community-resources/blob/main/scripts/case_builds/harness.py): `scripts/case_builds/harness.py`
- [Voice driver](https://github.com/rasahq/rasa-community-resources/blob/main/scripts/case_builds/voice_driver.py): `scripts/case_builds/voice_driver.py`
- [Project checks](https://github.com/rasahq/rasa-community-resources/blob/main/scripts/check_project.py): `scripts/check_project.py`
- [Rasa project index](https://github.com/rasahq/rasa-community-resources/blob/main/scripts/rasa_projects.py): `scripts/rasa_projects.py`

### Other components

- **Practitioner**

## Connections

- Practitioner → Resource catalog: finds resources (evidence: `README.md`)
- Resource catalog → Example agents: lists examples (evidence: `README.md`)
- Resource catalog → Tutorials: lists tutorials (evidence: `README.md`)
- Resource catalog → Reusable patterns: lists patterns (evidence: `README.md`)
- Resource catalog → Workshop material: lists workshops (evidence: `README.md`)
- Resource catalog → Community projects: lists projects (evidence: `README.md`)
- Practitioner → Example agents: runs or adapts (evidence: `README.md`)
- Practitioner → Tutorials: follows walkthrough (evidence: `README.md`)
- Practitioner → Reusable patterns: reuses pattern (evidence: `README.md`)
- Routed TTS → Provider engine: uses engine (evidence: `patterns/voice-vendor-router/voicerouter/routed_tts.py`)
- Routed ASR → Provider engine: uses engine (evidence: `patterns/voice-vendor-router/voicerouter/routed_asr.py`)
- Audio conversion → Provider engine: uses engine (evidence: `patterns/voice-vendor-router/voicerouter/audio.py`)
- Banking tools → Action policies: resolves action policy (evidence: `patterns/voice-auth-stepup/tools/banking.py`)
- Tier guard → Action policies: reads action tiers (evidence: `patterns/voice-auth-stepup/authpolicy/guard.py`)
- Tier guard → Tier model: compares tiers (evidence: `patterns/voice-auth-stepup/authpolicy/guard.py`)
- Action policies → Tier model: declares tiers (evidence: `patterns/voice-auth-stepup/authpolicy/actions.py`)
- Verification challenges → Tier model: grants tiers (evidence: `patterns/voice-auth-stepup/authpolicy/challenges.py`)
- Human handoff skill → Handoff desk: uses desk (evidence: `patterns/voice-handoff-context/skills/human_handoff/tools.py`)
- Human handoff skill → Context allowlist: applies allowlist (evidence: `patterns/voice-handoff-context/skills/human_handoff/tools.py`)
- Context allowlist → Handoff schema: builds package (evidence: `patterns/voice-handoff-context/handoffpkg/redaction.py`)
- Handoff desk → Handoff schema: reads schema (evidence: `patterns/voice-handoff-context/handoffpkg/desk.py`)
- Conversation harness → Voice driver: invokes driver (evidence: `scripts/case_builds/harness.py`)
- Conversation harness → Project checks: checks project (evidence: `scripts/case_builds/harness.py`)
- Conversation harness → Rasa project index: uses project index (evidence: `scripts/case_builds/harness.py`)
