Prompt Details
Model
Chat - (gpt-5.5)
Token size
196
Example input
[System Description]: A user adds items to a cart, proceeds to checkout. The system checks inventory. If in stock, it calls the Stripe Payment Gateway. If payment is successful, an order is created in the PostgreSQL database and a confirmation email is sent via SendGrid. If out of stock or payment fails, an error is shown to the user.
[Diagram Type]: Flowchart (TD)
Example output
```mermaid
flowchart TD
U[User] --> A[Add Items to Cart]
A --> B[Proceed to Checkout]
B --> C[Check Inventory]
C --> D{Items In Stock?}
D -- No --> E[Display Out of Stock Error]
E --> U
D -- Yes --> F[Call Stripe Payment Gateway]
F --> G{Payment Successful?}
G -- No --> H[Display Payment Failed Error]
H --> U
G -- Yes --> I[Create Order]
I --> J[(PostgreSQL Database)]
J --> K[Send Confirmation Email]
K --> L[SendGrid]
L --> M[Order Confirmation Shown]
M --> U
classDef user fill:#e1f5fe,stroke:#0277bd,stroke-width:2px;
classDef process fill:#e8f5e9,stroke:#2e7d32,stroke-width:1px;
classDef decision fill:#fff8e1,stroke:#f9a825,stroke-width:2px;
classDef external fill:#f3e5f5,stroke:#6a1b9a,stroke-width:1px;
classDef database fill:#ede7f6,stroke:#4527a0,stroke-width:2px;
class U user;
class A,B,C,F,I,K,M,E,H process;
class D,G decision;
class F,L external;
class J database;
```
By purchasing this prompt, you agree to our terms of service
GPT-5.5
Instantly converts plain text system descriptions into perfectly formatted Mermaid.js code for flowcharts, sequence diagrams, and system architecture maps. Essential for developers, DevOps, and PMs to visualize complex logic with zero fluff.
...more
Added 1 week ago
