How it works
Send an appointment reminder
Scheduling strategies
Choose a scheduling approach based on your application’s requirements:- Telnyx Scheduled Messages
- Cron / Job Scheduler
- Event-Driven Queue
The simplest approach — use the Telnyx API’s built-in scheduled messaging feature. No external scheduler needed.Pros: No infrastructure needed, simple API call
Cons: Limited to single scheduled time per API call, max 7 days in advance
Python
Handle replies (confirm / cancel)
Set up a webhook to receive replies and update appointment status:Opt-out handling
Automatic opt-out (Telnyx managed)
Automatic opt-out (Telnyx managed)
Telnyx automatically handles standard opt-out keywords (
STOP, UNSUBSCRIBE, CANCEL, END, QUIT) for US long codes and toll-free numbers. When a user texts STOP:- Telnyx sends an automatic reply confirming the opt-out
- Future messages to that number are blocked at the carrier level
- You receive a
message.receivedwebhook with the STOP keyword
Application-level opt-out tracking
Application-level opt-out tracking
In addition to Telnyx’s automatic handling, track opt-outs in your database to prevent scheduling reminders for opted-out users:
Timing best practices
1
Send reminders at appropriate times
- 24 hours before: Primary reminder — enough time to cancel/reschedule
- 2-3 hours before: Final reminder for same-day appointments
- Avoid late night/early morning: Only send between 9 AM and 8 PM in the recipient’s local time zone
2
Use multiple reminder windows
For high-value appointments (medical, legal), send two reminders:
- 48 or 24 hours before — gives time to reschedule
- 2-3 hours before — final confirmation
3
Respect time zones
Always calculate reminder times in the recipient’s local time zone. Sending a reminder at 3 AM is worse than not sending one at all.
4
Keep messages concise
SMS has character limits. Keep reminders under 160 characters (1 segment) when possible to minimize costs. Include only essential info:
- Patient name
- Date and time
- Location (short form)
- Reply instructions
Message templates
Example templates for different industries
Example templates for different industries
Healthcare:Dental:Salon / Spa:Auto Service:Legal / Financial:
Related resources
Scheduled Messages
Use the Telnyx API to schedule messages for future delivery.
Advanced Opt-In/Out
Customize opt-in/out behavior for your messaging profile.
Webhooks
Receive inbound messages and delivery status updates.
Rate Limiting
Understand throughput limits for bulk reminder sending.