Skip to main content
Skip table of contents

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

NameReferenceTypeRequiredDefaultOptionsDescription
ModelCHATGPT_MODELSelectgpt-5GPT-5: gpt-5

GPT-5-Mini: gpt-5-mini

GPT-5-Nano: gpt-5-nano

GPT-4.1: gpt-4.1
Model To use
PromptCHATGPT_PROMPTAlphanumeric--Prompt that will be sent to ChatGPT
Destination File NameCHATGPT_DESTINATION_FILE_NAMEAlphanumeric--The name for the txt file once it is generated.
Destination Folder NameCHATGPT_DESTINATION_FOLDER_NAMEAlphanumeric--
Web SearchCHATGPT_WEBSEARCHBooleanFalse-Let ChatGPT search the web for new information for your prompt. Be advised: This feature will add more runtime to your task.
Code InterpreterCHATGPT_CODE_INTERPRETERBooleanFalse-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

      
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.