Skip to content

markec12345678/agentflow-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

201 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– AgentFlow Pro

Multi-Agent AI Platform for Business Automation - Specialized for Tourism & Hospitality

License: MIT Next.js TypeScript Prisma

πŸ“‹ Table of Contents

🎯 Overview

AgentFlow Pro is a sophisticated multi-agent AI platform designed specifically for tourism and hospitality businesses. It automates content creation, manages guest communications, handles reservations, and optimizes marketing campaigns - all while maintaining brand consistency and SEO best practices.

Key Benefits

  • 🎯 Tourism Specialized: Built specifically for hotels, resorts, and travel agencies
  • πŸ€– Multi-Agent System: 8 specialized AI agents working together
  • 🌍 Multi-Language: Generate content in multiple languages
  • πŸ“ˆ SEO Optimized: Built-in SEO optimization and analytics
  • πŸ”— End-to-End: From content creation to deployment
  • πŸ’° Cost Effective: Reduce content creation costs by 80%

✨ Features

πŸ€– AI Agents

  • Research Agent: Market intelligence and competitor analysis
  • Content Agent: SEO-optimized blog posts, landing pages, and social media
  • Code Agent: Automated development and deployment
  • Deploy Agent: One-click deployments to Vercel/Netlify
  • Communication Agent: Personalized guest communications
  • Personalization Agent: Brand voice consistency
  • Reservation Agent: Automated booking management
  • Optimization Agent: Performance and conversion optimization

πŸ—οΈ Core Platform

  • Visual Workflow Builder: Drag-and-drop agent orchestration
  • Knowledge Graph: Persistent memory and context management
  • Multi-Property Support: Manage multiple properties/locations
  • Team Collaboration: Role-based access and team workflows
  • Analytics Dashboard: Comprehensive performance metrics

🏨 Tourism Features

  • Property Management: Room inventory, rates, and availability
  • Guest Management: Profiles, preferences, and communication history
  • Reservation System: Automated booking and confirmation workflows
  • Multi-Language Content: Generate content in 20+ languages
  • SEO Tools: Keyword tracking and optimization recommendations

πŸ—οΈ Architecture

Tech Stack

Frontend

  • Next.js 15 + React 19 + TypeScript
  • TailwindCSS + shadcn/ui components
  • Zustand for state management
  • React Flow for workflow visualization

Backend

  • Node.js + Express + TypeScript
  • PostgreSQL + Prisma ORM
  • Redis for caching and queues
  • NextAuth.js for authentication

AI Infrastructure

  • OpenAI GPT-4 for content generation
  • Memory MCP for knowledge graph
  • Sequential Thinking MCP for decision making
  • Custom agent orchestration system

Deployment & Monitoring

  • Vercel for frontend hosting
  • Docker for agent containers
  • Sentry for error tracking
  • GitHub Actions for CI/CD

MCP Integrations

  • Memory: Knowledge graph and context persistence
  • GitHub: Code management and version control
  • Vercel/Netlify: Deployment automation
  • Firecrawl: Web scraping and research
  • Context7: API documentation integration
  • Playwright: E2E testing automation

πŸš€ Quick Start

Prerequisites

  • Node.js 18+ and npm
  • PostgreSQL 14+
  • Redis 6+
  • OpenAI API key

One-Click Setup

# Clone the repository
git clone https://github.com/your-org/agentflow-pro.git
cd agentflow-pro

# Install dependencies
npm install

# Setup environment variables
cp .env.example .env.local
# Edit .env.local with your API keys

# Setup database
npm run db:migrate
npm run db:seed

# Start development server
npm run dev

Visit http://localhost:3002 to get started.

πŸ“¦ Installation

Environment Variables

Create .env.local with the following:

# Database
DATABASE_URL="postgresql://user:password@localhost:5432/agentflow_pro"

# Authentication
NEXTAUTH_SECRET="your-secret-key"
NEXTAUTH_URL="http://localhost:3002"

# AI Services
OPENAI_API_KEY="sk-..."
OPENAI_BASE_URL="https://api.openai.com/v1"

# External APIs
GITHUB_TOKEN="ghp_..."
FIRECRAWL_API_KEY="fc-..."
CONTEXT7_API_KEY="..."

# Optional
REDIS_URL="redis://localhost:6379"
SENTRY_DSN="https://..."
STRIPE_SECRET_KEY="sk_test_..."
STRIPE_PUBLISHABLE_KEY="pk_test_..."
# Email (verification, password reset, team invites)
RESEND_API_KEY="re_..."
EMAIL_FROM="AgentFlow Pro <notifications@agentflow.pro>"

MCP Setup

AgentFlow Pro uses Model Context Protocol (MCP) servers for AI-assisted development. Configure them in ~/.cursor/mcp.json:

MCP Purpose Env Variable
Neon Database – SQL, schema OAuth ali NEON_API_KEY
Memory Knowledge graph & context β€”
GitHub Repo management GITHUB_TOKEN
Git Version control β€”
Playwright E2E testing β€”
Firecrawl Web scraping FIRECRAWL_API_KEY
Context7 API documentation CONTEXT7_API_KEY
Vercel Frontend deploy β€”
Docker Agent containers β€”
Sentry Error monitoring β€”
Sequential Thinking Complex decisions β€”

See .cursor/MCP_REQUIRED.md for full mcp.json reference and verification.

Production (Vercel)

For production deployment, see docs/VERCEL-ENV-CHECKLIST.md for required variables: DATABASE_URL, STRIPE_*, NEXTAUTH_*, SENTRY_*, and optional RESEND_API_KEY, EMAIL_FROM (Phase E – email verification, password reset, team invites).

Database Setup

# Generate Prisma client
npm run db:generate

# Run migrations
npm run db:migrate

# Seed with sample data
npm run db:seed

βš™οΈ Configuration

Agent Configuration

Each agent can be configured in src/agents/[agent]/config.ts:

export const agentConfig = {
  maxRetries: 3,
  timeout: 30000,
  model: "gpt-4-turbo",
  temperature: 0.7,
};

Workflow Builder

Create custom workflows in the visual builder or via API:

const workflow = {
  name: "Blog Post Generator",
  nodes: [
    { id: "1", type: "research", data: { query: "tourism trends 2024" } },
    { id: "2", type: "content", data: { format: "blog-post" } },
    { id: "3", type: "deploy", data: { platform: "vercel" } }
  ],
  edges: [
    { source: "1", target: "2" },
    { source: "2", target: "3" }
  ]
};

πŸ€– AI Agents

Research Agent

Gathers market intelligence and competitor data.

const research = await orchestrator.queueTask("research", {
  query: "luxury resort trends 2024",
  sources: ["firecrawl", "serpapi"],
  outputFormat: "structured-json"
});

Content Agent

Generates SEO-optimized content.

const content = await orchestrator.queueTask("content", {
  type: "blog-post",
  topic: "Sustainable Tourism Practices",
  seoKeywords: ["sustainable travel", "eco-friendly resorts"],
  language: "en"
});

Code Agent

Automates development tasks.

const code = await orchestrator.queueTask("code", {
  task: "Add booking form validation",
  repo: "your-org/your-repo",
  createPr: true
});

Deploy Agent

Handles deployments automatically.

const deploy = await orchestrator.queueTask("deploy", {
  platform: "vercel",
  project: "my-tourism-site",
  environment: "production"
});

🎨 Usage

Creating Your First Workflow

  1. Navigate to Workflows: Click "Workflows" in the dashboard
  2. Create New Workflow: Click "New Workflow"
  3. Add Agents: Drag agents from the sidebar to the canvas
  4. Configure Agents: Click each agent to set parameters
  5. Connect Agents: Drag connections between agents
  6. Test Workflow: Click "Test" to validate
  7. Deploy: Click "Deploy" to activate

Managing Properties

  1. Go to Properties: Access via dashboard
  2. Add Property: Fill in property details
  3. Configure Settings: Set rates, rooms, and policies
  4. Connect Agents: Enable specific agents for this property

Generating Content

  1. Select Content Type: Blog post, landing page, or social media
  2. Input Topic: Describe what you want to create
  3. Choose Language: Select target language
  4. Generate: Click "Generate" and wait for AI to complete
  5. Review & Edit: Make any necessary adjustments
  6. Publish: Deploy to your website or social channels

πŸ§ͺ Testing

Run All Tests

# Unit tests
npm run test

# E2E tests
npm run test:e2e

# API tests
npm run test:api

# Tourism-specific tests
npm run test:tourism

Test Coverage

# Generate coverage report
npm run test -- --coverage

E2E Testing with Playwright

# Install Playwright browsers
npm run playwright:install

# Run tests in UI mode
npm run test:e2e:ui

# Run specific test suite
npm run test:e2e:tourism

πŸ“š Documentation

Architecture Diagrams

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Workflow

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes
  4. Run tests: npm run test
  5. Commit changes: git commit -m 'Add amazing feature'
  6. Push to branch: git push origin feature/amazing-feature
  7. Open a Pull Request

Code Style

  • Use TypeScript for all new code
  • Follow ESLint configuration
  • Write tests for new features
  • Update documentation as needed

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ†˜ Support

πŸš€ Roadmap

Version 1.1 (Q2 2024)

  • Advanced analytics dashboard
  • Custom agent builder
  • Mobile app (React Native)
  • Advanced workflow templates

Version 2.0 (Q3 2024)

  • Enterprise features
  • White-label options
  • Advanced integrations (Slack, Zapier)
  • AI-powered pricing optimization

Built with ❀️ for the tourism industry

AgentFlow Pro - Transform your hospitality business with AI automation

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors