graph TD A[Start: Receive Course Outline] --> B[Load User Preferences] B --> C[Initialize Module Counter] C --> D{More Modules?} D -->|Yes| E[Extract Next Module Topic] D -->|No| K[Begin Final Assembly] E --> F[Research Module Topic] F --> G[Generate Content Draft] G --> H[Review for Consistency] H --> I[Apply Style Guidelines] I --> J[Save Module Content] J --> D K --> L[Merge All Modules] L --> M[Format Final Document] M --> N[Add Headers/Footers] N --> O[Save lesson_content.md] O --> P[End Process] subgraph Research Phase E --> F end subgraph Content Creation F --> G --> H --> I end subgraph Final Assembly K --> L --> M --> N end