The HIPAA-compliant patient engagement playbook 

Personalize patient messages without exposing PHI. Use coded data, one activation event, and automations from intake to refills, with prompts for your AI Agent.

Molly Evola
Molly Evola
Sr. Content Marketing Manager

Healthcare marketers face a frustrating trade-off: send generic messages that respect patient privacy, or personalize your campaigns and stress over potential compliance issues. But you CAN have both.

This comes down to how you architect your data and design your campaigns so that personalization and compliance work together.

TLDR

Sort patient data into three categories (non-PHI, PHI to monitor, and PHI to reserve), and keep the last category in your secure systems.

Use coded identifiers for segments, so no readable diagnosis sits in your messaging platform.

Keep conditions and test results out of subject lines and push notifications, and send patients to a secure portal for details.

Your AI Agent can build the segments, automations, and emails from prompts that name coded attributes and events.

The compliance-personalization paradox

Most healthcare organizations default to the safest possible approach: broad, generic messages that treat every patient the same. Appointment reminders with no context. Health tips that apply to everyone and no one. Follow-ups that ignore what actually happened during the visit.

It's compliant, sure. It's also ineffective.

HIPAA asks for thoughtful data handling, and thoughtful data handling leaves plenty of room for messaging patients want to read. It starts with understanding what protected health information (PHI) you're working with and where it lives in your tech stack.

Think of it in three categories:

Non-PHI includes things like appointment dates, general engagement behavior, and communication preferences. This data is safe to use in standard campaigns and can live in your messaging platform.

PHI to monitor covers information like appointment types (coded) or general health interests. You can use this for segmentation, but you need to be careful about how you reference it in actual message content.

PHI to reserve is the sensitive stuff—specific diagnoses, test results, treatment details. This should stay in your secure systems and only be accessed through authenticated portals.

With this framework, you can build sophisticated campaigns that feel personal without putting sensitive information at risk.

Segment smarter, not harder

One of the most effective tactics is condition-based segmentation using coded identifiers. Instead of creating a segment called "diabetes_patients," use "condition_457." Your internal team knows what it means. Your platform doesn't expose it in a readable form.

You can layer this with behavioral data to get really specific. For example: "Active patients + Condition 457 + hasn't completed event 'annual_checkup' in past 12 months + prefers SMS communication." That's a highly targeted segment that triggers a relevant reminder campaign—all without readable PHI sitting in your messaging tool.

HealthMatch, a platform connecting patients with clinical trials, faced this exact challenge. They needed HIPAA-compliant messaging that could scale with their growth, but their existing tools weren't flexible enough. By implementing a data architecture that separated PHI from messaging triggers, they were able to create hyper-personalized campaigns through event streaming and reverse ETL—pulling just enough data to personalize without exposing sensitive details in their messaging platform.

Check out our AI-powered segmentation to see how Customer.io helps you build sophisticated segments without the manual work.

Your AI Agent can build segments like this one from a plain-language prompt. It works best when you name the exact attributes and events involved and use coded names instead of patient details. Try something like:

"Create a segment of patients with condition_code equal to condition_457, no annual_checkup event in the last 12 months, and preferred_channel set to SMS."

Messages that work (without saying too much)

Here's where a lot of healthcare marketers stumble: the subject line.

Risky: "Managing your diabetes: 3 tips from your care team"

Better: "3 tips for better health outcomes"

Even if the email is being sent to a diabetes management segment, you don't need to name the condition in the subject line. The patient knows why they're receiving it. But if that email gets forwarded, screenshotted, or viewed over someone's shoulder, you haven't exposed their diagnosis.

The same principle applies to push notifications, which appear on lock screens. Keep them general enough to be secure but specific enough to drive action: "Your test results are ready" works better than "Your A1C results are in."

For anything truly sensitive, link to your secure patient portal. Your message becomes the nudge ("You have a new message from your care team"), and the portal becomes the place where full details live.

Need a starting point? Your Agent can draft the copy too:

"Draft three subject lines and a push notification for the annual checkup reminder. Keep conditions, medications, and test results out, and point to the secure portal for details."

A compliant appointment journey in action

Let's walk through what this looks like in practice.

Patients who start intake and drop off are easy to lose. When intake_started fires and visit_booked doesn't within four hours, send one short email, then a text if the patient has consented to SMS. Exit anyone who books, and keep health details out of the message body. Your Agent can set this up from a prompt like:

"Build an automation that starts when intake_started fires, waits four hours, and emails anyone who hasn't triggered visit_booked. Exit people when they book."

When someone books an appointment, your scheduling system sends Customer.io the basics: patient ID, appointment type (in code), date, and how they prefer to be contacted.

Right after booking: They get a confirmation email with the appointment date, location, and a secure link to view details.

Two days before the appointment: Send an SMS reminder about any prep work. Something like: "Your appointment is in 2 days. Make sure you've completed your intake form: [secure link]."

One day before: This is where you can get personal without crossing any lines. Use true/false branching to customize the message:

  • Did they confirm their appointment? Send a standard reminder. If not, send a follow-up asking them to confirm with a simple reply option.
  • Is this their first visit? Include parking information and what to expect when they arrive. Returning patient? Skip those details and focus on appointment-specific preparation.

Two days after the appointment: Send a follow-up based on what type of appointment they had. A post-surgical check-in might ask how they're recovering. A preventive screening follow-up might share educational content about next steps.

Weeks later: Time refill and adherence messages to the treatment cadence. Send a reminder a week before supply runs out, and use a webhook to alert your care team when a patient misses a refill window.

The important part: none of these messages mentions specific diagnoses or treatment details. They're personalized based on coded data and what actions the patient has (or hasn't) taken.

Your Agent can build the appointment sequence from one prompt:

"Create an automation that triggers when visit_booked fires. Send an SMS two days before visit_date. One day before, branch on confirmed and first_visit. Two days after visit_completed, send a follow-up based on appointment_type_code. Keep diagnoses out of every message."

The technical setup (conceptually speaking)

You don't need to be a solutions architect to make this work, but you do need to think about data flow.

The key is keeping PHI in your secure systems and using your messaging platform to orchestrate communications based on coded triggers and events. REST APIs let you query your secure database when you need to verify information. Webhooks let you push trigger events to Customer.io without sending the full PHI payload.

This architecture protects both you and your patients. Your messaging platform knows when to send something and who to send it to, but the sensitive details stay locked in your HIPAA-compliant systems.

When you do need to send SMS—which is increasingly critical for patient engagement—you can do it confidently with Customer.io. We now support HIPAA-eligible SMS, allowing you to centralize all your communication workflows. No more running email campaigns in one tool and SMS in another. You get the same segmentation logic, the same workflow builder, and the same compliance safeguards across both channels.

Making compliance stick

Getting compliant is one thing. Staying compliant requires ongoing attention.

Start with regular access audits. Who on your team can see patient data in your messaging platform? When someone leaves or changes roles, remove their access immediately. Customer.io (http://Customer.io)'s role-based permissions make this straightforward—you can control who sees what without needing IT intervention every time.

Train your team on the thinking behind PHI handling, not just the rules. For example, can you include a patient's name in a push notification? It depends. If you're sending "Hi Sarah, your appointment is confirmed," that's generally fine—a first name with appointment confirmation isn't PHI. But "Sarah, your mammogram results are ready" crosses the line because it implies a health condition.

When you're pulling metrics, use de-identified reporting. You want to know that your appointment reminder campaign has an 87% open rate and a 34% click rate. You don't need to see which specific patients engaged.

Use the same care with your AI Agent. Refer to coded attributes and events in your prompts, keep patient details out of them, and review anything it drafts the way you'd review a human draft before it goes live.

Why this matters

Other platforms will tell you they can do HIPAA-compliant messaging. Some of them can—if you're willing to work within rigid limitations that force you back into generic, spray-and-pray campaigns.

The difference is flexibility. You need a platform that can handle the complexity of healthcare communications—multiple languages, omnichannel journeys, behavior-based triggers, real-time data integrations—while maintaining the security and compliance standards your organization requires.

Compliance and personalization aren't opposites. They're both essential. With the right data architecture and the right platform, you can send messages that patients actually want to receive—timely, relevant, and respectful of their privacy.

Want to see how Customer.io handles HIPAA-compliant messaging across all channels, like email and SMS? Book a demo to learn more.

Drive engagement with every message 

  • Omnichannel campaigns
  • Behavior-based targeting