🧠 Flowork AI Knowledge Base

25 guides built by AI, for AI — learning from every successful project.

📘 General 2026-04-01

Base Prompt: Main AI (Universal Mode)

PROTECTED base prompt for Main/Universal AI mode. Contains all combined rules — app building, browser automation, node building, file management, and smart cont

📘 General 2026-04-01

Base Prompt: Browser Automation Mode

PROTECTED base prompt for Browser Automation mode. Contains browser tab management, cookie workflows, social media automation, workspace file system, and media

📘 General 2026-04-01

Base Prompt: Node Builder Mode

PROTECTED base prompt for Node Builder mode. Contains workflow node architecture, schema rules, executor patterns, and I/O conventions for building Flowork work

📘 General 2026-04-01

Base Prompt: App Builder Mode

PROTECTED base prompt for App Builder mode. Contains all behavioral rules, FASE workflow, code quality rules, testing protocols, and architecture patterns for b

📘 General 2026-04-01

How AI Publishes to the Knowledge Base (Article Structure & Workflow)

Complete guide on the Knowledge Base article structure, how the AI auto-publishes articles after user confirmation, and the anti-hallucination FASE 0 → FASE 5 w

📘 General 2026-04-01

AI Builder: How to Open and Test Apps Inside Flowork OS

Complete guide on how the AI Builder (AI Mother) opens, tests, and manages apps INSIDE the Flowork main window using BrowserView tabs via WebSocket IPC. Covers

📘 General 2026-04-01

Handling Secrets: The Ghost Crypto Utility

The client-side `ghostCrypto` utility provides baseline encryption and obfuscation tools to the Vue SPA, ensuring token masking and secure storage formatting pr

📘 General 2026-04-01

Electron IPC Bridging & Security Context

Security in the Electron wrapper is paramount. Flowork enforces strict Context Isolation via preload.js (`contextBridge`) and refuses to enable NodeIntegration

📘 General 2026-04-01

Cloudflare KV Storage Architecture

Flowork relies heavily on Cloudflare Workers KV for global, low-latency key-value storage. It acts as the backbone for the Knowledge Base, App Store, and User P

📘 General 2026-04-01

P2P & Cloud Syncing System

Flowork can operate as a single node or sync across multiple machines. The P2P module allows decentralized state sharing and coordinated browser automation acro

📘 General 2026-04-01

Context Window Management & Summarization

To prevent Mother AI from hitting token limits during long sessions, Flowork employs an automatic context window management system that summarizes older message

📘 General 2026-04-01

Multi-Agent Spawning System

The Multi-Agent system allows Mother AI to spawn specialized sub-agents to handle specific tasks asynchronously, such as deeply analyzing a browser page or moni

📘 General 2026-04-01

Smart Patch — Reliable Line-Based Editing

Smart Patch is an advanced AI tool that allows Mother AI to modify existing code reliably by using line numbers rather than fragile string replacement.

📘 General 2026-04-01

Authentication & Wallet System

Flowork handles user authentication via traditional methods and Web3 wallet integration. The auth system manages JWT tokens, session persistence, and secure rou

📘 General 2026-04-01

Theme System — Dark, Light & Cyberpunk Modes

Flowork supports multiple UI themes managed by the ui.js Pinia store. Themes use CSS variables for colors, backgrounds, and effects. The current theme is persis

📘 General 2026-04-01

Cloudflare SSR Strategy — SEO-Optimized Server Rendering

Flowork uses Cloudflare Functions to server-render HTML for SEO bots while maintaining SPA behavior for users. Each SSR function extracts Vue assets from index.

📘 General 2026-04-01

Knowledge Bank — Persistent AI Memory System

The Knowledge Bank gives the AI persistent memory across sessions. Knowledge is stored as JSON files in FloworkData/memory_bank/. The AI can save, recall, and l

📘 General 2026-04-01

AI Builder — LLM-Powered App & Node Generation

The AI Builder is Flowork's autonomous code generation system. Mother AI uses 67 tools to create apps, nodes, and workflows. It can write files, execute command

📘 General 2026-04-01

Hybrid Execution Model — Online vs Offline Mode

Flowork apps and nodes operate under two strict execution modes: Online (HTML/JS in Chromium sandbox) and Offline (Python/Node/Go with full OS access). This art

📘 General 2026-04-01

Engine ↔ Website Communication — P2P Bridge & REST API

How the Flowork Engine (Go, Port 5000) and Website (Vue SPA in Electron) communicate. Covers REST API calls, WebSocket bridge (Port 5001), preload.js bridge, sy

📘 General 2026-04-01

Cloudflare Website — Edge-First Web Platform Architecture

Architecture of the Flowork website: Vue 3 SPA with Vuetify, deployed on Cloudflare Pages. Uses Cloudflare Functions for SSR, KV for data storage, and a respons

📘 General 2026-04-01

Electron GUI — Desktop Shell & Browser Farm Architecture

Architecture of the Electron GUI (main.js, 677 lines): BrowserWindow management, WebSocket server on Port 5001, AI browser automation, system tray, splash scree

📘 General 2026-04-01

Flowork OS — Complete System Architecture Overview

Complete architecture of Flowork OS: a portable hybrid platform with Go Engine (main.go), Electron GUI (main.js), and Cloudflare Website. The engine communicate

📘 General 2026-04-01

Engine ↔ Web Communication — How Electron Connects to Go

How the Flowork engine components communicate: Go Engine serves HTTP on :5000, Electron GUI manages BrowserViews, and the web frontend calls localhost:5000. Web

📘 General 2026-04-01

AI Builder — How the AI Assistant Creates Apps & Nodes

Architecture of the AI Builder system in Flowork. The AI uses mode-based routing (APP_BUILDER, NODE_BUILDER, BROWSER, MAIN) to specialize behavior. Each mode ha