KT - Flowise – Visueller KI-Workflow Builder

Flowise ist der Drag-and-Drop-Builder für LangChain-Flows: LLMs, Embeddings, Vector-Stores, Tools per Node verbinden – ohne Code. Perfekt für Prototypen und produktive Mini-Agenten.


1. Zielsetzung

2. Installation

mkdir -p ~/0_docker/1000_flowise/data
cd ~/0_docker/1000_flowise

cat > .env << 'EOF'
FLOWISE_USERNAME=admin
FLOWISE_PASSWORD=SETZE_STARK
DATABASE_TYPE=sqlite
DATABASE_PATH=/root/.flowise/database
APIKEY_STORAGE_TYPE=db
FLOWISE_SECRETKEY_OVERWRITE=$(openssl rand -base64 32)
EOF
chmod 600 .env

cat > docker-compose.yml << 'EOF'
services:
  flowise:
    image: flowiseai/flowise:latest
    container_name: flowise
    restart: unless-stopped
    ports:
      - "192.168.0.16:1000:3000"
    environment:
      PORT: 3000
      FLOWISE_USERNAME: ${FLOWISE_USERNAME}
      FLOWISE_PASSWORD: ${FLOWISE_PASSWORD}
      DATABASE_TYPE: ${DATABASE_TYPE}
      DATABASE_PATH: ${DATABASE_PATH}
      APIKEY_STORAGE_TYPE: ${APIKEY_STORAGE_TYPE}
      FLOWISE_SECRETKEY_OVERWRITE: ${FLOWISE_SECRETKEY_OVERWRITE}
      LOG_LEVEL: info
    volumes:
      - ./data:/root/.flowise
EOF

docker compose up -d

3. Reverse Proxy

Domain flowise.kistudent.local, Backend 192.168.0.16:1000, Force SSL, WebSocket Ja.

4. Erstes Setup

  1. Login: https://flowise.kistudent.local mit Admin-Credentials
  2. Unter Credentials die LLM-Provider einrichten:
    • Ollama: Base URL http://192.168.0.16:8000
    • LocalAI: Base URL http://192.168.0.16:8085/v1, API-Key dummy
    • OpenAI: nur falls Cloud-LLM gewünscht (siehe Datenklassifizierung)
  3. Erstes Chatflow erzeugen

5. Beispiel-Chatflow: RAG mit Paperless-Daten

Im UI ein neues Chatflow anlegen und Nodes verbinden:

┌──────────────────┐    ┌────────────────────┐    ┌────────────────┐
│ Document Loader  │───→│ Recursive Splitter │───→│ Embeddings     │
│ (Paperless-API)  │    │ (chunk 800/100)    │    │ (Ollama-nomic) │
└──────────────────┘    └────────────────────┘    └────────┬───────┘
                                                            │
                                                            ▼
                                                  ┌──────────────────┐
                                                  │ Vector Store     │
                                                  │ (LanceDB/Chroma) │
                                                  └────────┬─────────┘
                                                           │
┌──────────────────┐                                       │
│ Chat Input       │───────────────────┐                   │
└──────────────────┘                   │                   │
                                       ▼                   │
                            ┌──────────────────┐           │
                            │ Conversational   │←──────────┘
                            │ Retrieval Chain  │
                            └────────┬─────────┘
                                     │
                                     ▼
                            ┌──────────────────┐
                            │ ChatOllama       │
                            │ qwen2.5:14b      │
                            └────────┬─────────┘
                                     │
                                     ▼
                            ┌──────────────────┐
                            │ Chat Output      │
                            └──────────────────┘

Nach dem Speichern: oben rechts auf "API Endpoint" – Flowise liefert eine REST-URL, an die andere Tools (KI-CRM, n8n) Chat-Requests senden können.

6. Agent-Workflows mit Tools

Flowise unterstützt Agent-Patterns: das LLM kann Tools aufrufen. Beispiele:

7. Best Practices

8. Integration mit n8n

n8n kann Flowise-Endpoints via HTTP-Node aufrufen – Workflow-Pattern:

  1. n8n: Trigger (Webhook, Cron, Mail)
  2. n8n: Daten vorbereiten
  3. n8n: HTTP-Request an Flowise-Chatflow
  4. n8n: Antwort weiterverarbeiten

9. Backup

10. Wartung & Troubleshooting

Symptom Ursache Lösung
Container startet nicht nach Update DB-Migration fehlgeschlagen Logs prüfen; im schlimmsten Fall ./data-Backup vor Update zurückspielen
Credentials weg nach Update SECRETKEY geändert .env SECRETKEY identisch behalten
Ollama nicht erreichbar Container nutzt localhost Host-IP 192.168.0.16 verwenden
Streaming hängt NPM proxy_buffering Im NPM-Advanced proxy_buffering off; setzen
RAG findet nichts Vector Store leer Document-Loader-Node testen, Embeddings prüfen

11. Sicherheit

12. Checkliste


Querverweise: AnythingLLM | n8n | LocalAI


Revision #2
Created 2026-02-19 17:52:26 UTC by Thomas Traugott Schütz
Updated 2026-05-26 14:14:49 UTC by Thomas Traugott Schütz