How samgit06/flowautomation works
FlowAutomation is a Flask-backed tool for automating video generation in Google Flow. The apparent workflow is that a user supplies videos through the web UI, the server starts a background run, and Playwright drives Flow to generate each video with retries. The server also maintains analytics and streams logs and typed events. The supplied source excerpt shows server-side behavior but not the HTML or all route and worker code, so UI connections and unshown wiring are marked unverified or omitted.
Main entry points: server.py Flask API · flow_automation_ui.html Automation UI · analytics.html Analytics view
Components 12
Web interface
- Automation UI
flow_automation_ui.html - Analytics view
analytics.html
Automation runtime
- Flask API
server.py - Run worker
server.py - Video generation
server.py - Run state
server.py
Run tracking
- Analytics file
server.py - Log buffer
server.py - Event broadcast
server.py - SSE stream
server.py
Other components
- User
- Google Flow
Connections 12
- User → Automation UI: configures runs
- Automation UI → Flask API: submits videos
- Flask API → Run worker: starts thread
server.py - Run worker → Video generation: calls per video
server.py - Video generation → Google Flow: drives browser
- Run worker → Run state: updates status
server.py - Run worker → Analytics file: updates analytics
server.py - Analytics view → Analytics file: views metrics
- Flask API → Log buffer: reads logs
server.py - Flask API → SSE stream: opens stream
server.py - Event broadcast → SSE stream: queues events
server.py - SSE stream → Automation UI: streams updates