Skip to content

Course 2: Building with MIFY — Chapter 5

Build complex solutions using MIFY’s advanced features.

  • Batch processing for scale
  • Sub-workflows for modularity
  • Agent orchestration
  • Model training

Process many items in parallel:

Terminal window
# Create a batch job
curl -X POST \
-H "Authorization: Bearer mify_xxx" \
-H "Content-Type: application/json" \
-d '{
"graphId": "your-graph-id",
"items": [{"input": "item1"}, {"input": "item2"}, {"input": "item3"}],
"concurrency": 3
}' \
https://your-instance/api/batch

Control execution:

Terminal window
POST /api/batch/{id}/start # Start batch
POST /api/batch/{id}/pause # Pause
POST /api/batch/{id}/resume # Resume
POST /api/batch/{id}/cancel # Cancel

Use the Sub-Workflow node to call one workflow from another:

  • Build reusable components (e.g., “email validation” workflow)
  • Call them from multiple parent workflows
  • Keep complex workflows modular

MIFY has 6 agent nodes:

NodeWhat It Does
ReAct AgentReasoning + Acting loop with tools
Multi-AgentCoordinate multiple agents
CLI AgentRun coding agents (Claude Code, Codex)
EnvInspectCheck environment (OS, tools, versions)
Browser UseAutomate browser interactions
Computer UseControl desktop applications

Train custom models via the execution layer:

Terminal window
# 1. Create a dataset
POST /api/execution/training/datasets/upload
# 2. Upload files
POST /api/execution/training/datasets/{id}/presign-file
# Upload to the presigned R2 URL
# 3. Finalize
POST /api/execution/training/datasets/{id}/finalize
# 4. Submit training
POST /api/execution/training/submit

Monitor at /training.

Import and connect to 28+ platforms via the Integration Hub at /integrations:

  • Native adapters: Flowise, Dify, Langflow, n8n, OpenClaw, RAGFlow, DocuSeal
  • Registry-driven: ActivePieces, Node-RED, Trigger.dev, Sim Studio, and more
  1. How do you authenticate API calls? → Bearer token with mify_ API key
  2. What are the three content generation paths? → MIFY Queue (async GPU), AI Provider (sync/stream), ComfyUI Local
  3. How do you create a plugin?npx mify-plugin init, implement node, npx mify-plugin publish
  4. What is RAG? → Retrieve relevant documents, then generate answers using that context
  5. How do you run batch jobs? → POST /api/batch with items array and concurrency setting

Previous: Chapter 4 — Creating a Plugin | Back to Courses