SMSNET
Guide · Pillar

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?

PatternTriggerActionExample
Event to SMSSomething happens in your appPOST /api/v1/messages/sendOrder shipped, build failed, booking confirmed
Inbound to actionA reply arrivesA webhook handler runs code, optionally answersYES books the slot, a question opens a ticket
ScheduledA time arrivesA cron job or scheduler sends the messageMorning 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.

The three SMS automation trigger patterns Three rows. Top: an event such as an order shipping triggers one send call. Middle: an inbound reply such as YES triggers an action that books the slot. Bottom: a scheduled cron job triggers reminders. Three triggers, one send call each Every automation below is a trigger plus POST /messages/send or one webhook handler. Event in your app order ships, build fails > Send: order shipped text one POST where the event completes Inbound reply arrives customer answers YES > Action: book the slot, then answer webhook handler runs code, reply stays in thread Time arrives cron each weekday at 9:00 > Send: todays reminders, one POST each scheduler fires, lists use campaigns Replies never count against the plan, so the inbound row is free to run.
Diagram of the three SMS automation patterns: an app event triggers one send, an inbound YES reply triggers a booking action plus an answer, and a cron schedule triggers reminders.

What compliance rules apply to automated sending?

Automation multiplies volume, so three rules keep a sender trusted:

RuleWhat happensHow to comply
Quiet hoursOrdinary messages wait for civil hours where the recipient isOnly mark a message transactional when the recipient is waiting on it right now
WarmupA new line is capped at 100 sends a day until it warms upRamp lists gradually; check line health before a big send
STOPA reply with STOP opts the number out, and resending returns 403Never 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.

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

Get it on Google Play

Written by , who builds SMSNET. Product facts on this page are checked against the live pricing page and the running API on the date shown above.