Skip to content

Building Workflows

This guide walks you through building workflows in MIFY — from simple chains to complex multi-step pipelines with branching, human approval, and AI orchestration.

MIFY Canvas — visual workflow editor

A workflow in MIFY is a directed acyclic graph (DAG) — a series of connected steps that process data in one direction without loops.

Trigger → Node A → Node B → Node C (output)
↘ Node D ↗

Every workflow has three elements:

  • Trigger — how the workflow starts (manual, webhook, schedule, or event)
  • Nodes — processing steps (AI calls, data transforms, logic gates, integrations)
  • Edges — connections between nodes that define data flow

MIFY provides 117 native nodes across 24 categories:

CategoryExamplesPurpose
LLMChat, Embed, Image Generate, Vision, ASR, TTSAI model operations
TransformTemplate, JavaScriptData transformation
LogicRoute If, Route Switch, Loop Map, Sub-WorkflowFlow control
RAGIngest, Chunk, Embed, Store, Retrieve, RerankRetrieval-augmented generation
PlatformDify, Flowise, Langflow, n8n, and 20+ moreExternal platform integration
AgentReAct, Multi-Agent, CLI AgentAI agent orchestration
SafetyPII Detector, Injection Detector, Jailbreak DetectorContent protection
EnterpriseEmail, Calendar, Notifications, Quota, PolicyBusiness integrations
CloudflareD1, KV, R2, Vectorize, QueuesEdge storage and compute

Let’s build a workflow that answers questions using your own documents.

Drag a Manual Trigger onto the canvas.

Drag a Retrieve node. Configure it:

  • Knowledge Base: Select your knowledge base (create one at /knowledge first)
  • Top K: 5 (return top 5 relevant chunks)

Connect the trigger to the Retrieve node.

Drag a Chat node. Configure it:

  • System Prompt: “Answer the user’s question based on the following context: {{context}}”
  • Provider: Your preferred AI provider
  • Model: Your preferred model

Connect the Retrieve node to the Chat node. The retrieved documents flow as context.

Click Run, enter a question, and see the AI respond using your documents as context.

MIFY includes 140 built-in templates for common patterns:

CategoryTemplatesExamples
RAG9Document Q&A, Knowledge Base Chat
LLM12Text Summary, Translation, Classification
Logic17Conditional Routing, Batch Processing
Platform63Flowise Import, Dify Bridge, n8n Connector
AgentMulti-agentReAct Agent, Research Agent

Browse templates at /templates in the UI. Click any template to preview it, then Use Template to add it to your canvas.

Add human approval gates to any workflow:

  1. Drag a Pause node between any two nodes
  2. When execution reaches the Pause node, it stops and waits
  3. A notification appears in your Inbox (/inbox)
  4. Review the data, then Approve or Reject
  5. Approved: execution continues. Rejected: execution stops.

Use HITL for:

  • Reviewing AI-generated content before publishing
  • Approving financial transactions
  • Validating data extraction results
  • Any decision that needs human judgment
ModeUse CaseBehavior
ExperimentalDevelopmentMinimal overhead, fast iteration
AuditedComplianceFull audit trail, integrity hashing

Already using another workflow platform? Import directly:

PlatformHow
Flowise/canvas → Import → Paste Flowise JSON
Dify/canvas → Import → Paste Dify YAML
Langflow/canvas → Import → Paste Langflow JSON
n8n/canvas → Import → Paste n8n JSON

MIFY maps foreign nodes to native equivalents where possible. Unmapped nodes become “opaque” nodes that delegate to the original platform.

MIFY includes a dedicated content generation system at /content-gen:

PathHow It WorksBest For
MIFY QueueSubmits ComfyUI workflows to GPU providersHigh-quality image/video
AI ProviderDirect calls to AI providers (sync or streaming)Text, quick image gen
ComfyUI LocalRuns workflows on your local ComfyUICustom models, local dev