graph TD A[Start: Receive Course Outline] --> B[Initialize Module Counter] B --> C[Select Current Module] C --> D[Research Module Topic #216] D --> E[Generate Lesson Text #223] E --> F[Find Images #187] F --> G[Need Custom Diagrams?] G -->|Yes| H[Create Custom Diagrams #222] G -->|No| I[Compile Module Content] H --> I I --> J[All Modules Complete?] J -->|No| K[Increment Module Counter] K --> C J -->|Yes| L[Assemble Final Output] L --> M[End: lesson-text-and-images] subgraph Module Processing Loop C D E F G H I J K end