At a glance
- Trigger
- Webhook (Webhook from Shortcut)
- Nodes
- 8
- Apps
- OpenAI
- AI nodes
- 5
- Credentials
- 1 type
- Category
- AI agents and LLM tools
Apps and integrations
Node types used
How it works
The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.
Check these explanations [< 3 min]
Setup notes
The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.
Workflow: Text automations using Apple Shortcuts
- This workflow answers user requests sent via Apple Shortcuts
- Several Shortcuts call the same webhook, with a query and a type of query
- Types of query are
- translate to english
- translate to spanish
- correct grammar (without changing the actual content)
- make content shorter
- make content longer
How it works
- Select a text you are writing
- Launch the shortcut
- The text is sent to the webhook
- Depending on the type of request, a different prompt is used
- Each request is sent to an OpenAI node
- The workflow responds to the request with the response from GPT
- Shortcut replace the selected text with the new one
How to use it
- Activate the workflow
- Download this Shortcut template
- Install the shortcut
- In step 2 of the shortcut, change the url of the Webhook
- In Shortcut details, "add Keyboard Shortcut" with the key you want to use to launch the shortcut
- Go to settings, advanced, check "Allow running scripts"
- You are ready to use the shortcut. Select a text and hit the keyboard shortcut you just defined
- If you use rich formatting, you'll have to test multiple ways to replace characters in the output. For example, you might use in the "Respond to Shortcut" node depending on the app you use most.
- This is a basic example that you can extend and modify at your will
- You can duplicate and modify the example shortcut based on your need, as well as making new automations in this workflow.
Nodes in this workflow
The 8 nodes in file order (sticky notes excluded). Branches and connections determine execution order in n8n:
- Switch (Switch)
- Respond to Shortcut (Respond to Webhook)
- Webhook from Shortcut (Webhook)
- OpenAI - Make Shorter (OpenAI)
- OpenAI - Make Longer (OpenAI)
- OpenAI - Correct Grammar (OpenAI)
- OpenAI - To Spanish (OpenAI)
- OpenAI - To English (OpenAI)
Credentials you need
- OpenAI API – used by OpenAI - Correct Grammar, OpenAI - Make Longer, OpenAI - Make Shorter and OpenAI - To English and others
Configure your own credentials after importing. Create each credential in n8n, then select it in the node.
How to import into n8n
- Download the JSON file with the button above.
- In n8n, open a new workflow, select the ... menu and choose Import from File. You can also paste the JSON straight into the editor canvas.
- Open each node that shows a warning and select or create its credential.
- Read the notes on the canvas, test the workflow with sample data, then activate it.
Do you need somewhere to run it? Read our guide to self-hosted n8n.