Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

docs: use mermaid diagram for queue decision flow

Acho Arnold87de540b583c
diff --git a/outgoing-message-queue.md b/outgoing-message-queue.md
index 0dfed24f..0e8ee144 100644
--- a/outgoing-message-queue.md
+++ b/outgoing-message-queue.md
@@ -147,21 +147,19 @@ In this example, with a default rate of 10 messages/minute:
## Summary: Queue Decision Flow
-```
-Message received by httpSMS API
- │
- ├── Has explicit `send_at` time?
- │ │
- │ YES → Dispatch at exactly that time
- │ (bypasses rate-limit AND schedule window)
- │
- └── No `send_at` time
- │
- ├── Calculate rate-based delay
- │ (index × 60s ÷ messages_per_minute)
- │
- └── Apply send schedule window
- (hold until window opens if outside active hours)
+```mermaid
+flowchart TD
+ A[Message received by httpSMS API] --> B{Has explicit send_at time?}
+ B -->|YES| C[Dispatch at exactly that time]
+ C --> D[Bypasses rate-limit AND schedule window]
+ B -->|NO| E[Calculate rate-based delay]
+ E --> F["delay = index × (60s ÷ messages_per_minute)"]
+ F --> G{Send schedule window enabled?}
+ G -->|YES| H{Within active window?}
+ G -->|NO| I[Dispatch with rate delay only]
+ H -->|YES| I
+ H -->|NO| J[Hold until window opens]
+ J --> I
```
## Key Points