n8n

How to Automate Shortcuts Content Editing?

Speed up writing in any app with a simple keyboard shortcut. Apple Shortcuts sends your selected text to n8n, which fixes grammar, translates, or adjusts length, then returns clean text back to your device. Great for teams who write in many tools and want fast, consistent edits.

A webhook receives a POST from Apple Shortcuts with two fields called content and type. A Switch node reads the type and routes to one of five OpenAI prompts to translate to English, translate to Spanish, correct grammar only, make shorter, or make longer. Each OpenAI node outputs structured JSON with one field named output. A Respond to Webhook node sends that output back right away and can convert line breaks to HTML when needed.

You need an OpenAI API key and a Shortcut that posts to your n8n webhook URL. Expect a big time drop in small edits, from minutes to seconds. This is useful for support reps, sales teams, operations staff, and content editors who work in email, documents, chat, or tickets and want one quick way to improve text.

What are the key features?

  • Receives text and request type through a webhook from Apple Shortcuts
  • Routes requests with a Switch node to five clear paths based on type
  • Uses five OpenAI prompts for translate to English, translate to Spanish, grammar fix, make shorter, and make longer
  • Returns structured JSON with a single output field for easy use
  • Sends the result back instantly with Respond to Webhook for real time updates
  • Optional line break to HTML conversion for apps that need formatted text

What are the benefits?

  • Reduce manual edits from 5 minutes to 10 seconds
  • Automate up to 80 percent of routine text cleanup
  • Improve grammar accuracy and consistency across teams
  • Connect Apple Shortcuts and OpenAI without switching apps
  • Handle five common text actions from one keyboard shortcut

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 OpenAI and Apple Shortcuts. See the Tools Required section above for links to create accounts with these services.
  3. In n8n Cloud, open the Credentials page. Create a new OpenAI credential. On the OpenAI website, create an API key, copy it, paste it into the credential, give it a clear name, and save.
  4. Open each OpenAI node in the workflow. In the Credential to connect with dropdown, click Create new credential if needed, pick your saved OpenAI credential, and save the node.
  5. Open the Webhook node. Confirm HTTP Method is POST and note the path shown. Save the node.
  6. Copy the Production webhook URL from the Webhook node. This URL will be used inside Apple Shortcuts.
  7. Install the Apple Shortcut template and edit the action that calls the webhook. Paste your n8n webhook URL. Ensure the request body includes two fields named content and type.
  8. In Apple Shortcuts settings, allow running scripts if prompted and assign a keyboard shortcut for quick access.
  9. Test the flow. Select text on your device, run the Shortcut with type set to one of these values: translate to english, translate to spanish, correct grammar, make content shorter, or make content longer. Check n8n Executions to confirm the Switch and OpenAI nodes run and a response is sent.
  10. If your target app needs plain text, open the Respond to Webhook node and set the response body to {{$json.message.content.output}}. If your app supports HTML, keep the line break conversion for better formatting.
  11. Troubleshoot common issues. If you get errors, make sure Content Type is application json in the Shortcut, the body includes content and type, and JSON Output remains enabled in all OpenAI nodes. If routing fails, verify the type text matches the expected labels exactly.

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.