FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Designing Deterministic Outputs From Unstructured Messages
How-ToWeb Development

Designing Deterministic Outputs From Unstructured Messages

via Dev.to WebdevSeryl Lns4h ago

Your users send messy, unstructured text. Your backend expects clean, validated JSON. Bridging that gap is the hard part — and most teams get it wrong. This article walks through how to turn a raw WhatsApp message into a structured payload your application can safely act on. The Problem A real message from a hotel guest: hey can u move bk-4521 to fri plzz?? also ned more towls in rm 312 thx Typos. Abbreviations. Two requests in one message. No punctuation. Your PMS expects: { "booking_ref" : "BK-4521" , "new_date" : "2026-03-14" , "room" : "312" , "items" : [ "extra towels" ] } How do you get from A to B — reliably? Step 1: Define Your Schema Before touching any LLM, define what your backend expects. This is your contract. { "intent" : "string (enum)" , "actions" : [ { "type" : "string (action identifier)" , "payload" : { "field_1" : "string | number | null" , "field_2" : "string | number | null" } } ], "confidence" : "number (0-1)" , "suggested_reply" : "string | null" } Key principle

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
0 views

Related Articles

How to Use Claude Code for Free — No Subscription, No Tricks
How-To

How to Use Claude Code for Free — No Subscription, No Tricks

Medium Programming • 2h ago

Nobody Warned Me About This Part of Being a Junior Developer
How-To

Nobody Warned Me About This Part of Being a Junior Developer

Medium Programming • 4h ago

Talent gets the spotlight.
Discipline builds the legacy.
How-To

Talent gets the spotlight. Discipline builds the legacy.

Medium Programming • 4h ago

Coding in the Age of Co-Pilots: Why Developers Who Think Will Win
How-To

Coding in the Age of Co-Pilots: Why Developers Who Think Will Win

Medium Programming • 6h ago

Two more EVs for the trash heap: Volvo EX30 and Honda Prologue
How-To

Two more EVs for the trash heap: Volvo EX30 and Honda Prologue

The Verge • 7h ago

Discover More Articles