Business · Product · Technology · AI

Build clinic WhatsApp drafts without claiming the message was sent

A Movo-X native case tracing clinic-specific draft templates, phone-number plausibility, encoded contact URLs and the separate outcomes of opening, sending, delivery and confirmed booking.

Work directly with Omer Muneer Qazi · Reviewed 29 November 2026

The scenario: contact intent is not a completed conversation

A patient chooses a service or request topic and taps a clinic contact button. The app can prepare a useful draft, but several outcomes still remain: the external app opens, the person reviews and sends the message, the recipient receives it and the clinic confirms any requested action. Each deserves its own product meaning.

Four existing Android JVM composer cases and one portable Swift contact-link case passed against selected Movo-X source with synthetic clinic information. They cover draft text and URL construction. The external app and actual clinic workflow were not exercised. This chapter keeps the handoff useful without turning a prefilled link into a delivery or booking claim.

Use the clinic contact boundary rather than the sign-in gateway

The selected Android composer reads the clinic profile’s WhatsApp contact and its booking/request/topic templates. Its source explicitly separates that contact workflow from the gateway number used by a reverse-WhatsApp sign-in challenge. A clinic conversation and a sign-in proof serve different purposes and should not inherit one another’s recipient.

The composer cases use a fake clinic profile. They do not verify that a published clinic contact belongs to the correct organization or that the number is currently reachable. Current profile ownership, administration and contact verification need their own acceptance. A locally valid URL should not be presented as evidence that the recipient is an authorized clinic operator.

Preserve the selected template contract

The Android default-template case checks request and topic text containing the clinic name and selected booking values. Another supplies custom clinic templates and checks that service, time, request and topic placeholders receive the intended values. The selected source retains English defaults when profile templates are unavailable.

The inspected Swift template type fills selected value placeholders while expecting clinic-specific text from the profile. That is source intent, not proof of identical defaults or every localized template path. The tests do not establish that every unresolved token or value containing placeholder-like braces is handled literally. Review those boundary inputs before making a broader template-preservation claim.

Describe phone checks as plausibility rather than ownership validation

The Android number case strips selected formatting to digits and rejects absent or too-short input. The Swift contact-link case checks an ordinary formatted number and rejects absent, too-short and script-like examples. The selected native implementations have different input-character policies, so these fixtures do not establish identical validation for every possible phone string.

Neither implementation contacts a numbering authority or proves control of a recipient account. The useful local claim is that selected inputs produce a contact URL or are refused. Add international formats, unsupported characters and stale profile values to acceptance, then verify the organization’s actual contact configuration through its authorized administration workflow.

Encode the draft without opening an external destination

The Android link fixture checks a wa.me URL, selected encoded spaces, agreement with the link validator and a missing-number refusal. The portable Swift case checks the generated host, path and presence of a text query. These operations construct strings or URL values; they do not invoke WhatsApp.

The inspected Swift source bounds the draft before URL encoding. The Android opener instead validates a bounded complete URL before launch. Those different boundaries need long-text and multilingual acceptance, especially when percent encoding expands the URL. Do not infer that all draft lengths, emoji or non-ASCII numerals are accepted from the selected ordinary-text fixtures.

Keep link validation separate from application launch

The inspected Android opener validates its URL before trying WhatsApp, then WhatsApp Business and finally a browser intent. The selected validator restricts HTTPS hosts and disallows user information and explicit ports. Those source branches were reviewed here, but no installed app or intent receiver was exercised.

A startActivity call returning successfully is still not proof that the user reached a compose screen or sent a message. Package availability, chooser behaviour, browser fallback and device restrictions require controlled native acceptance. The selected composer fixture’s agreement with the validator supports one generated link, rather than every possible external-launch outcome.

Do not turn a booking draft into a reservation

The inspected booking screen constructs a message from a selected service and preferred time and opens the external contact path. Its source displays an unavailable result when the opener reports failure. That is different from a server committing an appointment, allocating a slot or sending a clinic confirmation.

The selected request screen also distinguishes its application request flow from a fallback clinic-message draft. These UI paths were inspected only. Product wording, analytics and support procedures should preserve the difference between contact intent and an authoritative request/booking record. A tap or launch event alone should not be reported as a completed clinical or scheduling outcome.

Review the content that crosses the app boundary

The selected composer fills values supplied by the surrounding workflow. It does not independently determine whether the resulting message is appropriate to share externally. A useful acceptance review shows the actual draft, recipient and user control at the handoff, particularly when a topic or request label reveals personal context.

The local tests use synthetic text and do not inspect real messages, recipient copies, screenshots or external-app retention. They also do not establish an end-to-end privacy policy. Keep shared content intentionally scoped and verify the installed experience with controlled accounts rather than treating a correctly encoded query as complete privacy or consent evidence.

A clinic-contact integration handover

Retain the five scoped cases and add long/localized templates, contact administration, missing apps, browser fallback and controlled compose-screen checks. Verify that cancellation or returning without sending leaves the application in an honest state. Track any authoritative booking or clinical request through its own service result.

For a CEO or CTO, the resulting funnel is clear: selected intent becomes a draft; a validated destination supports handoff; the person decides whether to send; the clinic handles the conversation and confirms any action. The selected tests establish parts of draft construction. They do not certify message delivery, response rates or completed appointments.

Compare the reviewed boundaries

A contact button produces several separate outcomes

On smaller screens, scroll across to compare every column. Keyboard users can focus the table and use the arrow keys.

StageSelected evidenceSeparate acceptance
Prepare draftDefault/custom Android template casesLocalization and placeholder-boundary inputs
Build destinationSelected phone and encoded-URL fixturesVerified clinic contact and international formats
Open external appInspected intent/fallback source onlyInstalled package, browser and cancellation paths
Send or bookNo external interaction in this batchUser sending, delivery and authoritative confirmation

Illustrative control flow

Pseudocode summarizing the decision boundary. It is not copied production code or a deployment instruction.

draft = fill_clinic_contact_template(selected_intent)
link = compose_contact_url(clinic_contact, draft)
if validated_for_handoff(link): request_external_open(link)
# Opening is distinct from user sending, delivery and a confirmed booking.

About this engineering series

Written by Omer Muneer Qazi from a review of Movo-X implementation and dated engineering records. This article explains source behaviour and historical observations; current production, clinical outcomes and store availability require their own verification. Examples are synthetic and proposed test cases are identified as such.

Explore the Movo-X engineering series → · Related implementation experience →

Discuss a similar engineering problem

Send the workflow, current platform and the decision your team needs to make. I can help define an implementation or review scope with concrete acceptance evidence.

Discuss your project on WhatsApp ↗
WhatsApp Omer about this project ↗