> ## Documentation Index
> Fetch the complete documentation index at: https://docs.softr.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Openai

# OpenAI integration

Connect OpenAI with your Softr applications to add GPT-powered text generation, summarization, classification, and image creation to your workflows. Turn what your users submit into drafts, summaries, labels, and visuals — without writing a line of code.

## Overview

The Softr OpenAI integration sends content from your workflows to OpenAI's models and returns the result for use in any later step. Generate text with GPT models, classify and summarize what users submit, or create images from a text prompt — then store the output in a database, send it by email, or display it in your app.

In a typical Softr app, OpenAI picks up where your users leave off: a lead fills in a form block, a member posts a listing, an operations record changes status — and the workflow responds with generated copy, a summary for your team, a category to branch on, or a fresh image for the record.

## Available Actions

### Custom prompt

Send your own prompt to OpenAI — with data mapped in from forms, records, or earlier steps — and use the response anywhere in your workflow.

### Write

Generate original text such as email drafts, product descriptions, social posts, or personalized messages.

### Summarize

Condense long text — applications, feedback, meeting notes — into a short summary your team can scan at a glance.

### Categorize

Assign text to one of your predefined categories so submissions and records get routed automatically.

### Generate image (Image 2)

Create an image from a text prompt and use the result in your app — as a record attachment, a listing visual, or an email asset.

## Key Benefits

* **Text and images in one integration:** Generate copy and visuals from the same workflow, powered by your OpenAI account.
* **No-code AI:** Configure prompts visually in the workflow editor — no API calls or scripts to maintain.
* **Your own OpenAI account:** Connect with your API key and use your OpenAI models and usage limits directly.
* **Built for routing:** Use Categorize to produce clean labels you can branch on, filter with, or store in a record.

## Example Use Cases

| Use Case                          | Description                                                                                                   |
| :-------------------------------- | :------------------------------------------------------------------------------------------------------------ |
| **Auto-generate listing content** | When a member adds a record through your portal, write a polished description and save it back to the record. |
| **Illustrate records**            | Generate an image for each new product, event, or listing and attach it automatically.                        |
| **Score and route leads**         | Categorize incoming form submissions and branch the workflow by lead type or urgency.                         |
| **Summaries for your dashboard**  | Summarize long applications or feedback entries so your admin dashboard shows the gist, not the wall of text. |
| **Personalized member emails**    | When a user signs up, write a welcome email tailored to their profile answers and send it automatically.      |

## How to Connect Softr with OpenAI

1. Open your Softr app and go to **Workflows**.
2. Create a new workflow and add an OpenAI action.
3. Click **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. Save and activate your workflow.
