Skip to main content

AnythingLLM

This Integration is part of the Anything LLM Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.10.0 and later.

Retrieval Augmented Generation (RAG) with LLM and Vector DB that can be local for full data privacy or cloud-based for greater functionality

Configure AnythingLLM in Cortex#

ParameterDescriptionRequired
AnythingLLM URL (e.g., http://<url to local AnythingLLM>:3001) or https://<Anything LLM cloud url>True
AnythingLLM API KeyTrue
Cloudflare Access Client IdFalse
Cloudflare Access Client SecretFalse
AIRS API URLLeave blank if AIRS is not being usedFalse
AIRS API KeyLeave blank if AIRS is not being usedFalse
Sync Scan LLM Prompts with AIRSFalse
Sync Scan LLM Response with AIRSFalse
AIRS Profile Name for Scan RequestsThe profile must be created in the AIRS consoleFalse
AIRS Application Name for Scan RequestsFalse
AIR User for Scan RequestsFalse
Anything LLM Model in use for Scan RequestsFalse

Commands#

You can execute these commands from the CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message appears in the War Room with the command details.

anyllm-document-upload-file#


Uploads an XSOAR file entry to the custom-documents folder.

Base Command#

anyllm-document-upload-file

Input#

Argument NameDescriptionRequired
fileentryXSOAR file entry to upload - example: 181@24789.Required

Context Output#

There is no context output for this command.

anyllm-document-upload-link#


Uploads a web link to the custom-documents folder

Base Command#

anyllm-document-upload-link

Input#

Argument NameDescriptionRequired
linkWeb link to upload - example: https://unit42.paloaltonetworks.com/darkgate-malware-uses-excel-files".Required
titleNo description provided.Required
descriptionNo description provided.Required
authorNo description provided.Required
sourceNo description provided.Required

Context Output#

There is no context output for this command.

anyllm-document-upload-text#


Upload text content as a document to the custom-documents folder

Base Command#

anyllm-document-upload-text

Input#

Argument NameDescriptionRequired
textRaw text content that is the document.Required
titleDocument title to use when uploading.Required
descriptionDescription of the document.Optional
authorAuthor of the document.Optional
sourceSource of the document.Optional

Context Output#

There is no context output for this command.

anyllm-workspace-new#


Creates a new workspace in AnythingLLM

Base Command#

anyllm-workspace-new

Input#

Argument NameDescriptionRequired
workspaceName of the workspace to create.Required

Context Output#

There is no context output for this command.

anyllm-workspace-delete#


Deletes an AnythingLLM workspace

Base Command#

anyllm-workspace-delete

Input#

Argument NameDescriptionRequired
workspaceName of the workspace to delete.Required

Context Output#

There is no context output for this command.

anyllm-workspace-list#


List all the workspaces in AnythingLLM

Base Command#

anyllm-workspace-list

Input#

Argument NameDescriptionRequired

Context Output#

There is no context output for this command.

anyllm-workspace-get#


Get a specific workspace details

Base Command#

anyllm-workspace-get

Input#

Argument NameDescriptionRequired
workspaceName of the workspace.Required

Context Output#

There is no context output for this command.

anyllm-workspace-settings#


Update workspace settings

Base Command#

anyllm-workspace-settings

Input#

Argument NameDescriptionRequired
workspaceName of the workspace.Required
settingsJSON object for the settings.Required

Context Output#

There is no context output for this command.

anyllm-workspace-add-embedding#


Add a document to a workspace and create its vector embedding in the workspace

Base Command#

anyllm-workspace-add-embedding

Input#

Argument NameDescriptionRequired
workspaceName of the workspace.Required
folderFolder name containing the document.Required
documentDocument name to add as an embedding.Required

Context Output#

There is no context output for this command.

anyllm-workspace-delete-embedding#


Delete a document embedding from the workspace

Base Command#

anyllm-workspace-delete-embedding

Input#

Argument NameDescriptionRequired
workspaceName of the workspace.Required
folderFolder the document originated from.Required
documentName of the document to have its embedding deleted.Required

Context Output#

There is no context output for this command.

anyllm-document-createfolder#


Create a new document folder

Base Command#

anyllm-document-createfolder

Input#

Argument NameDescriptionRequired
folderName of the folder to create.Required

Context Output#

There is no context output for this command.

anyllm-document-move#


Move a document from a source folder to a destination folder

Base Command#

anyllm-document-move

Input#

Argument NameDescriptionRequired
srcfolderName of the source folder.Required
dstfolderName of the destination folder.Optional
documentDocument name to move.Optional

Context Output#

There is no context output for this command.

anyllm-document-delete#


Delete a document

Base Command#

anyllm-document-delete

Input#

Argument NameDescriptionRequired
folderName of the folder.Required
documentName of the document to delete.Required

Context Output#

There is no context output for this command.

anyllm-workspace-chat#


Send a chat message to a workspace (default thread). Query mode is based on embedded documents in chat, whereas chat mode is more general.

Base Command#

anyllm-workspace-chat

Input#

Argument NameDescriptionRequired
workspaceName of the workspace.Required
messageMessage to send.Required
modeMode to chat, query or chat. Possible values are: query, chat.Required
formatNo description provided. Possible values are: markdown, dictionary. Default is dictionary.Optional

Context Output#

There is no context output for this command.

anyllm-workspace-stream-chat#


Send a stream chat message to a workspace (default thread). Query mode is based on embedded documents in chat, whereas chat mode is more general

Base Command#

anyllm-workspace-stream-chat

Input#

Argument NameDescriptionRequired
workspaceName of the workspace.Required
messageMessage to send.Required
modeChat mode, query or chat. Possible values are: query, chat.Optional

Context Output#

There is no context output for this command.

anyllm-document-list#


List all document details

Base Command#

anyllm-document-list

Input#

Argument NameDescriptionRequired

Context Output#

There is no context output for this command.

anyllm-document-get#


Get a specific document details

Base Command#

anyllm-document-get

Input#

Argument NameDescriptionRequired
folderFolder containing the document.Required
documentDocument name.Required

Context Output#

There is no context output for this command.

anyllm-workspace-pin#


Set the pinned status of a document embedding

Base Command#

anyllm-workspace-pin

Input#

Argument NameDescriptionRequired
workspaceWorkspace name.Required
folderFolder the document originated from.Required
documentDocument name.Required
statusSet pin status to true or false. Possible values are: true, false.Required

Context Output#

There is no context output for this command.

anyllm-workspace-thread-chats#


Get the conversation for a workspace thread

Base Command#

anyllm-workspace-thread-chats

Input#

Argument NameDescriptionRequired
workspaceNo description provided.Required
threadNo description provided.Optional

Context Output#

There is no context output for this command.

anyllm-workspace-thread-chat#


Send a chat a message to a conversation thread

Base Command#

anyllm-workspace-thread-chat

Input#

Argument NameDescriptionRequired
workspaceName of the workspace.Required
threadName of the conversation thread.Required
messageMessage to send.Required
modeMode to chat, query or chat. Possible values are: query, chat.Required

Context Output#

There is no context output for this command.

anyllm-workspace-thread-new#


Create a new conversation thread

Base Command#

anyllm-workspace-thread-new

Input#

Argument NameDescriptionRequired
workspaceName of the workspace.Required
threadName of the new conversation thread.Required

Context Output#

There is no context output for this command.

anyllm-workspace-thread-delete#


Delete a thread in a workspace

Base Command#

anyllm-workspace-thread-delete

Input#

Argument NameDescriptionRequired
workspaceName of the workspace.Optional
threadName of the thread.Optional

Context Output#

There is no context output for this command.

anyllm-scan-request#


Perform an AI security scan of a request with AIRS

Base Command#

anyllm-scan-request

Input#

Argument NameDescriptionRequired
profile_nameAIRS profile name to use in scanning.Required
app_nameAIRS application name - metadata.Optional
app_userAIRS application user name - metadata.Optional
ai_modelLLM model in use - metadata.Optional
user_ipUser IP - metadata.Optional
promptLLM prompt to scan.Optional
responseLLM response to scan.Optional
code_promptLLM prompt with code to scan.Optional
code_responseLLM response with code to scan.Optional
contextLLM context for grounding.Optional

Context Output#

The context data returned from a scan request is:

KeyValue
actionblock or allow
categorymalicious etc
profile_idID of the AIRS profile used
profile_nameName of the AIRS profile used
prompt_detectedDetails of a prompt detection - dictionary
response_detectedDetails of a response detection - dictionary
scan_idScan ID
tr_idTR ID