Skip to main content
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
This node generates text responses from an OpenAI model. It allows you to have conversations with the AI model by sending text prompts and receiving generated responses. The node supports multi-turn conversations where it can remember previous context, and it can also process images and files as additional context for the model.

Inputs

ParameterData TypeRequiredRangeDescription
promptSTRINGYes-Text inputs to the model, used to generate a response (default: empty)
persist_contextBOOLEANYes-Persist chat context between calls for multi-turn conversation (default: True)
modelCOMBOYesMultiple OpenAI models availableThe OpenAI model to use for generating responses
imagesIMAGENo-Optional image(s) to use as context for the model. To include multiple images, you can use the Batch Images node (default: None)
filesOPENAI_INPUT_FILESNo-Optional file(s) to use as context for the model. Accepts inputs from the OpenAI Chat Input Files node (default: None)
advanced_optionsOPENAI_CHAT_CONFIGNo-Optional configuration for the model. Accepts inputs from the OpenAI Chat Advanced Options node (default: None)

Outputs

Output NameData TypeDescription
output_textSTRINGThe text response generated by the OpenAI model