A visual workflow builder for AI-powered content generation using Google's Gemini AI models. FlowCraft allows you to create complex workflows by connecting different types of nodes to generate text, images, and videos through an intuitive drag-and-drop interface.
- Visual Workflow Builder: Drag-and-drop interface for creating AI workflows
- Multiple Node Types: Support for Agent, Text, Image, Video, and File nodes
- Real-time Execution: Run workflows with visual feedback and progress tracking
- Parallel Processing: Automatic dependency resolution for optimal execution
- Export/Import: Save and share workflows as JSON files
- Powered by Google Gemini models (Gemini 2.0 Flash, Gemini 2.5 Flash)
- Multi-modal input support (text + files)
- Configurable tools and instructions
- Real-time text generation
- Simple text input/output
- Can be used as prompts for other nodes
- Supports multi-line text editing
- Multiple AI models: Gemini 2.5 Flash Image, Imagen 4.0 variants
- Configurable aspect ratios (16:9, 9:16)
- Resolution options (1K, 2K)
- Support for reference images and prompts
- Powered by Veo 3.1 models (Fast and Standard)
- Configurable duration (4, 6, 8 seconds)
- First/last frame control
- Audio generation toggle
- Resolution options (720p, 1080p)
- Upload and manage files (images, videos)
- Drag-and-drop file support
- Base64 encoding for seamless integration
- Smart Execution: Automatic dependency resolution and parallel processing
- Visual Feedback: Real-time execution status with animations
- Node Configuration: Comprehensive settings panel for each node type
- Workflow Management: Export/import functionality for sharing workflows
- Next.js 15.5.4 - React framework with App Router
- React 19.1.0 - UI library
- TypeScript - Type safety
- Tailwind CSS 4.1.9 - Styling
- @xyflow/react 12.8.6 - Flow diagram library
- Radix UI - Accessible component primitives
- Lucide React - Icon library
- Google GenAI SDK 1.25.0 - AI model integration
- Vertex AI - Google Cloud AI platform
- Next.js API Routes - Server-side functionality
- Gemini 2.0 Flash - Text generation
- Gemini 2.5 Flash - Text and image generation
- Imagen 4.0 - Image generation (Generate, Fast, Ultra variants)
- Veo 3.1 - Video generation (Fast and Standard variants)
- Node.js 18+
- npm or yarn
- Google Cloud Project with Vertex AI enabled
- Google Cloud credentials configured
git clone <repository-url>
cd flowcraftnpm installCreate a .env.local file in the root directory:
PROJECT_ID=your-google-cloud-project-id
LOCATION=your-preferred-location- Create a Google Cloud Project
- Enable the Vertex AI API
- Create a service account with Vertex AI permissions
- Download the service account key JSON file
- Set the
GOOGLE_APPLICATION_CREDENTIALSenvironment variable to point to your key file
npm run devOpen http://localhost:3000 to view the application.
- Add Nodes: Click the node buttons in the top-left panel to add different types of nodes
- Connect Nodes: Drag from output handles to input handles to create connections
- Configure Nodes: Click on a node to open the configuration panel on the right
- Run Workflow: Click the "Run Flow" button to execute your workflow
- Text β Agent: Use text as instructions for the agent
- Agent β Image: Use agent output as image prompts
- Image β Video: Use images as reference or first/last frames
- File β Any: Upload files to use as inputs
- Add a Text node and enter your prompt
- Add an Image node
- Connect Text output to Image input
- Configure the Image node settings
- Run the workflow
- Add a Text node for the video prompt
- Add an Image node for the first frame
- Add a Video node
- Connect Text to Video (prompt input)
- Connect Image to Video (first frame input)
- Configure video settings and run
- Model Selection: Choose between Gemini 2.0 Flash and Gemini 2.5 Flash
- Instructions: Set system instructions for the agent
- Tools: Add and configure various tools (Google Search, Code Execution, etc.)
- Model: Select from Gemini 2.5 Flash Image or Imagen 4.0 variants
- Aspect Ratio: Choose between 16:9 and 9:16
- Resolution: Select 1K or 2K resolution
- Prompt: Enter image generation prompt
- Model: Choose between Veo 3.1 Fast and Standard
- Duration: Set video length (4, 6, or 8 seconds)
- Aspect Ratio: Select 16:9 or 9:16
- Audio: Toggle audio generation
- Resolution: Choose 720p or 1080p
flowcraft/
βββ app/
β βββ api/
β β βββ generate-text/ # Text generation API
β β βββ generate-image/ # Image generation API
β β βββ generate-video/ # Video generation API
β βββ globals.css
β βββ layout.tsx
β βββ page.tsx
βββ components/
β βββ ui/ # Reusable UI components
β βββ agent-node.tsx # Agent node component
β βββ text-node.tsx # Text node component
β βββ image-node.tsx # Image node component
β βββ video-node.tsx # Video node component
β βββ file-node.tsx # File node component
β βββ flow-canvas.tsx # Main canvas component
β βββ flow-provider.tsx # State management
β βββ config-panel.tsx # Node configuration panel
β βββ header.tsx # Application header
β βββ sidebar.tsx # Configuration sidebar
βββ lib/
β βββ utils.ts # Utility functions
βββ public/ # Static assets
- Push your code to GitHub
- Connect your repository to Vercel
- Set environment variables in Vercel dashboard
- Deploy
PROJECT_ID=your-project-id
LOCATION=your-location
GOOGLE_APPLICATION_CREDENTIALS=path-to-service-account-key- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Google AI for providing the Gemini and Veo models
- The React Flow team for the excellent flow diagram library
- Radix UI for accessible component primitives
- The Next.js team for the amazing framework
If you encounter any issues or have questions, please:
- Check the Issues page
- Create a new issue with detailed information
- Join our community discussions
FlowCraft - Where creativity meets AI workflow automation π¨β¨