Build a First iPhone Shortcut You Can Verify

Build a three-action Shortcuts example, verify the output manually and decide whether an automation trigger is useful.

Use this exercise to learn how Shortcuts passes an action’s output to the next action. The example runs on sample text, needs no account and exposes a result you can inspect before scheduling anything.

Text feeds Count, then the result goes to Show Result
Illustrated action sequence. Labels can differ with the device language and software version.

Build and run manually

  1. In Shortcuts, create a shortcut with the plus button. Call it Check sample words.
  2. Add a Text action. Enter the three words green phone desk without punctuation.
  3. Add a Count action. Set the unit to Words and check that its input is the text from the previous action.
  4. Add Show Result. Set it to show the output of Count.
  5. Run the shortcut in the editor. The result is 3. Change the text to green phone desk lamp and repeat. The result should be 4.

Apple’s shortcut creation guide explains editing and running the shortcut. The content flow guide explains how an action’s output is passed along. The exercise gives an expected result for these fixed inputs.

Diagnose a wrong result

Find where the word-count shortcut failed
  1. Review the input

    Use a short fixed string with a known word count.

  2. Trace the three actions

    Check that the text reaches the counting action and then the display action.

  3. Read the result

    Compare the visible count with the expected value before adding a trigger.

The count unit matters. If the output is larger than expected, select Words and ensure the Count action is receiving the current Text value. If the same number appears after changing the text, reselect the Count result in Show Result. Use a new sample with plain spaces before trying punctuation, mixed languages or copied content.

Once it works, replace the first action only. For example, add a text input action and keep the count and result actions. Test an empty input and a three-word input before you share the shortcut. When you use real input later, check which actions could send it to another app or Internet service.

Decide whether an automation trigger helps

Set a trigger only after the manual route is repeatable. Apple documents personal automation and which triggers can run automatically. A workflow that displays an interactive result is easier to verify while you are using the phone.

If your goal includes validating an iOS app’s visual UI or asserting that a particular button exists, use a native test in a controlled environment. For a task an app already exposes to Shortcuts, this action approach keeps the workflow inspectable. See the cross-system comparison for the alternatives.