The problem
Marketing Cloud can send an SMS and it can receive one, but there is no native console that stitches those two halves into a conversation. That gap is the product: a threaded view where an agent can message a subscriber and see the reply arrive.
What it does
- Free-form outbound SMS through Transactional Messaging.
- Inbound replies over two paths that feed one deduplicated ingest: a data extension the app polls, and an optional AMPscript webhook.
- Realtime threads over WebSocket, with delivery receipts (queued, sent, delivered).
- A setup screen that provisions the data extension, keyword and send definition, generates the AMPscript to paste, and verifies inbound.
- Subscriber search and support for several short or long codes.
How it is built
TypeScript throughout: a local server for development, and Cloudflare Workers with a single Durable Object holding state and sockets in deployment. The service layer is runtime-neutral. That was not true of the first port, where the deployed Worker could only send messages, so I rebuilt the boundary properly.
Why two inbound paths? Because there is no webhook for inbound SMS at all. Replies land in a data extension, which the app polls on a one-minute schedule, and the AMPscript webhook is the faster optional route.
What I learned
Four premises in my original design were wrong, and finding that out early was the most valuable part of the project:
- Inline AMPscript in the message body is not supported the way I assumed.
- Event Notification Service has no inbound SMS event.
- WhatsApp and LINE use different APIs, so "all mobile channels" is not one integration.
- JWT single sign-on is legacy only.
The data extension also returned field names in its own casing and dates in local time with no offset. The poller silently dropped every row while all tests passed. A mock that is kinder than the real service is worse than no mock.
One more thing worth saying out loud: opting a number back in after it replied STOP is a compliance decision, not a technical one. The README treats it that way.