Generate text with OpenAI
This Workflow Companion action allows you to generate text using OpenAI's GPT models. The action can be used with any trigger.
Prerequisites
An OpenAI API key is required to use this action. You can get it from OpenAI.
Configuration
Basic Setup
- Open the app and go to Settings → Actions
- Go to the OpenAI (GPT) section
- Enter your API key
- Set up completion parameters:
- Name: an identifier for the parameter set.
- Model: select the OpenAI model to use. See the models overview for details.
- Temperature: controls the randomness of the output. Lower values are more deterministic, higher values more creative. Only classic models (gpt-4, gpt-4o, gpt-4.1, gpt-3.5) accept temperature;
- Max Tokens: the maximum number of output tokens to generate, including reasoning tokens on reasoning models.
- System Prompt: instructions that steer the model's behavior, such as a role or a goal (sent as the Responses
API
instructions). - Reasoning effort: for reasoning models, how much effort the model spends reasoning. Higher effort improves quality but uses more output tokens.
Action Parameters
When configuring the action in your workflow, you can specify:
- Prompt (required): enter a prompt to generate the text that you want. You can use workflow variables in your
prompt using the
{{variable}}syntax. - Image URL: URLs of images, one per line (up to 10). Each image is passed to OpenAI along with the prompt, so the model can describe, classify, or extract text from them.
- Completion Parameters: one of the parameter sets you created in the previous step. If not specified, the default parameter set will be used.
Output
The generated text is available as a variable that can be used in subsequent workflow steps.