# sachinakash01/iservesl-chatbots architecture

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

- Interactive diagram: https://gitdiagram.com/sachinakash01/iservesl-chatbots
- Repository: https://github.com/sachinakash01/iservesl-chatbots

## Overview

iServeSL-Chatbots is a set of Rasa customer-support bots. The visible principal workflow is a classifier action forwarding a user message to either the Police Services or Grama Niladhari bot over the Rasa REST webhook, then relaying the bot’s text response. The tree also shows separate training data and model directories for the bots. Those files were not sampled, so their internal dialogue stages and configuration links are not expanded here.

Main entry points: [`classifier/actions/actions.py`](https://github.com/sachinakash01/iservesl-chatbots/blob/main/classifier/actions/actions.py) (Service router), [`Police Services Bot`](https://github.com/sachinakash01/iservesl-chatbots/tree/main/Police%20Services%20Bot) (Police bot), [`Grama Niladari Bot`](https://github.com/sachinakash01/iservesl-chatbots/tree/main/Grama%20Niladari%20Bot) (Grama Niladhari bot)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_classifier["Classifier routing"]
  node_classifier_actions["Service router<br/>[actions.py]"]
end

subgraph group_services["Support services"]
  node_police_bot["Police bot"]
  node_grama_bot["Grama Niladhari bot"]
end

subgraph group_bot_assets["Bot dialogue assets"]
  node_police_data["Police dialogue data"]
  node_grama_data["Grama dialogue data"]
  node_classifier_data["Classifier data"]
end

node_user(("Web user"))

node_user -.->|"sends message"| node_classifier_actions
node_classifier_actions -->|"posts message"| node_police_bot
node_police_bot -->|"returns response"| node_classifier_actions
node_classifier_actions -->|"posts message"| node_grama_bot
node_grama_bot -->|"returns response"| node_classifier_actions

click node_classifier_actions "https://github.com/sachinakash01/iservesl-chatbots/blob/main/classifier/actions/actions.py"
click node_police_bot "https://github.com/sachinakash01/iservesl-chatbots/tree/main/Police%20Services%20Bot"
click node_grama_bot "https://github.com/sachinakash01/iservesl-chatbots/tree/main/Grama%20Niladari%20Bot"
click node_police_data "https://github.com/sachinakash01/iservesl-chatbots/tree/main/Police%20Services%20Bot/data"
click node_grama_data "https://github.com/sachinakash01/iservesl-chatbots/tree/main/Grama%20Niladari%20Bot/data"
click node_classifier_data "https://github.com/sachinakash01/iservesl-chatbots/tree/main/classifier/data"

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_classifier_actions,node_user toneBlue
class node_police_bot,node_grama_bot toneAmber
class node_police_data,node_grama_data,node_classifier_data toneMint
```

## Components

### Classifier routing

- [Service router](https://github.com/sachinakash01/iservesl-chatbots/blob/main/classifier/actions/actions.py): `classifier/actions/actions.py`

### Support services

- [Police bot](https://github.com/sachinakash01/iservesl-chatbots/tree/main/Police%20Services%20Bot): `Police Services Bot`
- [Grama Niladhari bot](https://github.com/sachinakash01/iservesl-chatbots/tree/main/Grama%20Niladari%20Bot): `Grama Niladari Bot`

### Bot dialogue assets

- [Police dialogue data](https://github.com/sachinakash01/iservesl-chatbots/tree/main/Police%20Services%20Bot/data): `Police Services Bot/data`
- [Grama dialogue data](https://github.com/sachinakash01/iservesl-chatbots/tree/main/Grama%20Niladari%20Bot/data): `Grama Niladari Bot/data`
- [Classifier data](https://github.com/sachinakash01/iservesl-chatbots/tree/main/classifier/data): `classifier/data`

### Other components

- **Web user**

## Connections

- Web user → Service router: sends message
- Service router → Police bot: posts message (evidence: `classifier/actions/actions.py`)
- Police bot → Service router: returns response (evidence: `classifier/actions/actions.py`)
- Service router → Grama Niladhari bot: posts message (evidence: `classifier/actions/actions.py`)
- Grama Niladhari bot → Service router: returns response (evidence: `classifier/actions/actions.py`)
