OpenAI (Legacy)
26 nodes
On this page 26
Enable Trace
FunctionThis node carries no documentation.
EnableTrace() -> Truth
bool EnableTrace()
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Trace Counter
FunctionThis node carries no documentation.
TraceCounter() -> Integer
int TraceCounter()
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Tracer Session Data Time
FunctionThis node carries no documentation.
TracerSessionDataTime() -> Date & Time
DateTime TracerSessionDataTime()
Returns
| result | Date & Time |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Add Trace
FunctionThis node carries no documentation.
AddTrace(content: (Text, Text))
void AddTrace((string, string) content)
Parameters
| name | type | default | description |
|---|---|---|---|
| content | (Text, Text) | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Ask Chat GPT About Data
FunctionAsks ChatGPT a question about structured data provided in CSV format.
AskChatGPTAboutData -> Text
question: Text
dataCSV: Text
apiToken: Textstring AskChatGPTAboutData(
string question,
string dataCSV,
string apiToken)Parameters
| name | type | default | description |
|---|---|---|---|
| question | Text | — | The question to ask. |
| dataCSV | Text | — | The structured data in CSV format. |
| apiToken | Text | — | The API token for authentication. |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Ask Chat GPT About Image
FunctionAsks ChatGPT a question about an image reference.
AskChatGPTAboutImage -> Text
question: Text
imageReference: Text
apiToken: Textstring AskChatGPTAboutImage(
string question,
string imageReference,
string apiToken)Parameters
| name | type | default | description |
|---|---|---|---|
| question | Text | — | The question to ask. |
| imageReference | Text | — | The reference to an image (e.g., URL or file path). |
| apiToken | Text | — | The API token for authentication. |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Breakup Message Brute Force
FunctionBreaks up a message into smaller parts based on token size constraints.
Given an original message and allowable max window size, break it down by token count.
BreakupMessageBruteForce -> IEnumerable<Text>
piece: Text
model: Text
availableContextTokenSize: IntegerIEnumerable<string> BreakupMessageBruteForce(
string piece,
string model,
int availableContextTokenSize)Parameters
| name | type | default | description |
|---|---|---|---|
| piece | Text | — | The message piece to break down. |
| model | Text | — | The OpenAI model. |
| availableContextTokenSize | Integer | — | The maximum number of tokens available per segment. |
Returns
| result | IEnumerable<Text> |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Chat GPT Complete
FunctionOverload 1 of 7
ChatGPTComplete -> Text
query: Text
configuration: OpenAIConfigurationstring ChatGPTComplete(
string query,
OpenAIConfiguration configuration)Generates a completion using ChatGPT.
Parameters
| name | type | default | description |
|---|---|---|---|
| query | Text | — | The user query to be processed. |
| configuration | OpenAIConfiguration | — | The OpenAI configuration settings, including model, API token, and token size limit.. |
Returns
| result | Text |
Overload 2 of 7
ChatGPTComplete -> Text
query: Text
replyTokenSizeLimit: Integer
configuration: OpenAIConfigurationstring ChatGPTComplete(
string query,
int replyTokenSizeLimit,
OpenAIConfiguration configuration)Generates a completion using ChatGPT.
Parameters
| name | type | default | description |
|---|---|---|---|
| query | Text | — | The user query to be processed. |
| replyTokenSizeLimit | Integer | — | |
| configuration | OpenAIConfiguration | — | The OpenAI configuration settings, including model, API token, and token size limit.. |
Returns
| result | Text |
Overload 3 of 7
ChatGPTComplete -> Text
system: Text
query: Text
configuration: OpenAIConfigurationstring ChatGPTComplete(
string system,
string query,
OpenAIConfiguration configuration)Generates a completion using ChatGPT with a system message.
Parameters
| name | type | default | description |
|---|---|---|---|
| system | Text | — | The system message. |
| query | Text | — | The user query. |
| configuration | OpenAIConfiguration | — | The OpenAI configuration settings. |
Returns
| result | Text |
Overload 4 of 7
ChatGPTComplete -> Text
system: Text
query: Text
replyTokenSizeLimit: Optional Integer
configuration: OpenAIConfigurationstring ChatGPTComplete(
string system,
string query,
int? replyTokenSizeLimit,
OpenAIConfiguration configuration)Generates a completion using ChatGPT with a system message.
Parameters
| name | type | default | description |
|---|---|---|---|
| system | Text | — | The system message. |
| query | Text | — | The user query. |
| replyTokenSizeLimit | Optional Integer | — | Limit of reply's token size (length). |
| configuration | OpenAIConfiguration | — | The OpenAI configuration settings. |
Returns
| result | Text |
Overload 5 of 7
ChatGPTComplete -> Text
system: Text
messages: List of Chat Message
configuration: OpenAIConfiguration
replyTokenSizeLimit: Optional Integerstring ChatGPTComplete(
string system,
List<ChatMessage> messages,
OpenAIConfiguration configuration,
int? replyTokenSizeLimit = 4000)Generates a completion using ChatGPT with a system message and a list of messages.
Parameters
| name | type | default | description |
|---|---|---|---|
| system | Text | — | The system message. |
| messages | List of Chat Message | — | The list of messages exchanged in the conversation. |
| configuration | OpenAIConfiguration | — | The OpenAI configuration settings. |
| replyTokenSizeLimit | Optional Integer | 4000 |
Returns
| result | Text |
Overload 6 of 7
ChatGPTComplete -> Text
system: Text
messages: List of Chat Message
tools: Text
configuration: OpenAIConfiguration
replyTokenSizeLimit: Optional Integerstring ChatGPTComplete(
string system,
List<ChatMessage> messages,
string tools,
OpenAIConfiguration configuration,
int? replyTokenSizeLimit = 4000)Generates a completion using ChatGPT with additional tool options.
Parameters
| name | type | default | description |
|---|---|---|---|
| system | Text | — | The system message. |
| messages | List of Chat Message | — | The list of messages exchanged in the conversation. |
| tools | Text | — | The tools used for additional processing. |
| configuration | OpenAIConfiguration | — | The OpenAI configuration settings. |
| replyTokenSizeLimit | Optional Integer | 4000 |
Returns
| result | Text |
Overload 7 of 7
ChatGPTComplete -> (result: Text, messageTokenCount: Integer)
system: Text
userQuery: Text
model: OpenAIConfiguration.OpenAIModel
abortIfExceedAllowance: Truthstring ChatGPTComplete(
string system,
string userQuery,
OpenAIConfiguration.OpenAIModel model,
out int messageTokenCount,
bool abortIfExceedAllowance = true)Complete using automatic configurations for specific model.
Parameters
| name | type | default | description |
|---|---|---|---|
| system | Text | — | The system message. |
| userQuery | Text | — | The user query. |
| model | OpenAIConfiguration.OpenAIModel | — | The OpenAI model configuration. |
| abortIfExceedAllowance | Truth | True | If true, aborts if the token count exceeds the allowed limit. |
Returns
| result | Text |
| messageTokenCount | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Configure Open AI
FunctionConfigures the OpenAI API by providing the necessary API key and model selection.
ConfigureOpenAI -> OpenAIConfiguration
apiKey: Text
model: OpenAIConfiguration.OpenAIModelEnum
serviceAddress: TextOpenAIConfiguration ConfigureOpenAI(
string apiKey,
OpenAIConfiguration.OpenAIModelEnum model = OpenAIModelEnum.OpenAIo3Mini,
string serviceAddress = "https://api.openai.com/v1")Parameters
| name | type | default | description |
|---|---|---|---|
| apiKey | Text | — | The API key used to authenticate with the OpenAI API. |
| model | OpenAIConfiguration.OpenAIModelEnum | OpenAI o3-mini | The OpenAI model to use for generating the completion. Defaults to OpenAIo3Mini. |
| serviceAddress | Text | https://api.openai.com/v1 | Endpoint for Chat Completion. |
Returns
| result | OpenAIConfiguration |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Generate Audio Completion
FunctionLike text completion, but also generates an audio version.
GenerateAudioCompletion -> Optional (Byte Array, Text)
system: Text
text: Text
configuration: OpenAIConfiguration(byte[], string)? GenerateAudioCompletion(
string system,
string text,
OpenAIConfiguration configuration)Parameters
| name | type | default | description |
|---|---|---|---|
| system | Text | — | |
| text | Text | — | |
| configuration | OpenAIConfiguration | — |
Returns
| result | Optional (Byte Array, Text) |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Generate Response
FunctionThis node carries no documentation.
GenerateResponse -> LegacyOpenAIHelper.ResponseReply
previousConversation: Text
system: Text
userQuery: Text
configuration: OpenAIConfiguration
functions: FunctionalNodeDescription Array
temperature: NumberLegacyOpenAIHelper.ResponseReply GenerateResponse(
string previousConversation,
string system,
string userQuery,
OpenAIConfiguration configuration,
FunctionalNodeDescription[] functions,
double temperature = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| previousConversation | Text | — | |
| system | Text | — | |
| userQuery | Text | — | |
| configuration | OpenAIConfiguration | — | |
| functions | FunctionalNodeDescription Array | — | |
| temperature | Number | 1 |
Returns
| result | LegacyOpenAIHelper.ResponseReply |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Get Gpt5nano
FunctionThis node carries no documentation.
GPT5Nano() -> OpenAIConfiguration.OpenAIModel
OpenAIConfiguration.OpenAIModel GPT5Nano()
Returns
| result | OpenAIConfiguration.OpenAIModel |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Get Open Ai3 5turbo
FunctionThis node carries no documentation.
OpenAI3_5Turbo() -> OpenAIConfiguration.OpenAIModel
OpenAIConfiguration.OpenAIModel OpenAI3_5Turbo()
Returns
| result | OpenAIConfiguration.OpenAIModel |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Get Open Ai4o
FunctionThis node carries no documentation.
OpenAI4o() -> OpenAIConfiguration.OpenAIModel
OpenAIConfiguration.OpenAIModel OpenAI4o()
Returns
| result | OpenAIConfiguration.OpenAIModel |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Get Open Ai4o Mini
FunctionThis node carries no documentation.
OpenAI4oMini() -> OpenAIConfiguration.OpenAIModel
OpenAIConfiguration.OpenAIModel OpenAI4oMini()
Returns
| result | OpenAIConfiguration.OpenAIModel |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Get Open A Io1
FunctionThis node carries no documentation.
OpenAIo1() -> OpenAIConfiguration.OpenAIModel
OpenAIConfiguration.OpenAIModel OpenAIo1()
Returns
| result | OpenAIConfiguration.OpenAIModel |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Get Open A Io3mini
FunctionThis node carries no documentation.
OpenAIo3Mini() -> OpenAIConfiguration.OpenAIModel
OpenAIConfiguration.OpenAIModel OpenAIo3Mini()
Returns
| result | OpenAIConfiguration.OpenAIModel |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Get Embedding
FunctionRetrieves an embedding representation of the given content.
GetEmbedding -> Number Array
content: Text
configuration: OpenAIConfigurationdouble[] GetEmbedding(
string content,
OpenAIConfiguration configuration)Parameters
| name | type | default | description |
|---|---|---|---|
| content | Text | — | The input content. |
| configuration | OpenAIConfiguration | — | The OpenAI configuration settings. |
Returns
| result | Number Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Get Token Count
FunctionGets the token count for a given message and model.
GetTokenCount(message: Text, modelName: Text) -> Integer
int GetTokenCount(string message, string modelName)
Parameters
| name | type | default | description |
|---|---|---|---|
| message | Text | — | The message to analyze. |
| modelName | Text | — | The name of the OpenAI model. |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Moderate Flag
FunctionUse OpeNAI moderation to decide whether some content contains flagged information.
ModerateFlag -> Optional Truth
content: Text
configuration: OpenAIConfigurationbool? ModerateFlag(
string content,
OpenAIConfiguration configuration)Parameters
| name | type | default | description |
|---|---|---|---|
| content | Text | — | The content to check. |
| configuration | OpenAIConfiguration | — | The OpenAI configuration settings. |
Returns
| result | Optional Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Text To Speech
FunctionSynthesises speech and returns it as a 44.1 kHz stereo segment.
TextToSpeech -> StandardAudioSegment
text: Text
configuration: OpenAIConfigurationStandardAudioSegment TextToSpeech(
string text,
OpenAIConfiguration configuration)Parameters
| name | type | default | description |
|---|---|---|---|
| text | Text | — | |
| configuration | OpenAIConfiguration | — |
Returns
| result | StandardAudioSegment |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Text To Speech Raw
FunctionSimple text-to-speech. No tone reflection etc. For advanced use, do GenerateAudio.
TextToSpeechRaw -> Byte Array
text: Text
configuration: OpenAIConfigurationbyte[] TextToSpeechRaw(
string text,
OpenAIConfiguration configuration)Parameters
| name | type | default | description |
|---|---|---|---|
| text | Text | — | |
| configuration | OpenAIConfiguration | — |
Returns
| result | Byte Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Transcribe
FunctionOverload 1 of 3
Transcribe -> Text
segment: StandardAudioSegment
configuration: OpenAIConfigurationstring Transcribe(
StandardAudioSegment segment,
OpenAIConfiguration configuration)Transcribes a 44.1 kHz stereo clip via Whisper.
Parameters
| name | type | default | description |
|---|---|---|---|
| segment | StandardAudioSegment | — | |
| configuration | OpenAIConfiguration | — |
Returns
| result | Text |
Overload 2 of 3
Transcribe -> Text
segment: StandardAudioSegment
maxChunkSize: Number
configuration: OpenAIConfigurationstring Transcribe(
StandardAudioSegment segment,
double maxChunkSize,
OpenAIConfiguration configuration)Splits a long clip into ≤ Max Chunk Size s pieces before sending to Whisper.
Parameters
| name | type | default | description |
|---|---|---|---|
| segment | StandardAudioSegment | — | |
| maxChunkSize | Number | — | The OpenAI API can handle at most this large chunk at a time - we will internally slice the segment to fit within the chunks and aggregate final transcription. |
| configuration | OpenAIConfiguration | — |
Returns
| result | Text |
Overload 3 of 3
Transcribe -> Text
segments: StandardAudioSegment Array
maxChunkSize: Number
configuration: OpenAIConfigurationstring Transcribe(
StandardAudioSegment[] segments,
double maxChunkSize,
OpenAIConfiguration configuration)Batch‑transcribes multiple clips, chunking each one when necessary.
Parameters
| name | type | default | description |
|---|---|---|---|
| segments | StandardAudioSegment Array | — | |
| maxChunkSize | Number | — | |
| configuration | OpenAIConfiguration | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Transcribe Folder Audios
FunctionTranscribe with automatic chunking.
TranscribeFolderAudios -> Text Array
folderPath: Text
configuration: OpenAIConfigurationstring[] TranscribeFolderAudios(
string folderPath,
OpenAIConfiguration configuration)Parameters
| name | type | default | description |
|---|---|---|---|
| folderPath | Text | — | |
| configuration | OpenAIConfiguration | — |
Returns
| result | Text Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Use Computer
FunctionThis node carries no documentation.
UseComputer -> LegacyOpenAIHelper.ResponseReply
previousConversation: Text
system: Text
userQuery: Text
configuration: OpenAIConfiguration
localFunctions: FunctionalNodeDescription ArrayLegacyOpenAIHelper.ResponseReply UseComputer(
string previousConversation,
string system,
string userQuery,
OpenAIConfiguration configuration,
FunctionalNodeDescription[] localFunctions)Parameters
| name | type | default | description |
|---|---|---|---|
| previousConversation | Text | — | |
| system | Text | — | |
| userQuery | Text | — | |
| configuration | OpenAIConfiguration | — | |
| localFunctions | FunctionalNodeDescription Array | — |
Returns
| result | LegacyOpenAIHelper.ResponseReply |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI
Use Computer Screenshot
FunctionOnly used for reply. Must use UseComputer to start usage first.
UseComputerScreenshot -> LegacyOpenAIHelper.ResponseReply
previousConversation: Text
callID: Text
base64Image: Text
screenWidth: Integer
screenHeight: Integer
configuration: OpenAIConfigurationLegacyOpenAIHelper.ResponseReply UseComputerScreenshot(
string previousConversation,
string callID,
string base64Image,
int screenWidth,
int screenHeight,
OpenAIConfiguration configuration)Parameters
| name | type | default | description |
|---|---|---|---|
| previousConversation | Text | — | |
| callID | Text | — | |
| base64Image | Text | — | |
| screenWidth | Integer | — | |
| screenHeight | Integer | — | |
| configuration | OpenAIConfiguration | — |
Returns
| result | LegacyOpenAIHelper.ResponseReply |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- OpenAI (Legacy)
- Package
- Generative AI