
π Student Projects (College Reports) Β· Sequence
An ATM cash withdrawal step by step: card and PIN, balance and limit check, debit, cash dispensing and receipt, with a blocked card after three wrong PINs and a reversal if the dispenser fails.
Opening a template is free and never counts toward your daily diagrams. Asking the AI to change it counts as one.
Drawing diagramβ¦
Sequence diagram for an ATM cash withdrawal: the customer inserts a card; the ATM reads the card and asks for the PIN; the bank server verifies the PIN, and after three wrong PINs the card is blocked; the customer enters an amount; the bank checks the balance and daily limit and debits the account; the ATM dispenses cash, returns the card and prints a receipt; if the cash dispenser fails, the bank reverses the debit.
sequenceDiagram
autonumber
actor customer as Customer
participant atm as ATM Terminal
participant bank as Bank Server
participant ledger as Core Banking Ledger
participant dispenser as Cash Dispenser
customer->>atm: Insert card into ATM terminal
atm->>customer: Prompt for PIN entry
customer->>atm: Enter 4-digit PIN
atm->>bank: POST /v1/auth/verify-pin {cardId, pin}
bank->>ledger: Verify PIN against account database
ledger-->>bank: PIN check result
bank-->>atm: PIN result (session token if valid)
alt 3 consecutive invalid PIN entries
atm->>bank: POST /v1/cards/block {cardId}
bank-->>atm: 403 Forbidden (Card blocked)
atm-)customer: Retain card and display card blocked message
else Valid PIN entered
customer->>atm: Select withdrawal amount (βΉ2,000)
atm->>bank: POST /v1/transactions/withdraw {amount: 2000}
bank->>ledger: Check balance and debit account (βΉ2,000)
ledger-->>bank: Account debited successfully
bank-->>atm: 200 OK (Authorize cash dispense)
atm->>dispenser: Command cash dispensation (βΉ2,000)
alt Cash dispenser failure
dispenser-->>atm: Dispense error (Hardware jam)
atm->>bank: POST /v1/transactions/reverse {txId}
bank->>ledger: Credit back debited account (βΉ2,000)
ledger-->>bank: Reversal completed
bank-->>atm: 200 OK (Debit reversed)
atm-)customer: Display error message and eject card
else Cash dispensed successfully
dispenser-->>atm: Cash physical release confirmed
atm-)customer: Dispense cash bills (βΉ2,000)
atm-)customer: Eject card and print receipt
end
endA sequence diagram with 5 participants and 25 messages, in the order they happen.
Describe your own system in plain English and the AI sequence diagram generator draws it in seconds, in the same style as this template.
Who uses a college library system and what each of them can do: members, the librarian and the system administrator.
The database of a library system: books and their copies, authors, members, loans, reservations and fines, with keys and cardinality.
How data moves through a library system: members and the librarian, the main processes, and the data stores they read and write.
The main classes of a library system with attributes, methods and UML relationships.
The steps when a member borrows a book: checks, loan record and the copy status update.
What students, examiners and the administrator do in an online examination system.