قالب اختصار تحويل الصوت لمهام — iOS Shortcuts
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
الفكرة:
تسجل صوتك 30 ثانية، الاختصار يرسل التسجيل لـ Claude API، ويرجعلك قائمة مهام جاهزة.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
المتطلبات:
- آيفون (iOS 16 أو أحدث)
- تطبيق Shortcuts (مثبت افتراضياً)
- مفتاح Claude API من anthropic.com
- اشتراك إنترنت
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
خطوات بناء الاختصار:
الخطوة 1 — تسجيل الصوت
- أضف إجراء: Record Audio
- المدة: 30 ثانية
- الجودة: Normal
- سمّ المتغير: myRecording
الخطوة 2 — تحويل الصوت لنص
- أضف إجراء: Transcribe Audio (Dictation)
- المدخل: myRecording
- اللغة: العربية (أو English حسب كلامك)
- سمّ المتغير: myText
الخطوة 3 — تجهيز طلب Claude API
- أضف إجراء: Text
- الصق هذا النص:
{
"model": "claude-sonnet-4-20250514",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "حول هذا الكلام لقائمة مهام مرقمة. كل مهمة سطر واحد. رتبها بالأولوية. أضف وقت تقديري لكل مهمة. الكلام:\n\nMyText"
}
]
}
- استبدل MyText بالمتغير myText
- سمّ المتغير: requestBody
الخطوة 4 — إرسال الطلب
- أضف إجراء: Get Contents of URL
- الرابط: https://api.anthropic.com/v1/messages
- الطريقة: POST
- الهيدرز:
x-api-key: [مفتاحك هنا]
anthropic-version: 2023-06-01
content-type: application/json
- البودي: requestBody
الخطوة 5 — استخراج النتيجة
- أضف إجراء: Get Dictionary Value
- المفتاح: content
- ثم: Get Item from List → الأول
- ثم: Get Dictionary Value → المفتاح: text
- سمّ المتغير: taskList
الخطوة 6 — العرض والحفظ
- أضف إجراء: Show Result → taskList
- (اختياري) أضف: Add to Reminders أو Copy to Clipboard
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
نصيحة:
أضف الاختصار لشاشتك الرئيسية. اضغط، تكلم، وخلال 10 ثوانٍ مهامك جاهزة.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
من @mabuzant — تابعني للمزيد
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
--- English ---
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Voice-to-Task iOS Shortcut Template
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The Idea:
Record your voice for 30 seconds, the shortcut sends it to Claude API, and you get back a structured task list.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Requirements:
- iPhone (iOS 16 or later)
- Shortcuts app (pre-installed)
- Claude API key from anthropic.com
- Internet connection
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Building the Shortcut:
Step 1 — Record Audio
- Add action: Record Audio
- Duration: 30 seconds
- Quality: Normal
- Name variable: myRecording
Step 2 — Transcribe to Text
- Add action: Transcribe Audio (Dictation)
- Input: myRecording
- Language: English (or Arabic)
- Name variable: myText
Step 3 — Prepare Claude API Request
- Add action: Text
- Paste this:
{
"model": "claude-sonnet-4-20250514",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Turn this into a numbered task list. One task per line. Sort by priority. Add a time estimate to each task. Here is the input:\n\nMyText"
}
]
}
- Replace MyText with the myText variable
- Name variable: requestBody
Step 4 — Send the Request
- Add action: Get Contents of URL
- Method: POST
- Headers:
x-api-key: [your key here]
anthropic-version: 2023-06-01
content-type: application/json
- Body: requestBody
Step 5 — Extract the Result
- Add action: Get Dictionary Value
- Key: content
- Then: Get Item from List → First
- Then: Get Dictionary Value → Key: text
- Name variable: taskList
Step 6 — Display and Save
- Add action: Show Result → taskList
- (Optional) Add: Add to Reminders or Copy to Clipboard
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Tip:
Add this shortcut to your home screen. Tap, talk, and your tasks are ready in 10 seconds.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
From @mabuzant — follow for weekly AI content