Workflows
Build and deploy automated pipelines with the Case.dev Visual Workflow Builder. Workflows run on Relay—our serverless execution engine that scales from zero to millions of executions.Overview
Workflows chain Case.dev services (Vaults, LLMs, OCR, Search, Voice, Format) into automated pipelines:- Visual Builder — Drag and drop nodes at workflow.case.dev
- Webhook Triggers — Every workflow gets a unique webhook URL
- Serverless Execution — Pay only for what you use, automatic scaling
- Full Observability — Monitor every execution with detailed logs
Quick Start
Option 1: Visual Builder (Recommended)
- Open workflow.case.dev
- Drag action nodes onto the canvas
- Connect nodes with edges
- Configure each node’s settings
- Click Deploy to get your webhook URL
Option 2: API-First (Programmatic)
Create and deploy a workflow in a single API call:webhookSecret—it won’t be shown again.
Execute Your Workflow
Template Syntax
Reference data from the trigger input and previous steps using{{template}} syntax:
Trigger Input
Access fields from the webhook request body directly:Previous Step Output
Access results from earlier steps in the workflow:Search_Web
Available Action Types
case-llm/llm
Generate text with LLMs (OpenAI, Anthropic, etc.)| Field | Description |
|---|---|
method | chat, complete, or list-models |
model | Model ID (gpt-4o, claude-3-5-sonnet, etc.) |
systemPrompt | System instructions |
userPrompt | User message with templates |
temperature | 0-2, controls randomness |
maxTokens | Maximum output tokens |
case-search/web-search
Search the web for real-time information.| Field | Description |
|---|---|
query | Search query |
searchType | auto, general, news, or academic |
numResults | Number of results (default: 5) |
case-vault/search
Search documents in a vault.| Field | Description |
|---|---|
vaultId | Vault ID |
query | Search query |
method | hybrid, vector, graph, or entity |
limit | Max results (default: 10) |
case-ocr/process
Extract text from images or scanned PDFs.| Field | Description |
|---|---|
documentUrl | URL to document |
engine | gpt-4o, doctr, or paddleocr |
case-voice/transcribe
Transcribe audio files.| Field | Description |
|---|---|
audioUrl | URL to audio file |
model | whisper-1 or whisper-large-v3 |
language | Optional language code |
case-format/format
Convert content to PDF, DOCX, or HTML.| Field | Description |
|---|---|
content | Markdown or text content |
inputFormat | md or txt |
outputFormat | pdf, docx, or html |
HTTP Request
Make custom HTTP requests to external APIs.| Field | Description |
|---|---|
method | GET, POST, PUT, PATCH, DELETE |
url | Target URL |
body | Request body (JSON) |
headers | Custom headers (JSON) |
Execution Modes
Fire-and-Forget (Default)
Trigger the workflow and check status later:executionId for status checks.
Synchronous (Wait for Result)
Block until the workflow completes:Callback Webhook
Get notified when complete:Example Workflows
Document Analysis Pipeline
Research Agent
Observability
Monitor your workflow executions in the Visual Builder at workflow.case.dev/runs:- Execution History — See all runs with status, duration, timestamps
- Step Details — Inspect input/output for each step
- Error Logs — Debug failed executions
Pricing
Workflows are billed per execution based on underlying service usage:- Relay Execution — $0.0001 per step execution
- LLM Tokens — Standard token pricing
- OCR Pages — Standard page pricing
- Search Queries — Standard query pricing
Next Steps
- API Reference — Full endpoint documentation
- Open Visual Builder — Start building
- Cookbooks — Example workflows for common use cases
Related services
Workflows can orchestrate any Case.dev service:Vaults
Search and retrieve documents from your case vaults
OCR
Extract text from scanned documents and images
Voice
Transcribe audio files with speaker diarization
LLMs
Generate, analyze, and extract with language models
Web Search
Search the web and get AI-powered answers with citations
Format
Generate PDFs, Word docs, and HTML from workflow outputs