Theoretical Part
Magic Variables are keys for understanding how Shortcuts work:
- they connect actions together to achieve a specific result
- when you build shortcuts, you will in some way have a number of variables to deal with, depending on the size of the shortcut
- variables can be either a result of some action or can be created manually through Set Variable action
- For example, Ask for Input action can return a text, date, number, or url values
- Text can be called action but I’d rather call it simply “text field”. You can put some text in it, and it already becomes a magic variable. You can the put it anywhere else, even in other Text field as a magic variable
- There are actions in Shortcuts that do not return any value(meaning, you won’t see a magic variable after them when trying to select one). These are:
- Show result
- Stop and Output
- Quick Look
- Nothing
- I call these actions Debugging actions as they allow you to inspect the flow of the shortcut, mainly the return value(magic variable) of some action if the final result of the shortcut displays an error or is not correct.
- You can see what variables you have at your disposal in your shortcut by trying to insert a variable into any action


- in order for you to understand how magic variables bring actions together, here’s a video with explanation.
Video Part
https://youtu.be/LZHuvsdplqI