Skip to content
OpenAI

How to use OpenAI

Artificial intelligenceCost: 1 credit + 2 per runTop 100 · #7Full guide

What it is for

The OpenAI component lets you use OpenAI models inside flooows to generate and analyze text, extract structured data, create images, transcribe audio and build embeddings. It fits email summaries, ticket classification or automatic reply drafting.

This component has no triggers: it is used as an action inside flows started by other triggers, such as a new email or a webhook.

Set up the connection

Authentication type: API key or token

  1. 1Add an OpenAI action to your flow and click "Connect".
  2. 2At platform.openai.com/api-keys create a new secret key and copy it; it is shown in full only once.
  3. 3Make sure your OpenAI account has credit or active billing, otherwise calls fail.
  4. 4Paste the key into the connection, name it and save.

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • In "Ask ChatGPT" choose the "Model", write the "Question" mixing instructions with data mapped from earlier steps and set "Maximum Tokens".
  • Use "Conversation Memory ID" with a stable value (for example a customer ID) to keep context across runs.
  • "Extract Structured Data" takes a "Text" and a list of "Fields" and returns an object ready to map into a CRM.
  • "Transcribe Audio" accepts a file from a previous step in "Audio"; set "Language" for better accuracy.

Tips

  • •Lower the "Temperature" for more consistent classification results.
  • •flooows can anonymize confidential data before sending it to AI; use it with customer information.
  • •Cap "Maximum Tokens" to keep cost per run under control.

Actions (19)

Operations available as flow steps. Expand each one to see its fields.

Ask ChatGPT9 fields
FieldTypeRequired
ModelList (from your account)Yes
QuestionLong textYes
Maximum TokensNumberYes
Conversation Memory IDTextNo
TemperatureNumberNo
Top PNumberNo
Frequency PenaltyNumberNo
Presence PenaltyNumberNo
RolesJSONNo
Ask Assistant (Deprecated)3 fields
FieldTypeRequired
AssistantList (from your account)Yes
QuestionLong textYes
Conversation Memory IDTextNo
Vision Prompt9 fields
FieldTypeRequired
ImageFileYes
QuestionLong textYes
Maximum TokensNumberNo
DetailList (from your account)No
TemperatureNumberNo
Top PNumberNo
Frequency PenaltyNumberNo
Presence PenaltyNumberNo
RolesJSONNo
Extract Structured Data3 fields
FieldTypeRequired
ModelList (from your account)Yes
TextLong textYes
FieldsList of valuesYes
Moderate Text2 fields
FieldTypeRequired
ModelFixed listYes
TextLong textYes
Analyze Text Sentiment2 fields
FieldTypeRequired
ModelFixed listYes
TextLong textYes
Create Embedding4 fields
FieldTypeRequired
ModelFixed listYes
TextLong textYes
Vector DimensionsNumberNo
User IDTextNo
Search Embeddings4 fields
FieldTypeRequired
ModelFixed listYes
QueryLong textYes
DocumentsList of valuesYes
Max ResultsNumberNo
Generate Image4 fields
FieldTypeRequired
ModelList (from your account)Yes
PromptLong textYes
SizeFixed listNo
QualityFixed listNo
Edit Image5 fields
FieldTypeRequired
ImageFileYes
PromptLong textYes
SizeFixed listNo
QualityFixed listNo
MaskFileNo
Text-to-Speech6 fields
FieldTypeRequired
TextLong textYes
ModelList (from your account)Yes
VoiceFixed listYes
Audio FormatFixed listYes
SpeedNumberNo
File NameTextNo
Transcribe Audio2 fields
FieldTypeRequired
AudioFileYes
LanguageFixed listNo
Translate Audio1 fields
FieldTypeRequired
AudioFileYes
Upload File3 fields
FieldTypeRequired
FileFileYes
PurposeFixed listYes
File NameTextNo
List Files2 fields
FieldTypeRequired
PurposeFixed listNo
Max ResultsNumberNo
Find File2 fields
FieldTypeRequired
File NameTextYes
PurposeFixed listNo
Delete File1 fields
FieldTypeRequired
File IDTextYes
List Models1 fields
FieldTypeRequired
Name ContainsTextNo
Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo

Common errors

429 quota error.

Add credit or check your OpenAI limits; if it is a speed limit, add retries or delays.

401 invalid key error.

Create a new key and update the connection.

Truncated answer.

Increase "Maximum Tokens" or ask for shorter output.

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps