P

Prompt ChatGPT for Creating a Software Architecture

Software architecture is the backbone of any development project. It determines the maintainability, scalability, and performance of an application over the long term. Yet, designing a solid architecture requires deep expertise and a global vision that even experienced developers sometimes struggle to mobilize in the face of new constraints. ChatGPT becomes a strategic ally here: by providing it with a well-structured prompt, you get a complete architecture proposal integrating patterns adapted to your context, justified technology choices, and clearly explained trade-offs. Whether you are launching a startup, migrating a monolith to microservices, or designing a high-availability distributed system, ChatGPT helps you explore architectural options, identify technical risks upfront, and document your decisions. The goal is not to replace the architect, but to significantly accelerate the exploration and formalization phase, producing actionable deliverables from the first iteration.

The prompt

ChatGPT

You are a senior software architect with 15 years of experience in large-scale distributed systems. I am developing [PROJECT_DESCRIPTION: type of application, business domain, main objective]. Here are the technical and business constraints:

  • Expected users: [NUMBER and PROFILE]
  • Estimated load: [REQUESTS/SEC or CONCURRENT USERS]
  • Infrastructure budget: [RANGE]
  • Technical team: [SIZE and LEVEL]
  • Regulatory constraints: [GDPR, SOC2, etc.]

Produce a complete software architecture including:

  1. Overview: text diagram (C4 level 2 style) showing main components and their interactions
  2. Technology Stack: choice of each block (language, framework, database, message broker, cache, CDN) with justification relative to constraints
  3. Architectural Patterns: selected patterns (microservices, event-driven, CQRS, hexagonal...) and why they apply here
  4. Data Model: schema of main entities and their relationships
  5. Deployment Strategy: containerization, orchestration, CI/CD, environments
  6. Points of Attention: 5 major technical risks with mitigation strategy
  7. ADR: 3 Architecture Decision Records for the most structuring choices

Use a technical but accessible tone. Structure your response with clear headings and comparison tables where relevant.

Personalize this prompt with Léa

Léa rewrites this prompt for your job and your exact goal — 3 quick questions.

Why it works

This prompt works thanks to three key mechanisms: the senior architect role-playing activates the model's deep knowledge of patterns and trade-offs; the contextual variables in square brackets force the user to provide real constraints, anchoring the response in a concrete case; and the output structure of 7 numbered deliverables ensures exhaustive coverage without digression. The inclusion of ADRs pushes the model to explain its reasoning rather than just list technologies.

Expected result

You get a structured architecture document including a textual component diagram, a comparison table of selected technologies with justifications, architectural patterns applied to your specific context, a data schema, a deployment strategy, and formalized ADRs. The deliverable is directly usable as a basis for discussion in an architecture review or as a starting point for a technical architecture document (TAD).

Variants by level

FAQ

Can ChatGPT really produce a reliable software architecture?
ChatGPT produces excellent architectural foundations by combining proven patterns and best practices in the field. However, it is not aware of your organization's internal specifics (technical debt, actual team skills, political constraints). Use its proposal as a starting point for an architecture review with your team, not as a final deliverable. The more you detail your constraints in the prompt, the more relevant and directly usable the proposal will be.
How do I adapt the prompt if I am migrating an existing system rather than starting from scratch?
Add a section to the prompt describing the current architecture: existing technology stack, identified pain points, existing data volumes, and critical dependencies. Explicitly ask for a progressive migration strategy (e.g., strangler fig pattern) rather than a full rewrite. Specify service continuity constraints and the time budget available for migration. ChatGPT will then propose a step-by-step roadmap with intermediate validation milestones.
What types of diagrams can ChatGPT generate for architecture?
ChatGPT can produce diagrams in textual notation that can be used in rendering tools: Mermaid (natively supported in GitHub, Notion, and many editors), PlantUML for classic UML diagrams, and C4 notation in structured text. Specify the desired format in your prompt. For example, add "generate diagrams in Mermaid syntax" to get code directly copyable into your documentation tools. For elaborate visual diagrams, export the Mermaid code to tools like draw.io or Excalidraw.

Related prompts

How to use this prompt

  1. Copy the prompt with the button above.
  2. Paste it into ChatGPT, Claude or your favorite AI assistant.
  3. Replace the bracketed variables with your details, then refine the result.

About Prompt Guide

Prompt Guide is a free library of 4800+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.

More prompts to explore

Prompt ChatGPT for Creating an Email Campaign

Email marketing remains one of the most profitable channels in digital marketing, with an average ROI of €36 for every euro invested. However, creating a high-performing email campaign requires mastering strategy (segmentation, timing, sequencing), persuasive copywriting (subject lines, email body, CTAs), and technical aspects (deliverability, responsive design). ChatGPT transforms this process by allowing you to quickly generate complete and structured email campaigns.

Prompt ChatGPT for Creating Images

ChatGPT, thanks to its integration with DALL-E 3, has become a powerful tool for creating images from text descriptions. Unlike traditional image generators that require advanced technical skills, ChatGPT allows you to describe what you want in natural language and automatically refines your request to produce professional-quality visuals. Whether you need illustrations for a blog post, visuals for your social media, artistic concepts for a creative project, or mockups for a presentation, image generation via ChatGPT opens up considerable possibilities. The major advantage lies in its conversational ability: you can iterate on an image, ask for precise modifications, adjust colors, style, or composition without starting from scratch. This iterative approach makes visual creation accessible to everyone, even without graphic design skills. In this guide, you will discover optimized prompts to get impactful images with the first generation, as well as advanced techniques to refine your creations according to your exact needs.

Prompt ChatGPT for Drafting a Contract

Contract drafting is a complex task that requires legal precision, editorial clarity, and in-depth knowledge of applicable law. ChatGP

Prompt ChatGPT for Drafting Terms of Service

Drafting Terms of Service (ToS) is a crucial legal step for any website, mobile app, or online service. These documents govern the relationship between the publisher and users, define rights and obligations, and protect the company in case of disputes. While traditionally entrusted to a specialized lawyer, this task can now be accelerated with ChatGPT, which generates a structured and comprehensive first draft in minutes. By providing the model with key information about your activity — nature of the service, data collected, applicable jurisdiction, liability limitations — you get a coherent document covering essential clauses: purpose, access to the service, intellectual property, personal data, liability, and termination. ChatGPT excels particularly in logical article structuring and appropriate legal vocabulary. However, the result is a solid starting point but does not replace validation by a legal professional to ensure compliance with GDPR, Consumer Code, and sector-specific regulations.

Prompt ChatGPT for Generating Unit Tests

Writing unit tests is a crucial step in software development, but it is often seen as time-consuming and repetitive. ChatGPT transforms this practice by allowing you to generate complete test suites in seconds.

Prompt ChatGPT for Planning a Meeting

Effective meeting planning requires rigor and anticipation. Between defining objectives, selecting participants, preparing the agenda, and managing logistics, the steps are numerous and often time-consuming. ChatGPT becomes a valuable ally to structure this process from start to finish.

Go further

Get new prompts every week

Join our newsletter.