---
title: "OpenAI integration"
description: "Connect OpenAI to Softr and send content to OpenAI models from your workflows and agents to write, summarize, categorize, make decisions and generate images."
canonical: "https://docs.softr.io/integrations/openai"
updated: "2026-12-04"
---

# OpenAI integration

[OpenAI](https://platform.openai.com) provides AI models for generating text, making decisions, and creating images. In Softr workflows and agents, you can send content to OpenAI models and use the results in later steps.

## Connect OpenAI

1. Open your Softr app and go to **Workflows**.
2. Create a new workflow and add an OpenAI action.
3. Select **Connect OpenAI** and paste your OpenAI API key. You can create one in the [OpenAI platform dashboard](https://platform.openai.com) under **API keys**.
4. Choose the model and write your instructions or prompt.
5. Map fields from your Softr forms, records, or previous workflow steps into the prompt inputs.
6. Test the action, then publish the workflow.

## Use cases

| Use case                          | What it does                                                                        |
| --------------------------------- | ----------------------------------------------------------------------------------- |
| **Auto-generate listing content** | When a member adds a record, write a description and save it back to the record.    |
| **Illustrate records**            | Generate an image for each new product, event, or listing and attach it.            |
| **Score and route leads**         | Categorize form submissions and branch the workflow by lead type or urgency.        |
| **Summaries for your dashboard**  | Summarize long applications or feedback so your admin dashboard shows the gist.     |
| **Personalized member emails**    | When a user signs up, write a welcome email from their profile answers and send it. |

## Use OpenAI in workflows and agents

Workflows and agents can send content to OpenAI models to generate text, summarize, categorize, make decisions, and create images.

### Actions

![The OpenAI actions in the workflow step picker: Write, Summarize, Categorize, Custom prompt, Generate image (Image 2), Make a decision](/integrations/openai/actions.2x.webp)

_The OpenAI actions in the step picker of a workflow\._

| Action                       | What it does                                                                                                                                                                 |
| ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Custom prompt**            | Sends your own prompt with data from forms, records, or earlier steps. Use the response anywhere in your workflow.                                                           |
| **Write**                    | Generates original text such as email drafts, product descriptions, social posts, or personalized messages.                                                                  |
| **Summarize**                | Condenses long text, applications, feedback, or meeting notes into a short summary.                                                                                          |
| **Categorize**               | Assigns text to one of your predefined categories to route submissions and records.                                                                                          |
| **Generate image (Image 2)** | Creates an image from a text prompt. Use it as a record attachment, a listing visual, or an email asset.                                                                     |
| **Make a decision**          | Asks OpenAI one question about text, images, or both to get a yes or no, one of your options, or a score. See [Make a decision](/workflows/ai) for every setting and output. |

[AI in workflows](/workflows/ai) describes structured output, how an AI step ends with its `outcome` output, and how to choose a model.

## FAQ

**Whose OpenAI account does Softr use?**

Softr uses your own account. You paste your API key, so your OpenAI models and usage limits apply.

**Can OpenAI actions create images?**

Yes. The **Generate image (Image 2)** action creates an image from a text prompt. Use it as a record attachment, listing visual, or email asset.

**How do I branch a workflow on an OpenAI answer?**

Use **Categorize** to get a clean label, or **Make a decision** to get a yes or no, one of your options, or a score. Then branch on the result.
