Philip Young
In this guide, you'll learn how to integrate Session with Apple Shortcut. If you don't know about Session automation yet, you can learn more from Automate your workflow with Session Automation.
You can learn how to make your iOS Shortcut from internet / YouTube. We'll write a guide soon.
There's 9 scenarios where automation ran. They are:
session_start
session_pause
session_unpause
session_end
break_start
break_went_too_long
break_end
session_end
or break_end
not called. Example, from abandon Session : stop_working
What you probably use is session_start
, session_end
, stop_working
, and possibly break_start
.
Simply made an Apple Shortcut with the matching name above. Session will run it for you.
Session
> Settings (Gear icon)
> Automation
,+
button to create a new shortcut.session_start
.As of Session v2.3
, you will receive additional data from Session on shortcut like Session title
, start date
, end date
, category title
, etc
You can get those data on shortcut by choosing Get dictionary from input
and choose the input as Shortcut input
.
Then You can parse the data from Shortcut Input by getting it from Get Value For Key
.
Here are possible values from Session:
title
: your session intentiontype
: fullFocus
, partialFocus
, pause
, rest
, or endEarly
category
id
: Category IDtitle
: Category titlestatus
: active
| archived
hex_color
: Color of the categorystart_date
: start datepause_date
: pause date if existsend_date
: ended date (only on session_end
and break_end
)notes
: the notesmeta
: pauses with start date and end date if existsduration_second
: session duration you choosepassed_second
: total passes second since start datefrom_another_device
: If the event comes from your other devices via real time syncUse this Shortcut to easily get the data that you need.
As of v2.10
, Session has redesigned Apple Shortcuts to be more powerful and convenient. Now you can easily get Sessions':
…directly from Apple Shortcuts.
Keep in mind that this only works for ongoing session—not for session end or stop working.
For that you need to rely on Shortcut Input data.
Congratulations! Now you've automated your workflow based on Session current state
!