Overview#
This example shows a multi-action workflow: your server returns three sequential actions that each trigger a different Shortcut.
Server Command#
Send morning to your server.
Server Response#
[
{ "msg": "Checking calendar...", "shortcut": "GetCalendar" },
{ "msg": "Getting weather...", "shortcut": "GetWeather" },
{ "msg": "Good morning! Here's your briefing.", "shortcut": "MorningSummary" }
]
Required iOS Shortcuts#
Create these three Shortcuts on your device:
1. GetCalendar#
- Find Calendar Events where start date is today
- Get Details of Calendar Events (title, start date)
- Format the events as text
2. GetWeather#
- Get Current Weather
- Format temperature and conditions as text
3. MorningSummary#
- Receive input from PocketHook (combined results)
- Show Notification with the summary
- Optionally: Speak Text to read it aloud
Server Code (router.ts)#
case "morning":
return toResponse(responses([
{ msg: "Checking calendar...", shortcut: "GetCalendar" },
{ msg: "Getting weather...", shortcut: "GetWeather" },
{ msg: "Good morning! Here's your briefing.", shortcut: "MorningSummary" }
]));
Automation Tip#
Combine with a Time of Day Shortcuts automation and the SendMessageIntent to run this every morning automatically.