Skip to main content

# Workflows

All workflow functions and nodes added by the LLM extension

## 📄️ Overview

Otoroshi provides a powerful workflow engine that lets you describe and execute sequences of logic using a JSON-based pseudo-language. Workflows allow you to orchestrate actions, transform data, trigger functions, and control flow based on conditional logic, all in a low-code fashion.

## 📄️ LLM Call

The llm_call function allows you to call any LLM provider configured in Otoroshi from a workflow.

## 📄️ Text to Speech

The audio_tts function converts text to audio using an audio model provider.

## 📄️ Speech to Text

The audio_stt function converts audio to text using an audio model provider.

## 📄️ Compute Embedding

The compute_embedding function computes embeddings for text using an embedding model provider.

## 📄️ Generate Image

The generate_image function generates images from text using an image generation model.

## 📄️ Generate Video

The generate_video function generates videos from text using a video generation model.

## 📄️ Tool Function Call

The toolfunctioncall function calls a tool function registered in the LLM extension.

## 📄️ MCP Function Call

The mcpfunctioncall function calls a function exposed by an MCP (Model Context Protocol) connector.

## 📄️ Moderation Call

The moderation_call function calls a moderation model to check content for inappropriate material.

## 📄️ Guardrail Call

The guardrail_call function validates input using a guardrail. This allows you to check content against various safety rules directly within a workflow.

## 📄️ Add to Vector Store

The vectorstoreadd function adds a document entry to a vector store (embedding store).

## 📄️ Remove from Vector Store

The vectorstoreremove function removes a document entry from a vector store (embedding store).

## 📄️ Search in Vector Store

The vectorstoresearch function searches for similar documents in a vector store (embedding store) using a vector query.

## 📄️ Memory Add Messages

The memoryaddmessages function adds messages to a persistent memory store for a given session.

## 📄️ Memory Get Messages

The memorygetmessages function retrieves messages from a persistent memory store for a given session.

## 📄️ Memory Clear Messages

The memoryclearmessages function clears all messages from a persistent memory store for a given session.

## 📄️ OCR

The ocr_call function extracts text from an image or PDF document using an OCR Model provider.