Skip to content

namastexlabs/automagik

Repository files navigation

AutoMagik Logo

AutoMagik

Because magic shouldn't be complicated.

AutoMagik is an agent-first automation engine that seamlessly integrates with multiple LangFlow instances. Deploy AI-driven flows, schedule one-time or recurring tasks, and monitor everything with minimal fuss—no coding required.

🔗 Ecosystem

🚀 Installation

AutoMagik provides two setup options:

Prerequisites

  • Linux-based system (Ubuntu/Debian recommended)
  • Docker and Docker Compose (automatically installed on Ubuntu/Debian if not present)

Local Production Setup

For a production-ready local environment:

./scripts/setup_local.sh

Development Setup

For development with PostgreSQL and Redis Docker containers:

./scripts/setup_dev.sh

What Happens During Setup

Both setup scripts will:

  • Create necessary environment files
  • Install Docker if needed (on Ubuntu/Debian)
  • Set up all required services
  • Install the CLI tool (optional)
  • Guide you through the entire process

After Installation

You'll have access to:

  • AutoMagik API: Running at http://localhost:8888
  • PostgreSQL Database: Available at localhost:15432
  • Worker Service: Running and ready to process tasks
  • CLI Tool: Installed (if chosen during setup)

Verifying Your Installation

The setup automatically verifies all services, but you can also check manually:

# Access API documentation
open http://localhost:8888/api/v1/docs  # Interactive Swagger UI
open http://localhost:8888/api/v1/redoc # ReDoc documentation

# List flows (requires CLI installation)
source .venv/bin/activate
automagik flow list

🧩 System Components

  • API Server: Handles all HTTP requests and core logic
  • Worker: Processes tasks and schedules
  • Database: PostgreSQL with all required tables automatically created
  • LangFlow (optional): Visual flow editor for creating AI workflows
  • CLI Tool (optional): Command-line interface for managing flows and tasks

🏗️ System Architecture

flowchart LR
    subgraph Services
      DB[PostgreSQL]
      LF1[LangFlow Instance 1]
      LF2[LangFlow Instance 2]
    end
    subgraph AutoMagik
      CLI[CLI]
      API[API Server]
      CW[Celery Worker]
      W[Worker]
    end
    API -- uses --> DB
    API -- triggers --> CW
    W -- processes --> API
    API -- integrates with --> LF1
    API -- integrates with --> LF2
    CLI -- controls --> API
    API -- has UI --> UI[Automagik UI]
Loading

Core Components Explained

  • API: Core service handling requests and business logic
  • Worker: Processes tasks and schedules
  • CLI: Command-line tool for managing flows and tasks
  • PostgreSQL: Stores flows, tasks, schedules, and other data
  • LangFlow: Optional service for creating and editing flows

📚 API Documentation

For complete API documentation, visit:

🛠️ Next Steps

  1. If you installed LangFlow, visit http://localhost:17860 to create your first flow
  2. Use the API at http://localhost:8888/api/v1/docs to manage your flows and tasks
  3. Try out the CLI commands with automagik --help
  4. Monitor task execution through logs and API endpoints

🗺️ Roadmap

AutoMagik's future development focuses on:

  • TBA

AutoMagik: Bringing AI Automation to Life

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages