1. Analyze the provided code, files, or description to extract architecture information.
2. Determine the appropriate diagram type based on the user's request and the extracted information.
3. Generate Eraser DSL code that represents the architecture.
4. Create an element object with the diagram type, id, and DSL code.
5. Make an HTTP POST request to the Eraser API to render the diagram.
6. Present the diagram image URL and editor link to the user.
7. Provide the Eraser DSL code and sources used to generate the diagram.