Skip to main content

Wrk AI Agent - GPT 4o

An AI agent, capable of utilizing tools and Wrkflows, acts as an autonomous decision-maker by intelligently selecting the necessary processes and inputs to efficiently complete a given task.

To optimize performance, it is recommended to keep the number of tools and Wrkflows defined to a minimum. Models often experience reduced accuracy in selecting the correct tool when the total number exceeds 10–20.

Like all AI content, use with caution; information may be outdated, incomplete, or inaccurate.

Application

  • OpenAI

Inputs (what you have)

NameDescriptionData TypeRequired?Example
Wrk API keyWrk API key to import existing Wrkflows as tools for the AI AgentConnected AccountYes
PromptThe prompt to generate completions for. Input will be truncated if it exceeds the limit set by the APIText (Long)YesWhat is the weather in Montreal?
System messageThe message which sets the context and expectations for a conversation with the AIText (Long)NoYou are a helpful weatherperson you job is to get the weather for a given location
ThreadJSON array of all past messagesText (Long)No
Async Wrkflow UUID(s)Async Wrkflow UUIDs exposed to the AI Agent.List of Text (Short)No
Sync Wrkflow UUID(s)Sync Wrkflow UUIDs exposed to the AI Agent.List of Text (Short)No
TemperatureSampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministicNumber with decimalsNo0.8
Maximum lengthThe maximum number of tokens to generate in the completion. Defaults to 1024 if not providedNumberNo1024
Frequency penaltyA number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so farNumber with decimalsNo0.0
Presence penaltyA number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so farNumber with decimalsNo0.0

Outputs (what you get)

NameDescriptionData TypeRequired?Example
ThreadAll the existing messages in the agent's thread in JSONText (Long)NoHere is the current weather for Montreal ...
Latest messageThe latest message produced by the AI AgentText (Long)No
Wrkflow UUIDUUID of the Wrkflow being called within the toolText (Short)No7cff6332-bfdd-42f2-8e17-e52c92687fca
Wrkflow start valuesWrkflow start values defined by the tool callText (Long)No{"location":"Montreal"}

Outcomes

NameDescription
SuccessThis status is selected if the job has successfully completed.
Async WrkflowThis status is selected if the AI Agent needs to use an async Wrkflow
Sync WrkflowThis status is selected if the AI Agent needs to use a sync Wrkflow

Requirements

  • N/A