Get chat gpt messages

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "'''$get chat gpt messages''' is a function used to return the messages associated with a specified agent. This function can be used to fetch and review the messages associat...")
 
Line 1: Line 1:
'''$get chat gpt messages''' is a function used to return the messages associated with a specified agent.  
+
'''$get chat GPT messages''' returns the messages associated with the specified GPT agent.
  
This function can be used to fetch and review the messages associated with a specific GTP agent.
+
This function allows you to retrieve the fullconversation history for a specified chat GPT agent.  
  
 
== Parameters ==
 
== Parameters ==
  
'''Agent (Optional):''' The name of the agent whose messages you want to retrieve. The default is ChatGPT if none is specified.
+
'''Agent:''' This parameter allows you to specify the GPT agent whose messages you want to retrieve. The default is "ChatGPT".
  
== Returns ==  
+
== Return Value ==
  
A string, the messages associated with the specified GPT agent.
+
This function returns a string, which is the text of the messages associated with the specified GPT agent.
  
 
== Example ==
 
== Example ==
  
 
<pre>
 
<pre>
$messages = $get chat gpt messages("Customer Support Agent")
+
$conversation = $get chat GPT messages("ChatGPT")
 
</pre>
 
</pre>
  
In this example, the function retrieves the messages associated with the "Customer Support Agent". The retrieved messages are stored in the variable '$messages'.
+
In this script, the function retrieves the messages associated with the agent "ChatGPT". The returned conversation history is then stored in the variable named "conversation".

Revision as of 16:15, 30 June 2023

$get chat GPT messages returns the messages associated with the specified GPT agent.

This function allows you to retrieve the fullconversation history for a specified chat GPT agent.

Parameters

Agent: This parameter allows you to specify the GPT agent whose messages you want to retrieve. The default is "ChatGPT".

Return Value

This function returns a string, which is the text of the messages associated with the specified GPT agent.

Example

$conversation = $get chat GPT messages("ChatGPT")

In this script, the function retrieves the messages associated with the agent "ChatGPT". The returned conversation history is then stored in the variable named "conversation".

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox