
See OpenAI's description for this example. Idea-related Brainstormīrainstorm some ideas about a given text. Grammar CorrectionĬorrect sentences into standard English. Translate text in the language specified in the variable second_language to the language specified in the variable first_language. Translate text in the language specified in the variable first_language to the language specified in the second_language. Japanese), the query may result in a more or less inaccurate response. Note: If the value of first_language is not English (e.g. You can ask questions in the language set to the variable first_language. The user-specified values to the following user settings are ignored when running these commands: These are features mainly based on OpenAI's example usage of its text-completion API.
#Open text workflow code
Provide program code in Python and example usage. Specify the purpose of the program, its function, the language and technology to be used, etc.Ĭreate a command line program that takes an English sentence and returns syntactically parsed output. GPT will generate program code and example output according to the text entered. Program Code Generation/Completion Write Program Code The additional text is added after the initial text and the resulting text is used as the query. The additional text is added before the initial text, and the resulting text is used as the query.Īfter the initial text is entered, the user is prompted for additional text.

The input text is directly sent as a prompt to the OpenAI text-completion API.Īfter the initial text is entered, the user is prompted for additional text. The original input text can be prepended or postfixed with instructional text to compose a complex query to be given to the API. The input text is used as a prompt to the OpenAI text-completion API. Method 2: set up a custom hotkey to Open web interface Method 1: Alfred textbox → keyword ( openai-textbox) You can open a web interface (see the figure below). Method 2: Alfred textbox → input query text → select fallback search ( OpenAI Query).Method 1: Alfred textbox → keyword ( openai) → tab → input query text.You can enter a query text directly into Alfred textbox: Method 2: set up a custom hotkey to Send selected text to OpenAI.Method 1: select text → universal action hotkey → select OpenAI Query.
#Open text workflow mac
You can select any text on your Mac and send it to the workflow:
#Open text workflow how to
Once homebrew is installed, run the following command.īrew install pandoc How to Execute This Workflow 📋 Using Selected Text Installing Pandoc will be just a few clicks once this workflow has been included in the Alfred Gallery. This will allow this workflow to convert the Markdown response from OpenAI to HTML and display the result in your default web browser with syntax highlighting enabled (especially useful when using this workflow to generate program code). You will also need to install the pandoc command. See also the Configuration section below.

To start using this workflow, you must set the environment variable apikey, which you can get by creating a new OpenAI account.
