iPhone Message Automation in Shortcuts (iOS 26 and 27)
By Fwrd · · Updated
An iPhone Shortcuts message automation is a trigger that runs actions by itself whenever a text arrives that matches a rule you set: who sent it, or a word it contains. Set to run without asking, it works in the background and hands the message to the next action, which can forward it, file it or send it somewhere else. It can’t read texts that arrived earlier, match literally every text, or run while the iPhone is off.
What you need: an iPhone with the Shortcuts app, which comes with it. These steps use iOS 27, with notes where iOS 26 differs.
What does an iPhone message automation do?
It watches for texts that match your rule and runs the actions you add, each time one arrives. Every automation has two halves.
- The trigger. On iOS 27 it reads “When I receive a message”, and on iOS 26 “When a message arrives”. You narrow it with rules: Sender, which only offers people in your Contacts, and Message Contains, which matches a word or phrase in the text. Forwarding one contact’s texts shows the Sender rule in use.
- The actions. Whatever comes after the trigger runs each time a matching text arrives. The text itself is passed along as Shortcut Input, so an action can use it. Tap that variable to pick other details of the message instead, such as its Sender.
iOS 27 changed where automations live. There’s no Automation tab any more: automations are listed under Library, then Automation, and the trigger is the first step of the shortcut. A new one may open on a Describe a shortcut screen; tap Edit to build it by hand. Where is the Automation tab in Shortcuts? shows where everything went. Coming from Android? Tasker for iPhone shows how a Tasker texting profile maps onto a Shortcuts automation.
Build one that forwards matching texts
Start a new automation. Open Shortcuts and tap Library, then Automation, then +. On iOS 26, open the Automation tab and tap +.
Get to the editor. If you see Describe a shortcut, tap Edit. Then tap Automation, then Message.
Set the rule. Change Sender to Message and type a word the texts you want contain, such as code. On iOS 26, fill in Message Contains. A single space matches any text with a space in it.
Stop it from asking first. Tap the arrow beside the trigger and check that Confirm Before Run is off. Under ⓘ, then Privacy, check that Allow Running When Locked is on. On iOS 26, choose Run Immediately, then tap Next and Create New Shortcut. If this is wrong, the automation waits for a tap instead of running.
Add the action. Add Fwrd’s Forward Message to All Destinations and set its Message field to Shortcut Input. For another phone, add Apple’s Send Message below it, with Fwrd’s output as the message, and check its Show Compose Sheet switch is off. Tap back to save (Done on iOS 26).
That’s it. The automation is saved and switched on, and new texts that contain your word now run its action on their own.
Rules that catch the right texts
- Match on the message for codes and alerts. They come from short numbers, which the Sender picker can’t choose, because it only lists your Contacts. Sharing 2FA codes with a team in Slack or Teams uses this rule.
- Pick a word the texts share. Many code texts say code; others say verification, passcode or PIN. Read a few real ones before you choose.
- Use more than one automation when one word won’t do. Each automation can end with the same action.
- Use a single space to forward any text with a space in it. A text with no spaces, like a one-word reply, a lone emoji or a bare link, won’t match.
- Or let Fwrd do the choosing. With a single space as the rule, Fwrd can filter each destination by words, by texts that look like a verification code, or by time of day. Sending one text to several apps shows how.
For what to build with it, see iPhone message automation ideas worth setting up.
What can’t a message automation do?
It can’t act without a rule, reach old texts, or run on a phone that’s off.
- No “every message” option. Shortcuts needs a rule. The single space comes closest.
- New texts only. It reacts to texts as they arrive. It can’t go back through your message history.
- The iPhone must be on. Actions that send something, like posting to Discord, also need Wi-Fi or mobile data when the text arrives.
- Actions that open a screen stall. A compose sheet or a confirmation waits for a tap that never comes, especially while the iPhone is locked. Turn those options off.
- After a restart, some apps wait for an unlock. iPhone keeps saved passwords locked until the first unlock. Fwrd stores your destinations the same way, so its action can’t send until you’ve unlocked the phone once. An iPhone that isn’t unlocked for three days restarts itself, too.
What does Fwrd add to the automation?
Fwrd is the action that forwards each text. It posts to Slack, Discord, Microsoft Teams, Telegram and webhooks itself, in the format each one expects, and hands email, another phone and WhatsApp to Apple’s or WhatsApp’s own send action. Credentials stay in the iPhone’s Keychain rather than inside a shortcut, a send that times out or hits a busy service is retried up to twice, and a history shows each forward and whether it was delivered. Each destination can filter, and 1.2 adds filters to email, another phone and WhatsApp. Turn on Include Who Sent It and choose Sender on Fwrd’s action to add who sent the text. Fwrd has a free plan with a monthly limit, and a text a filter skips doesn’t count toward it. Other forwarding apps run from the same automation, and this comparison of the best SMS forwarding apps for iPhone shows how they differ.
Questions about message automations
Does a message automation run when my iPhone is locked?
Yes, if it’s set to run without asking. Avoid actions that open a screen, because those can’t finish on a locked phone.
Can a message automation catch every text?
Not quite. Shortcuts always needs a rule. Message Contains with a single space catches any text with a space in it, which leaves out texts with no spaces at all, like one-word replies, a lone emoji or a bare link.
Can I have more than one message automation?
Yes. Make one for each word you want to match, and end each with the same action. Each automation runs Fwrd’s action once, so a text that matches two automations is forwarded twice. One automation with a single space, plus a filter on each destination in Fwrd, avoids that.
How do I run it for texts from anyone, not only my Contacts?
Match words, not the sender. The sender list only offers Contacts, so texts from short numbers, like bank and sign-in codes, never match. Choose Message Contains instead (on iOS 27, change Sender to Message) and type a word those texts share, or a single space for nearly every text.
Make your automation send to a chat
Add Fwrd’s action after the Message trigger, and selected new texts go to Slack, Discord, Telegram, email and more. Start free.
Free up to a monthly limit. Pro removes the limits on forwards and filters and adds a Never Forward list, with a free trial on the yearly plan for eligible customers.
iPhone · iOS 26 or later