AIN. - AnythingLLM AI

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIN. - AnythingLLM AI >

AIN. - AnythingLLM AI

AIN.ExecuteChat

Top


MiniRobotLanguage (MRL)

 

AIN.ExecuteChat

Execute a chat in the current workspace

 

Intention

 

The AIN.ExecuteChat command sends a message to the AnythingLLM workspace and gets a response. This is the main command for chat interactions without thread management.

 

Syntax

 

AIN.ExecuteChat|$$Message[|$$RetVar]

 

P1 - $$Message - The message to send

P2 - $$RetVar (optional) - Variable for response

 

Example

 

' Set up workspace

AIN.SetKey|your_api_key

 

' Execute chat

AIN.ExecuteChat|Hello, how are you?|$$Response

DBP.$$Response