n8n

How to Automate Apple Shortcuts OpenAI Text Editing?

Turn any selected text into clean, clear copy with one keyboard shortcut. Apple Shortcuts sends your text to n8n, and the system fixes grammar, translates, or adjusts length, then sends the result back to replace the original. It suits teams that write emails, tickets, or posts all day.

A webhook receives a POST from Apple Shortcuts with two fields content and type. A Switch node reads the type and routes to one of five OpenAI nodes for translate to English, translate to Spanish, correct grammar, make shorter, or make longer. Each OpenAI node uses a short system prompt and returns JSON with a single field named output. A response node sends that field back to Shortcuts and can convert new lines to br tags for apps that need rich text. Models use GPT 4O Mini for fast replies.

You need an OpenAI API key and an Apple device with Shortcuts. Import the template, set the webhook URL in the Shortcut, allow running scripts, and assign a keyboard shortcut. Expect edits to drop from minutes to seconds with consistent tone across messages for support, marketing, and operations. Common uses include quick grammar checks before sending, fast translation for customers, and small length tweaks for social posts.

What are the key features?

  • Webhook trigger receives content and type from Apple Shortcuts
  • Switch node routes to five actions based on the selected mode
  • OpenAI nodes handle translate to English, translate to Spanish, correct grammar, make shorter, and make longer
  • Each OpenAI call returns JSON with a single output field for easy parsing
  • Response node returns only the output and can convert new lines to br tags
  • Uses GPT 4O Mini for quick and low cost text changes
  • One webhook supports multiple Shortcuts and different keyboard shortcuts

What are the benefits?

  • Reduce manual edits from 10 minutes to 10 seconds per text
  • Automate 100 percent of grammar fixes and translations
  • Keep tone and style consistent across emails and tickets
  • Use one endpoint for many Shortcuts to cut setup time
  • Replace text in place so no copy and paste is needed

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. Make sure you have an n8n Cloud workspace and an Apple device with the Shortcuts app installed. Confirm you can install a Shortcut and assign a keyboard shortcut.
  4. Open the workflow in n8n and double click any OpenAI node. In the Credential to connect with menu, click Create new credential, then enter your OpenAI API key from the OpenAI API page and save.
  5. Open the Webhook node and copy the Production URL. Keep Response mode set to Using Response Node so the workflow returns the edited text.
  6. Install the provided Apple Shortcut template. In the Shortcut step that sends the request, paste the Production Webhook URL and keep the POST method.
  7. In the Shortcut details, add a keyboard shortcut to run it quickly. In Shortcuts settings, enable Allow running scripts.
  8. Activate the workflow in n8n. Click Save and ensure the status shows Active so external calls reach the Production URL.
  9. Test with a short sentence. Choose a type such as english, spanish, grammar, shorter, or longer and confirm the returned text replaces your selection.
  10. If you see an error, verify the request body includes content and type fields. In n8n, check the execution logs and confirm the Switch node received the correct type value.
  11. If line breaks look wrong in your target app, in the Respond to Webhook node keep the replace of new lines with br tags as shown to preserve formatting.
  12. Optionally duplicate the Shortcut for different modes so each action has its own keyboard shortcut while pointing to the same webhook.

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:
Video tutorial: Video tutorial. Author: Baptiste

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.