SMS Automation: Trigger Texts from Any Workflow
SMS automation means your systems send the text instead of a person: an order ships, a customer replies, a reminder comes due, and the message goes out on its own. Every setup below is one trigger plus one API call, and all three patterns run on the free plan with 300 messages a month and replies that never count.
What are the three trigger patterns?
| Pattern | Trigger | Action | Example |
|---|---|---|---|
| Event to SMS | Something happens in your app | POST /api/v1/messages/send | Order shipped, build failed, booking confirmed |
| Inbound to action | A reply arrives | A webhook handler runs code, optionally answers | YES books the slot, a question opens a ticket |
| Scheduled | A time arrives | A cron job or scheduler sends the message | Morning reminders, weekly digest, renewal nudge |
Event to SMS is one POST at the point where the event completes:
curl -X POST https://smsnet.net/api/v1/messages/send \
-H "X-API-Key: $SMSNET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"to": "+15551234567", "body": "Your order #412 shipped. Reply STOP to opt out."}'
The response returns a message_id plus your remaining quota, so the job can slow down before it hits the daily ceiling instead of discovering it as a 429. The request shape is the same one in Send an SMS from a Python Script.
Inbound to action starts from the webhook in How to Receive SMS and Handle Replies with Webhooks: each message.received event runs your code, which can update another system, then answer with the same send call to keep the conversation in one thread.
Scheduled sends come from your own scheduler, one POST per message at the due time:
# every weekday at 9:00, remind today's appointments
0 9 * * 1-5 /usr/bin/python3 /opt/sms/remind_today.py
An AI agent can run all three patterns through the MCP server, which exposes sending, polling, replies and webhooks as 41 tools; see What Is an MCP Server for SMS?.
Event, inbound reply, and schedule: the three triggers that cover every automation.
What compliance rules apply to automated sending?
Automation multiplies volume, so three rules keep a sender trusted:
| Rule | What happens | How to comply |
|---|---|---|
| Quiet hours | Ordinary messages wait for civil hours where the recipient is | Only mark a message transactional when the recipient is waiting on it right now |
| Warmup | A new line is capped at 100 sends a day until it warms up | Ramp lists gradually; check line health before a big send |
| STOP | A reply with STOP opts the number out, and resending returns 403 | Never retry a 403; remove the number from the list |
Text only people who agreed to hear from you, and include opt out wording on the first message of any recurring series.
How do I connect Zapier, Make or n8n?
No plugin is needed because both halves are plain HTTP. Use the platform's webhook trigger as the inbound half: register its catch hook URL with PUT /api/v1/webhooks and each reply arrives as a message.received event. Use its HTTP action as the outbound half: one POST to https://smsnet.net/api/v1/messages/send with the X-API-Key header, to and body. Signature verification for the inbound half and cursor polling as a backup are covered in the webhooks guide.
What does a webhook to CRM flow look like?
A typical flow files every reply into the contact record, then decides whether a human or a template answers. The event your handler receives looks like this:
{
"event": "message.received",
"data": {
"from": "+15551234567",
"body": "Yes, Thursday works",
"message_id": "msg_01j9x8k2...",
"conversation_id": "conv_01j9x8k2..."
}
}
File it by phone number, then branch on content:
if event["event"] == "message.received":
data = event["data"]
crm.upsert_note(phone=data["from"], text=data["body"],
conversation_id=data["conversation_id"])
if data["body"].strip().lower() == "yes":
send_sms(data["from"], "Booked for Thursday. Reply STOP to opt out.")
Because the reply carries conversation_id, the CRM thread and the SMS thread stay in sync without any matching logic on your side.
How do I text a whole list without looking like spam?
For one to many sends, use campaigns instead of a loop: they go out at a steady per minute pace you control, at a human rhythm carriers tolerate, and they honor quiet hours and STOP automatically. Start small on a warmed line, watch delivery in GET /api/v1/messages, and check pricing before a big launch so the plan ceiling never surprises you mid list.
FAQ
What is SMS automation?
SMS automation means your systems send texts without a person pressing send: an event in your app triggers a message, an inbound reply triggers an action, or a schedule fires a reminder. Every pattern is one trigger plus one call to POST /api/v1/messages/send or one webhook handler.
How do I trigger an SMS from an event in my app?
Add one POST to https://smsnet.net/api/v1/messages/send with to and body at the point where the event completes, such as after checkout or after a build finishes. Mark it transactional only when the recipient is waiting on it right now, like a code or an alert.
Can an incoming reply trigger another system?
Yes. Register a webhook with PUT /api/v1/webhooks and run your logic on each message.received event: update the CRM, book the slot, or answer with POST /api/v1/messages/send. Verify the HMAC signature before acting on anything, as shown in the webhooks guide.
How do I schedule recurring texts?
Run the send from your own scheduler, such as cron or a queue worker, with one POST per message at the due time. For lists, use campaigns, which send at a steady per minute pace you control and honor quiet hours and STOP automatically.
How do I stay compliant when automating SMS?
Text only people who agreed to hear from you, keep ordinary messages inside civil hours, ramp new lines gradually from the 100 a day warmup cap, and honor STOP at once: a resend after opt out returns 403, which means stop, not retry.
Do automated replies count against my plan?
Inbound replies never count. Every outbound text counts toward the free plan of 300 messages a month and 20 a day, including OTP codes and automated answers. Watch the quota object in each send response and upgrade on the pricing page before a big launch.
Related guides
This pillar builds on What Is an SMS API and How to Use One. The inbound half is How to Receive SMS and Handle Replies with Webhooks. Code starters: Send an SMS from a Python Script and What Is an MCP Server for SMS?. No-code starters: Send SMS from n8n, Send SMS from Zapier and Make, and Appointment Reminder SMS. Selling online? Order and Delivery Notifications. Grab a key in the app.
Send your first message today
Free plan, no card: 400 messages a month from your own number, with the API, webhooks and MCP included.
Get the app See pricing