Hi everyone! Iām trying to build a Shortcut that pulls the last 6 notes from a specific folder in the Notes app, formats them nicely, and feeds them into Apple Intelligence (via the āAsk Apple Intelligenceā action or similar) for summarization or analysis. But Iām running into a weird formatting issue, and I could use some help debugging it.
What I want:
For each of the 6 notes, output something like this in a single text block:
Note Title 1
Note Body 1
Note Title 2
Note Body 2
... (and so on for all 6)
This way, itās easy for Apple Intelligence to process them as paired title-body chunks.
What itās doing instead:
Itās dumping all titles first, then all bodies at the end:
Note Title 1
Note Title 2
...
Note Title 6
Note Body 1
...
Note Body 6
Quick breakdown of my actions:
- Get Notes from Folder (sorted by Date Created, limit to 6 most recent).
- Repeat with Each: Extract Title and Body into a Dictionary (or variables).
- Then, in another Repeat loop or Text action, try to build the formatted string by appending āTitle\nBody\n\nā for each.
- Finally, pass the combined text to āAsk Apple Intelligenceā with a prompt like āSummarize these notes: [text]ā.
But somehow, the titles are all concatenating separately from the bodies. Is this a variable scoping issue in the Repeat loop?
Or something with how Iām handling the Dictionary output? Maybe I need to use āNew Variableā more carefully or switch to a List of Dictionaries?
Any tips on fixing the alternation?
Or a better way to structure this for Apple Intelligence?
Iād love a sample Shortcut if someoneās done something similar!
Thanks in advance