graph TD A[Start] --> B[Check for Optional Environment Details] B --> C{Environment Details Provided?} C -->|Yes| D[Parse Environment Info] C -->|No| E[Use Default Settings] D --> F[Initialize LLM Prompt Generation] E --> F F --> G[Generate Environment Setup Section] G --> H[Generate Library Requirements Section] H --> I[Generate Credential Configuration Section] I --> J[Generate Scheduling Instructions Section] J --> K[Generate Verification Steps Section] K --> L[Combine All Sections] L --> M[Format Final Documentation] M --> N{Validation Check} N -->|Pass| O[Output setup-instructions] N -->|Fail| P[Error Handling] P --> F O --> Q[End] subgraph LLM_Processing F G H I J K end subgraph Documentation_Assembly L M N end