Context
A clinic in a bilingual border market runs Facebook lead ads. Leads arrived at all hours and in both languages, and replies depended on staff noticing a notification.
The problem
- Branching English and Spanish by Facebook form ID depended on an integration mapping that had failed silently before.
- One accented character in a text switches the whole message to a different encoding: 160 characters per segment drops to 70, roughly tripling the cost.
- A lead at 1:40 am must not receive a text at 1:41 am. Quiet hours are a legal requirement, not a preference.
Architecture
- 01One thread, mirrored languageThere is no branch on form ID. The first message is bilingual, and the assistant answers in whatever language the customer replies in.
- 02Encoding-aware SpanishSpanish SMS copy is written without accents so it stays in the cheaper encoding. Accents stay in the chat assistant, email and website, where they cost nothing.
- 03Compliance at the workflow levelSending hours and stop-on-response are set on the workflow itself, so no individual step can forget them.
- 04Gate the offerThe enrollment link is only sent after a tour is completed or the customer asks, never in the first-contact sequence.
Security model
- Contacts are created before any message is sent, so every text maps to a consented record.
- Opt-out keywords stop the sequence immediately.
Tasks now automated
- First response to every new lead
- Language detection and mirrored replies
- Follow-up until the lead responds or opts out
- Holding messages outside legal sending hours
Time returned
- ~5 min
- Staff time removed per lead
- 24/7
- Intake coverage
- 160 vs 70
- Characters per Spanish segment
Notice the lead, look it up, write and send the first text; now automatic.
Leads are answered nights and weekends, inside the sending window.
GSM-7 encoding kept by removing accents from SMS copy only.
Time figures are estimates per unit of work, based on the manual steps the build removed. Every other number on this page is measured.
Outcome
Every lead gets a first response in seconds, in a language they can answer in, without a staff member watching the inbox.
Spanish messaging costs about a third of what the naive version would.
In SMS, the encoding is part of the design. One character can triple the bill.