Skip to main content

Wrk AI Agent - GPT 4o

Wrk Product avatar
Written by Wrk Product
Updated over 2 months ago

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)

Name

Description

Data Type

Required?

Example

Wrk API key

Wrk API key to import existing Wrkflows as tools for the AI Agent

Connected Account

Yes

Prompt

The prompt to generate completions for. Input will be truncated if it exceeds the limit set by the API

Text (Long)

Yes

What is the weather in Montreal?

System message

The message which sets the context and expectations for a conversation with the AI

Text (Long)

No

You are a helpful weatherperson you job is to get the weather for a given location

Thread

JSON array of all past messages

Text (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

Temperature

Sampling 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 deterministic

Number with decimals

No

0.8

Maximum length

The maximum number of tokens to generate in the completion. Defaults to 1024 if not provided

Number

No

1024

Frequency penalty

A number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far

Number with decimals

No

0.0

Presence penalty

A number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far

Number with decimals

No

0.0

Outputs (what you get)

Name

Description

Data Type

Required?

Example

Thread

All the existing messages in the agent's thread in JSON

Text (Long)

No

Here is the current weather for Montreal ...

Latest message

The latest message produced by the AI Agent

Text (Long)

No

Wrkflow UUID

UUID of the Wrkflow being called within the tool

Text (Short)

No

7cff6332-bfdd-42f2-8e17-e52c92687fca

Wrkflow start values

Wrkflow start values defined by the tool call

Text (Long)

No

{"location":"Montreal"}

Outcomes

Name

Description

Success

This status is selected if the job has successfully completed.

Async Wrkflow

This status is selected if the AI Agent needs to use an async Wrkflow

Sync Wrkflow

This status is selected if the AI Agent needs to use a sync Wrkflow

Requirements

  • N/A

Did this answer your question?