# iam-nazmul/scheduled-tasks architecture

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

- Interactive diagram: https://gitdiagram.com/iam-nazmul/scheduled-tasks
- Repository: https://github.com/iam-nazmul/scheduled-tasks

## Overview

This repository offers two ways to run recurring LLM tasks: native scheduling features in Claude, ChatGPT, or Gemini, and a Python runner that calls provider APIs, saves results, and can notify Slack. The scripted path accepts a prompt and provider choice, adds the date, dispatches to one or more providers, and writes output. Local scheduling and GitHub Actions are documented entry points. Source evidence for detailed script behavior is available; the scheduling and built-in-feature links rely on README documentation rather than inspected implementation.

Main entry points: [`prompts-schedulers/run_task.py`](https://github.com/iam-nazmul/scheduled-tasks/blob/main/prompts-schedulers/run_task.py) (Task runner), [`built-in/README.md`](https://github.com/iam-nazmul/scheduled-tasks/blob/main/built-in/README.md) (LLM app features), [`prompts-schedulers/schedulers`](https://github.com/iam-nazmul/scheduled-tasks/tree/main/prompts-schedulers/schedulers) (Local schedulers), [`.github/workflows/scheduled-task.yml`](https://github.com/iam-nazmul/scheduled-tasks/blob/main/.github/workflows/scheduled-task.yml) (GitHub Actions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_built_in["Built-in approach"]
  node_built_in_features["LLM app features<br/>[README.md]"]
  node_app_guides["Provider setup guides"]
end

subgraph group_scripted["Scripted tasks"]
  node_runner["Task runner<br/>[run_task.py]"]
  node_prompt_files["Prompt files"]
  node_provider_apis{{"LLM provider APIs"}}
  node_output_files["Saved results"]
  node_slack{{"Slack webhook"}}
end

subgraph group_scheduling["Scheduling"]
  node_local_schedulers["Local schedulers"]
  node_github_actions["GitHub Actions<br/>[scheduled-task.yml]"]
end

node_user(("Task author"))

node_user -->|"uses native features"| node_built_in_features
node_user -->|"runs task"| node_runner
node_built_in_features -->|"setup guidance"| node_app_guides
node_runner -->|"reads prompt"| node_prompt_files
node_runner -->|"dispatches request"| node_provider_apis
node_runner -->|"writes result"| node_output_files
node_runner -.->|"posts optionally"| node_slack
node_local_schedulers -->|"schedules runs"| node_runner
node_github_actions -.->|"runs on schedule"| node_runner

click node_built_in_features "https://github.com/iam-nazmul/scheduled-tasks/blob/main/built-in/README.md"
click node_app_guides "https://github.com/iam-nazmul/scheduled-tasks/tree/main/built-in"
click node_runner "https://github.com/iam-nazmul/scheduled-tasks/blob/main/prompts-schedulers/run_task.py"
click node_prompt_files "https://github.com/iam-nazmul/scheduled-tasks/tree/main/prompts-schedulers/prompts"
click node_output_files "https://github.com/iam-nazmul/scheduled-tasks/tree/main/prompts-schedulers/outputs"
click node_local_schedulers "https://github.com/iam-nazmul/scheduled-tasks/tree/main/prompts-schedulers/schedulers"
click node_github_actions "https://github.com/iam-nazmul/scheduled-tasks/blob/main/.github/workflows/scheduled-task.yml"

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_built_in_features,node_app_guides toneBlue
class node_runner,node_prompt_files,node_provider_apis,node_output_files,node_slack toneAmber
class node_local_schedulers,node_github_actions toneMint
class node_user toneRose
```

## Components

### Built-in approach

- [LLM app features](https://github.com/iam-nazmul/scheduled-tasks/blob/main/built-in/README.md): `built-in/README.md`
- [Provider setup guides](https://github.com/iam-nazmul/scheduled-tasks/tree/main/built-in): `built-in`

### Scripted tasks

- [Task runner](https://github.com/iam-nazmul/scheduled-tasks/blob/main/prompts-schedulers/run_task.py): `prompts-schedulers/run_task.py`
- [Prompt files](https://github.com/iam-nazmul/scheduled-tasks/tree/main/prompts-schedulers/prompts): `prompts-schedulers/prompts`
- **LLM provider APIs**
- [Saved results](https://github.com/iam-nazmul/scheduled-tasks/tree/main/prompts-schedulers/outputs): `prompts-schedulers/outputs`
- **Slack webhook**

### Scheduling

- [Local schedulers](https://github.com/iam-nazmul/scheduled-tasks/tree/main/prompts-schedulers/schedulers): `prompts-schedulers/schedulers`
- [GitHub Actions](https://github.com/iam-nazmul/scheduled-tasks/blob/main/.github/workflows/scheduled-task.yml): `.github/workflows/scheduled-task.yml`

### Other components

- **Task author**

## Connections

- Task author → LLM app features: uses native features (evidence: `README.md`)
- Task author → Task runner: runs task (evidence: `README.md`)
- LLM app features → Provider setup guides: setup guidance
- Task runner → Prompt files: reads prompt (evidence: `prompts-schedulers/run_task.py`)
- Task runner → LLM provider APIs: dispatches request (evidence: `prompts-schedulers/run_task.py`)
- Task runner → Saved results: writes result (evidence: `prompts-schedulers/run_task.py`)
- Task runner → Slack webhook: posts optionally (evidence: `prompts-schedulers/run_task.py`)
- Local schedulers → Task runner: schedules runs (evidence: `README.md`)
- GitHub Actions → Task runner: runs on schedule (evidence: `README.md`)
