n8n

How to Automate Apple Shortcuts Content Editing?

Turn selected text into polished copy in seconds. From one keyboard shortcut, writers can translate, fix grammar, or change length without switching apps. Perfect for content teams and solo creators who want clean text while they write.

An HTTP webhook receives a request from Apple Shortcuts with two fields: type and content. A Switch node checks the type and routes to one of five OpenAI actions for English, Spanish, grammar, shorter, or longer. Each OpenAI node uses a focused prompt and returns JSON with a single output field. A respond node sends the final text back, so the Shortcut replaces the selected text right away. Line breaks can be returned as HTML br tags to keep formatting in apps that need it.

Setup is simple. You need an OpenAI API key and Apple Shortcuts on macOS or iOS. Map body.content to your text and set body.type to one of english, spanish, grammar, shorter, or longer. Teams cut edit time, avoid copy and paste, and keep tone consistent across content, emails, and docs.

What are the key features?

  • Webhook trigger receives JSON from Apple Shortcuts with body.content and body.type.
  • Switch node routes requests to English, Spanish, grammar, shorter, or longer actions.
  • Five OpenAI nodes use targeted prompts and return JSON with a single output field.
  • Respond to Webhook returns the final text and can convert line breaks to HTML br tags.
  • Keyboard shortcut in Apple Shortcuts replaces selected text in any app.

What are the benefits?

  • Reduce text edits from 10 minutes to 30 seconds
  • Automate up to 80 percent of routine edits and translations
  • Eliminate copy and paste between apps during writing
  • Improve consistency by using the same prompts for every user
  • Support many users through one secure webhook endpoint

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Apple Shortcuts and OpenAI. See the Tools Required section above for links to create accounts with these services.
  3. In n8n, open the workflow and enable it so it can accept incoming requests.
  4. Set up OpenAI credentials: double click any OpenAI node, choose 'Credential to connect with', click 'Create new credential', paste your OpenAI API key from your OpenAI account, and save. Use a clear name like OpenAI Prod.
  5. Confirm each OpenAI node is set to return JSON and points to the same credential. Keep the default model or select another supported model if needed.
  6. Open the Webhook from Shortcut node, copy the Production URL, and keep the Response mode as response node.
  7. Check the Switch node rules. It expects body.type with exact lowercase values: english, spanish, grammar, shorter, or longer.
  8. In Apple Shortcuts on macOS or iOS, create a Shortcut that sends an HTTP POST to the webhook URL. Send a JSON body with fields content for the selected text and type for the action.
  9. Add a keyboard shortcut in the Shortcut details so you can trigger it while writing.
  10. Test each path. Send a short paragraph with type set to grammar, then try english, spanish, shorter, and longer. Confirm the text is replaced in your app.
  11. If line breaks look wrong, open Respond to Shortcut and change the response to return plain text or keep the replaceAll to output HTML br tags depending on your app.
  12. Troubleshoot: 401 or 403 means check your OpenAI API key. 404 means verify the webhook URL. If there is no reply, confirm the workflow is active and the request uses POST.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Apple Shortcuts

Sign up

Free: $0 (Shortcuts app; no API pricing—use Get Contents of URL to call webhooks)

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

Credits:
Baptiste
Video tutorial

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.