Breadcrumbs

ChatGPT - Generate Response

Overview

Sends a prompt to ChatGPT and returns the message. Select a model to use and let ChatGPT generate a message for you. This is for a very general use such as * Enable Code Interpreter to generate a code snippet * Write out a response to a question * Ask a general question * Enable Web Search to enable ChatGPT to gather current sources on the web for its message (This can take a much longer time than normal to complete)

Variables

Name

Reference

Type

Required

Default

Options

Description

Model

CHATGPT_MODEL

Select

gpt-5

GPT-5: gpt-5

GPT-5-Mini: gpt-5-mini

GPT-5-Nano: gpt-5-nano

GPT-4.1: gpt-4.1

Model To use

Prompt

CHATGPT_PROMPT

Alphanumeric

-

-

Prompt that will be sent to ChatGPT

Destination File Name

CHATGPT_DESTINATION_FILE_NAME

Alphanumeric

-

-

The name for the txt file once it is generated.

Destination Folder Name

CHATGPT_DESTINATION_FOLDER_NAME

Alphanumeric

-

-

Web Search

CHATGPT_WEBSEARCH

Boolean

False

-

Let ChatGPT search the web for new information for your prompt. Be advised: This feature will add more runtime to your task.

Code Interpreter

CHATGPT_CODE_INTERPRETER

Boolean

False

-

Allows ChatGPT to write code to solve a problem

YAML

Below is the YAML template

YAML

source:
  template: ChatGPT - Generate Response
  inputs:
    CHATGPT_MODEL: gpt-5
    CHATGPT_PROMPT:
    CHATGPT_DESTINATION_FILE_NAME:
    CHATGPT_DESTINATION_FOLDER_NAME:
    CHATGPT_WEBSEARCH: false
    CHATGPT_CODE_INTERPRETER: false
  type: TEMPLATE
guardrails:
  retry_count: 0
  retry_wait: 0h0m0s
  runtime_cutoff: 1h0m0s
  exclude_exit_code_ranges:
    - 200