Chat gpt response

From UBot Studio
Revision as of 16:14, 30 June 2023 by LillyT (Talk | contribs)

Jump to: navigation, search

$generate response generates a response from the specified GPT Agent based on the given prompt.

This function is used to solicit a reply from a designated GPT Agent, such as chatbot, using a specific prompt you provide.

Parameters

Input Prompt: The prompt you provide to stimulate a response from the GPT agent.

Agent Name: This parameter designates the GPT agent that you want to generate a response from. The default name is "ChatGPT".

Return Value

This function returns a string, which is the response generated by the specified GPT agent based on the given prompt.

Example

$response = $generate response("Hello, how are you?", "ChatGPT")

This script uses the prompt "Hello, how are you?" to solicit a reply from the agent "ChatGPT". The returned response is then stored in the variable named "response".

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox