PromptOpenAI 2025.10.9.21

Bundle

com.snowflake.openflow.runtime | runtime-openai-nar

Description

Sends a prompt to OpenAI, writing the response either as a FlowFile attribute or to the contents of the incoming FlowFile. The prompt may consist of pure text interaction or may include images. In the case of images, a URL may be provided, or the contents of the FlowFile may be used, depending on the provided configuration

Tags

ai, chat, image, openai, openflow, prompt, text

Input Requirement

REQUIRED

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
Detail LevelThe image detail level that OpenAI should use for processing the image. Low detail will be less expensive and lower latency, while a high level may provide better results.
Image MIME TypeThe MIME type of the image
Image Model NameThe name of the OpenAI model
Image URLThe URL of the image to send to OpenAI. If not specified, the contents of the FlowFile will be used as the image.
Max File SizeThe maximum size of a FlowFile that can be sent to OpenAI as an image. If the FlowFile is larger than this, it will be routed to ‘failure’.
Max TokensThe maximum number of tokens to generate
OpenAI API KeyThe API Key for authenticating to OpenAI
OpenAI OrganizationThe organization to use for OpenAI
Prompt TypeThe type of prompt to send to OpenAI
Response FormatThe format of the response from OpenAI
Results AttributeThe name of the attribute to write the response to. If unset, the response will be written to the FlowFile content.
SeedThe seed to use for generating the response
System MessageThe system message to send to OpenAI. FlowFile attributes may be referenced via Expression Language, and the contents of the FlowFile may be referenced via the flowfile_content variable. E.g., ${flowfile_content}
TemperatureThe temperature to use for generating the response.
Text Model NameThe name of the OpenAI model
Top PThe top P value to use for generating the response
UserYour end user, sent to OpenAI for monitoring and detection of abuse
User MessageThe user message to send to OpenAI. FlowFile attributes may be referenced via Expression Language, and the contents of the FlowFile may be referenced via the flowfile_content variable. E.g., ${flowfile_content}
Web Client ServiceThe Web Client Service to use for communicating with OpenAI

Relationships

NameDescription
failureIf unable to obtain a valid response from OpenAI, the original FlowFile will be routed to this relationship
successThe response from OpenAI is routed to this relationship

See also