Overview
This workflow answers user requests sent via Mac 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 longerHow it works
1. Select a text you are writing.
2. Launch the shortcut.
3. 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. The shortcut replaces the selected text with the new one.
How to use it
1. Activate the workflow.
2. Download this Shortcut template.
3. Install the shortcut.
4. In step 2 of the shortcut, change the URL of the webhook.
5. In Shortcut details, “add Keyboard Shortcut” with the key you want to use to launch the shortcut.
6. 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.