Skip to main content

Apple Shortcut Integration

This guide will help you create and configure the Apple Shortcut that connects your Apple Watch to the Wrist Agent system.

Overview

Prerequisites

Before configuring the shortcut, gather these details from your AWS deployment:

# Get your API Gateway URL
aws cloudformation describe-stacks \
--stack-name WristAgentStack \
--query 'Stacks[0].Outputs[?OutputKey==`InvokeEndpoint`].OutputValue' \
--output text

# Get your authentication token
aws ssm get-parameter \
--name "/wrist-agent/client-token" \
--with-decryption \
--query 'Parameter.Value' \
--output text

Step 1: Download or Create Shortcut

  1. Download WristAgent.shortcut
  2. Open in Shortcuts app on iPhone
  3. Configure your API endpoint and token (Step 2)

Option B: Create Manually

Create a new shortcut with these actions:

Step 2: Configure Shortcut

Required Settings

SettingValue
API URLhttps://YOUR_API_ID.execute-api.us-west-2.amazonaws.com/prod/invoke
MethodPOST
Content-Typeapplication/json
X-Client-TokenYour token from SSM

HTTP Request Configuration

{
"text": "[Dictated Text]",
"mode": "[Selected Mode]",
"maxTokens": 800,
"thinkingTokens": 0
}

Mode Options

ModeUse CaseAction
noteGeneral notes, ideasCreates Apple Note
reminderTasks with due datesCreates Reminder
eventCalendar appointmentsCreates Calendar Event
researchDetailed informationCreates detailed Note
deepthinkComplex analysisCreates analytical Note

Step 3: Shortcut Actions Detail

Action 1: Dictate Text

Action: Dictate Text
Settings:
- Stop Listening: After Pause
- Language: Default
Output: Dictated Text

Action 2: Choose from Menu

Action: Choose from Menu
Prompt: "Select mode:"
Options:
- 📝 Note → "note"
- ⏰ Reminder → "reminder"
- 📅 Event → "event"
- 🔍 Research → "research"
- 🧠 Deep Think → "deepthink"
Output: Selected Mode

Action 3: Get Contents of URL

Action: Get Contents of URL
URL: https://YOUR_API_ID.execute-api.us-west-2.amazonaws.com/prod/invoke
Method: POST
Headers:
Content-Type: application/json
X-Client-Token: YOUR_TOKEN_HERE
Request Body (JSON):
{
"text": [Dictated Text],
"mode": [Selected Mode],
"maxTokens": 800
}
Output: API Response

Action 4: Parse Response

Action: Get Dictionary Value
Key: action
From: API Response
Output: Action Type

Action: Get Dictionary Value
Key: title
From: API Response
Output: Title

Action: Get Dictionary Value
Key: markdown
From: API Response
Output: Content

Action 5: Create Output

Step 4: Add Watch Complication

Configure Watch Face

  1. Open Watch app on iPhone
  2. Select My WatchClock
  3. Choose your watch face
  4. Tap Complications
  5. Select a slot → ShortcutsWrist Agent

Supported Complications

TypeSizeAppearance
CornerSmallIcon only
CircularMediumIcon + name
ModularLargeIcon + description
InfographVariableCustomizable

Step 5: Test the Integration

Quick Test

  1. Tap the complication on your Apple Watch
  2. Say: "Create a note about testing Wrist Agent"
  3. Select "📝 Note"
  4. Verify a note is created

Test Each Mode

InputExpected ModeExpected Output
"Note about project ideas"noteApple Note created
"Remind me to buy groceries tomorrow"reminderReminder with due date
"Meeting with team Friday 10am"eventCalendar event
"Research best practices for API design"researchDetailed note
"Should I learn Rust or Go?"deepthinkAnalytical note

Advanced Configuration

Extended Thinking

For complex analysis, enable extended thinking:

{
"text": "Analyze the implications of AI on employment",
"mode": "deepthink",
"maxTokens": 2000,
"thinkingTokens": 10000
}

Quick Shortcuts

Create simplified shortcuts for common tasks:

Shortcut NamePreset ModeMax Tokens
Quick Notenote400
Quick Reminderreminder400
Quick Eventevent400
Researchresearch1200
Deep Analysisdeepthink2000

Error Handling

Add error handling to your shortcut:

Response Format Reference

Successful Response

{
"markdown": "# Meeting Notes\n\nDiscussed project timeline...",
"action": "note",
"title": "Meeting Notes",
"dueISO": null,
"startISO": null,
"endISO": null,
"location": null,
"url": null,
"notes": null,
"tags": ["note", "meeting"]
}

Response Fields

FieldTypeUsed By
markdownstringNote content
actionstringDetermines output type
titlestringAll output types
dueISOstring/nullReminders
startISOstring/nullEvents
endISOstring/nullEvents
locationstring/nullEvents
urlstring/nullEvents
notesstring/nullEvents
tagsarrayAll types

Troubleshooting

Common Issues

Shortcut fails with 401/403

  • Verify X-Client-Token header is set
  • Check token matches SSM parameter
  • Ensure token hasn't been rotated

Shortcut times out

  • Check internet connectivity
  • Verify API Gateway URL is correct
  • Try with shorter input text

Note/Reminder not created

  • Check response parsing in shortcut
  • Verify "action" field in response
  • Enable shortcut debugging

Dictation not working

  • Enable Dictation in Settings
  • Check microphone permissions
  • Try speaking more clearly

Debug Mode

Add debugging to your shortcut:

  1. After API call, add Quick Look action
  2. View the raw response
  3. Verify all expected fields are present

Security Considerations

Token Storage

  • Token is visible in Shortcut configuration
  • Don't share shortcuts containing your token
  • Rotate token if device is compromised

Device Security

  • Use device passcode/Face ID
  • Enable "Erase Data" after failed attempts
  • Keep iOS/watchOS updated

Next Steps

Your Apple Watch is now connected to Claude Haiku 4.5! 🎉