Giorgio Gnoli – Consulente CRM e Temporary Manager

				
					<!DOCTYPE html>
<html lang="it">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Database Template n8n - Giorgio Gnoli</title>
    
</head>
<body data-rsssl=1>
    <style>
        /* Reset e base styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        .n8n-search-engine {
            font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
            background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
            min-height: 100vh;
            color: #ffffff;
            line-height: 1.6;
            padding: 40px 20px;
        }
        
        .n8n-container {
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .n8n-header {
            text-align: center;
            margin-bottom: 60px;
            position: relative;
        }
        
        .n8n-header::before {
            content: '';
            position: absolute;
            top: -20px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 2px;
            background: linear-gradient(90deg, transparent, #ffffff, transparent);
        }
        
        .n8n-header h1 {
            font-size: 3.5rem;
            font-weight: 300;
            margin-bottom: 15px;
            letter-spacing: -1px;
            background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .n8n-author {
            font-size: 1.3rem;
            font-weight: 500;
            margin-bottom: 30px;
            color: #888888;
            letter-spacing: 0.5px;
        }
        
        .n8n-community-link {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 25px 35px;
            border-radius: 20px;
            margin: 30px auto;
            max-width: 600px;
            transition: all 0.3s ease;
        }
        
        .n8n-community-link:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }
        
        .n8n-community-link p {
            margin-bottom: 12px;
            font-size: 1.05rem;
            font-weight: 400;
        }
        
        .n8n-community-link a {
            color: #ffffff;
            text-decoration: underline;
            text-decoration-color: rgba(255, 255, 255, 0.3);
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .n8n-community-link a:hover {
            text-decoration-color: #ffffff;
        }
        
        .n8n-search-container {
            background: rgba(255, 255, 255, 0.98);
            border-radius: 25px;
            padding: 40px;
            margin-bottom: 40px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .n8n-search-box {
            position: relative;
            margin-bottom: 25px;
        }
        
        .n8n-search-input {
            width: 100%;
            padding: 20px 60px 20px 25px;
            font-size: 1.1rem;
            font-family: 'Poppins', sans-serif;
            font-weight: 400;
            border: 2px solid #e8e8e8;
            border-radius: 15px;
            outline: none;
            transition: all 0.3s ease;
            background: #ffffff;
            color: #333333;
        }
        
        .n8n-search-input:focus {
            border-color: #000000;
            box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
        }
        
        .n8n-search-input::placeholder {
            color: #666666;
            font-weight: 400;
        }
        
        .n8n-search-button {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: #000000;
            border: none;
            color: white;
            padding: 12px 20px;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 500;
            font-family: 'Poppins', sans-serif;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }
        
        .n8n-search-button:hover {
            background: #333333;
            transform: translateY(-50%) translateY(-1px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }
        
        .n8n-search-suggestions {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-top: 20px;
            justify-content: center;
        }
        
        .n8n-suggestion-tag {
            background: #f8f8f8;
            color: #333333;
            padding: 10px 20px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
            border: 1px solid #e0e0e0;
            transition: all 0.3s ease;
            font-family: 'Poppins', sans-serif;
        }
        
        .n8n-suggestion-tag:hover {
            background: #000000;
            color: #ffffff;
            border-color: #000000;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }
        
        .n8n-results-container {
            background: rgba(255, 255, 255, 0.98);
            border-radius: 25px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(20px);
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .n8n-result-item {
            padding: 35px;
            border-bottom: 1px solid #f0f0f0;
            transition: all 0.3s ease;
            color: #333333;
            animation: n8nFadeInUp 0.6s ease-out;
        }
        
        .n8n-result-item:hover {
            background-color: rgba(0, 0, 0, 0.02);
            transform: translateX(5px);
        }
        
        .n8n-result-item:last-child {
            border-bottom: none;
        }
        
        .n8n-result-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: #000000;
            margin-bottom: 15px;
            line-height: 1.4;
            font-family: 'Poppins', sans-serif;
        }
        
        .n8n-result-creator {
            color: #666666;
            font-size: 1rem;
            margin-bottom: 20px;
            font-weight: 500;
            font-family: 'Poppins', sans-serif;
        }
        
        .n8n-result-description {
            color: #444444;
            line-height: 1.7;
            margin-bottom: 25px;
            font-size: 1rem;
            font-weight: 400;
        }
        
        .n8n-result-tags {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }
        
        .n8n-result-tag {
            background: #f5f5f5;
            color: #333333;
            padding: 6px 14px;
            border-radius: 15px;
            font-size: 0.85rem;
            font-weight: 500;
            border: 1px solid #e0e0e0;
            font-family: 'Poppins', sans-serif;
        }
        
        .n8n-result-links {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
        
        .n8n-result-link {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 12px 24px;
            background: #ffffff;
            color: #333333;
            text-decoration: none;
            border-radius: 12px;
            font-size: 0.95rem;
            font-weight: 500;
            transition: all 0.3s ease;
            border: 1px solid #e0e0e0;
            font-family: 'Poppins', sans-serif;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        .n8n-result-link:hover {
            background: #000000;
            color: #ffffff;
            border-color: #000000;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }
        
        .n8n-youtube-link {
            background: #000000;
            color: #ffffff;
            border-color: #000000;
        }
        
        .n8n-youtube-link:hover {
            background: #333333;
            border-color: #333333;
        }
        
        .n8n-template-link {
            background: #000000;
            color: #ffffff;
            border-color: #000000;
        }
        
        .n8n-template-link:hover {
            background: #333333;
            border-color: #333333;
        }
        
        .n8n-no-results {
            text-align: center;
            padding: 80px 20px;
            color: #666666;
        }
        
        .n8n-no-results h3 {
            font-size: 1.8rem;
            margin-bottom: 15px;
            color: #333333;
            font-weight: 600;
            font-family: 'Poppins', sans-serif;
        }
        
        .n8n-no-results p {
            font-size: 1.1rem;
            font-weight: 400;
        }
        
        .n8n-results-count {
            padding: 25px 35px;
            background: rgba(0, 0, 0, 0.05);
            color: #333333;
            font-weight: 600;
            border-bottom: 1px solid #f0f0f0;
            font-family: 'Poppins', sans-serif;
            font-size: 1.1rem;
        }
        
        .n8n-relevance-score {
            background: rgba(0, 0, 0, 0.1);
            color: #000000;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-left: 15px;
            font-family: 'Poppins', sans-serif;
        }
        
        .n8n-highlight {
            background: linear-gradient(120deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 600;
            color: #000000;
        }
        
        @keyframes n8nFadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @media (max-width: 768px) {
            .n8n-header h1 {
                font-size: 2.5rem;
            }
            
            .n8n-search-engine {
                padding: 20px 15px;
            }
            
            .n8n-search-container, .n8n-results-container {
                padding: 25px;
                border-radius: 20px;
            }
            
            .n8n-result-item {
                padding: 25px;
            }
            
            .n8n-result-links {
                flex-direction: column;
            }
            
            .n8n-result-link {
                justify-content: center;
            }
            
            .n8n-search-suggestions {
                justify-content: center;
            }
        }
    </style>

    <div class="n8n-search-engine">
        <div class="n8n-container">
            <div class="n8n-header">
                <h1>Database Template n8n</h1>
                <div class="n8n-author">Giorgio Gnoli</div>
                <div class="n8n-community-link">
                    <p>🚀 Accedi alla mia community <strong>Growth Express</strong></p>
                    <p><a href="https://www.skool.com/growth-mastery-3952/about" target="_blank">https://www.skool.com/growth-mastery-3952/about</a></p>
                    <p>💬 O parlami del tuo progetto AI</p>
                </div>
            </div>
            
            <div class="n8n-search-container">
                <div class="n8n-search-box">
                    <input type="text" class="n8n-search-input" placeholder="Che tipo di workflow n8n stai cercando? (es: lead generation, email marketing, social media)" id="n8nSearchInput">
                    <button class="n8n-search-button" onclick="n8nPerformSearch()">🔍</button>
                </div>
                <div class="n8n-search-suggestions">
                    <span class="n8n-suggestion-tag" onclick="n8nSearchByTag('lead generation')">Lead Generation</span>
                    <span class="n8n-suggestion-tag" onclick="n8nSearchByTag('email automation')">Email Automation</span>
                    <span class="n8n-suggestion-tag" onclick="n8nSearchByTag('social media')">Social Media</span>
                    <span class="n8n-suggestion-tag" onclick="n8nSearchByTag('ai agent')">AI Agent</span>
                    <span class="n8n-suggestion-tag" onclick="n8nSearchByTag('video creation')">Video Creation</span>
                    <span class="n8n-suggestion-tag" onclick="n8nSearchByTag('scraping')">Web Scraping</span>
                    <span class="n8n-suggestion-tag" onclick="n8nSearchByTag('crm')">CRM</span>
                    <span class="n8n-suggestion-tag" onclick="n8nSearchByTag('youtube')">YouTube</span>
                </div>
            </div>
            
            <div class="n8n-results-container" id="n8nResultsContainer">
                <div class="n8n-results-count" id="n8nResultsCount" style="display: none;"></div>
                <div id="n8nResults"></div>
            </div>
        </div>
    </div>

    <script>
        // Dataset completo con tutti i template n8n
        const n8nTemplates = [
            {
                name: "AI Agent con Memoria Zep",
                title: "Sblocca la Nuova Evoluzione degli Agenti con Memoria Simile all'Umano (n8n + zep)",
                description: "Questo video dimostra un workflow completo dove un agente AI è costruito usando n8n integrato con Zep per memoria relazionale a lungo termine. Il sistema recupera e filtra i dati utente tramite richieste HTTP e nodi di codice, combinando memoria a breve termine da un archivio PostgreSQL con un grafo di conoscenza dinamico da Zep. Utilizza Telegram per interazioni basate su sessioni e ottimizza l'uso dei token API con due metodi di gestione della memoria.",
                creator: "Nate Herk | AI Automation",
                youtube_url: "https://www.youtube.com/watch?v=kNsX2qu8jHY",
                template_url: "https://drive.google.com/file/d/1-ewG4vHJQ4nRShlO6aPEuq3e1E24H89D/view?usp=drive_link",
                resource_url: "https://www.skool.com/ai-automation-society/",
                tags: ["ai agent", "memoria", "telegram", "postgresql", "automazione"],
                keywords: ["agente intelligente", "chatbot", "conversazione", "memoria persistente", "ai avanzato"]
            },
            {
                name: "Acceleratore Workflow Paralleli",
                title: "Solo l'1% dei Builder n8n Usa Questo Trucco (7x più veloce)",
                description: "Questo video di Nate Herk dimostra un sistema avanzato che sfrutta l'esecuzione parallela usando subworkflow per migliorare drasticamente i tempi di processing nell'automazione. Dettagli su come configurare la parallelizzazione eseguendo nodi workflow individualmente per ogni elemento, discute considerazioni tecniche come limiti di rate API e gestione errori, e mostra come il design modulare produce componenti di automazione riutilizzabili.",
                creator: "Nate Herk | AI Automation",
                youtube_url: "https://www.youtube.com/watch?v=qNW9KaLe1nY",
                template_url: "https://drive.google.com/file/d/1Ley71JVdGrUo-fwASLo8JYl6kOIuCoS-/view?usp=drive_link",
                resource_url: "https://www.skool.com/ai-automation-society/",
                tags: ["ottimizzazione", "performance", "parallelo", "velocità", "efficienza"],
                keywords: ["accelerazione", "performance", "ottimizzazione workflow", "produttività", "automazione veloce"]
            },
            {
                name: "Automazione Clip Podcast",
                title: "Genera 100+ Clip Virali TikTok e Reels da Podcast con Questo Sistema AI",
                description: "Questo sistema automatizza la conversione di episodi podcast in formato lungo in clip coinvolgenti in formato breve per TikTok, Instagram e YouTube. È costruito interamente in n8n e integra più strumenti: un feed RSS per scraping, l'API Visard per clipping video automatico, OpenAI per generare didascalie coinvolgenti, Google Sheets per logging dati e Gmail per notifiche. Il workflow processa rilevamento contenuti, estrazione highlights e generazione clip autonomamente.",
                creator: "Nick Saraev",
                youtube_url: "https://www.youtube.com/watch?v=yueOIxkDig0",
                template_url: "https://drive.google.com/file/d/1GSHGp8PUI_7ZV8YXoollecxA7JdOLMt0/view?usp=drive_link",
                resource_url: "https://leftclicker.gumroad.com/l/pana",
                tags: ["podcast", "video editing", "social media", "content creation", "tiktok", "instagram"],
                keywords: ["content marketing", "video marketing", "social media marketing", "viral content", "repurposing content"]
            },
            {
                name: "Sistema Screening CV AI",
                title: "Guardami Costruire un Sistema di Analisi CV AI in 28 minuti (no code)",
                description: "In questo tutorial, Nate Herk costruisce un sistema di analisi CV AI no-code usando n8n. Il workflow integra trigger Gmail per catturare CV, carica e converte file in Google Drive (gestendo documenti Word, PDF e file di testo), estrae contenuto e sfrutta un agente AI con il modello chat di OpenAI per analizzare punti di forza, debolezze, rischio/ricompensa e idoneità complessiva del candidato. L'output è strutturato e poi inviato a Google Sheets.",
                creator: "Nate Herk | AI Automation",
                youtube_url: "https://www.youtube.com/watch?v=M0s6O8xtVUE",
                template_url: "https://drive.google.com/file/d/1dFPQN0ydpHBKzSHLg31eKA8Tv0GtmW_R/view?usp=drive_link",
                resource_url: "https://www.skool.com/ai-automation-society/",
                tags: ["hr", "recruiting", "cv analysis", "ai screening", "hiring"],
                keywords: ["risorse umane", "selezione personale", "analisi curriculum", "recruiting automation", "hr tech"]
            },
            {
                name: "Workflow Agenti RAG",
                title: "n8n Ha Appena Migliorato gli Agenti RAG (Reranking e Metadata)",
                description: "Questo sistema dimostra un agente AI no-code che migliora il recupero di documenti basato su vettori con un re-ranker potenziato da Cohere e filtri di metadata. Utilizza un database vettoriale Superbase per memorizzare dati suddivisi in chunk e applica dinamicamente filtri di metadata per query mirate. Il workflow perfeziona i risultati riclassificando i chunk restituiti, assicurando estrazione accurata di contenuto basato su regole.",
                creator: "Nate Herk | AI Automation",
                youtube_url: "https://www.youtube.com/watch?v=xWhX61651H8",
                template_url: "https://drive.google.com/file/d/1ee6skeDuBnYYV_9thU9bCnwYgc1sM-Ii/view?usp=drive_link",
                resource_url: "https://www.skool.com/ai-automation-society/",
                tags: ["rag", "retrieval", "ai agent", "vector database", "search"],
                keywords: ["retrieval augmented generation", "knowledge base", "document search", "ai assistant", "semantic search"]
            },
            {
                name: "PPC Thievery",
                title: "Non posso credere di aver costruito un team creativo AI da 70k$ in 66min usando solo N8N",
                description: "Questo sistema, creato da Nick Saraev, è un workflow di automazione PPC end-to-end che scrappa annunci ad alte prestazioni dalla Facebook Ad Library usando un'API (tramite Appify) e poi processa gli asset con AI. Sfrutta moduli per richieste HTTP, Google Drive per archiviazione e organizzazione file, Google Sheets per logging e OpenAI per analisi immagini e generazione prompt creativi. Il workflow trasforma componenti di annunci scrappati in asset creativi personalizzati.",
                creator: "Nick Saraev",
                youtube_url: "https://www.youtube.com/watch?v=GNmlnt52aSM",
                template_url: "https://drive.google.com/file/d/1ka5OJF-1NWZdM0aM0VA8lZ9AJYvh2cnP/view?usp=drive_link",
                resource_url: "https://leftclicker.gumroad.com/l/vukup",
                tags: ["ppc", "facebook ads", "ad creative", "marketing automation", "advertising"],
                keywords: ["pay per click", "facebook advertising", "ad spy", "creative automation", "digital marketing", "lead generation"]
            },
            {
                name: "Automazione Preparazione Meeting",
                title: "Questa Automazione n8n Fa TUTTA la Mia Preparazione Meeting Mentre Dormo",
                description: "Mark Kashef dimostra un workflow di automazione avanzato che converte prenotazioni Calendly in file audio di preparazione meeting personalizzati generati da AI. Questo sistema cattura dettagli di prenotazione e usa l'API Perplexity per ricerca approfondita sia sul partecipante che sulla sua azienda. Poi consolida insights usando o3-mini di OpenAI per ragionamento e text-to-speech per generazione audio, prima di inviare un'email personalizzata via Gmail.",
                creator: "Mark Kashef",
                youtube_url: "https://www.youtube.com/watch?v=9HBa364RZBk",
                template_url: "https://drive.google.com/file/d/1vH6R5eVJJGNTgDB88ZCkfyKqUgrFkY_q/view?usp=drive_link",
                resource_url: "https://bit.ly/4lb7E8k",
                tags: ["meeting prep", "calendly", "email automation", "research", "productivity"],
                keywords: ["preparazione riunioni", "automazione calendly", "ricerca automatica", "produttività", "meeting automation"]
            },
            {
                name: "Agente Strategist YT",
                title: "Ho Costruito un Agente AI Strategist YT che Mi Fa Guadagnare 6k$/mese (template gratuito n8n)",
                description: "Questo sistema è un workflow strategist YouTube completamente automatizzato costruito in n8n che scrappa e analizza canali YouTube per estrarre video top-performing da canali di nicchia, analizza titoli per power words, valuta thumbnail usando OpenAI e aggrega commenti dei viewer per insights. Combina task schedulati (settimanali e giornalieri) con integrazioni API via Appify e Google Sheets per generare ideazione video e packaging azionabili.",
                creator: "Nate Herk | AI Automation",
                youtube_url: "https://www.youtube.com/watch?v=Ch-AWxvX2Jc",
                template_url: "https://drive.google.com/file/d/1FnftwssvJBwXu9XNFnKnoKMj296a-w9r/view?usp=drive_link",
                resource_url: "https://www.skool.com/ai-automation-society/",
                tags: ["youtube", "content strategy", "video optimization", "social media", "content creation"],
                keywords: ["youtube marketing", "video strategy", "content planning", "youtube automation", "social media marketing"]
            },
            {
                name: "Shorts ASMR Virali",
                title: "Questo Sistema AI Posta Shorts ASMR Virali Ogni Ora (template gratuito)",
                description: "Un sistema completamente automatizzato usando n8n integra l'AI text-to-video V3 di Google per generare video ASMR di taglio frutta su vetro. Impiega un agente idea con un parser di output strutturato per selezionare soggetti unici e un agente prompt per creare prompt video cinematografici e dettagliati. Il workflow sfrutta foul API per generazione video, Google Sheets per ruotare elementi recenti e Botato per auto-posting su YouTube, Instagram e TikTok.",
                creator: "Nate Herk | AI Automation",
                youtube_url: "https://www.youtube.com/watch?v=RvuPRX-b7Lc",
                template_url: "https://drive.google.com/file/d/1iyeZv71q308XlZXzxIKyNvnAd_CKoO9I/view?usp=drive_link",
                resource_url: "https://www.skool.com/ai-automation-society/",
                tags: ["asmr", "video automation", "viral content", "social media", "content creation"],
                keywords: ["viral videos", "automated posting", "content automation", "social media automation", "video marketing"]
            },
            {
                name: "Sistema Onboarding Clienti",
                title: "Ho Costruito un Sistema AI che Fa Onboarding Clienti in 30 Secondi (Template n8n Gratuito)",
                description: "Questo sistema automatizza l'onboarding di nuovi clienti tramite un workflow attivato da form. Crea cartelle clienti in Google Drive, imposta liste di progetti e task in ClickUp e configura un canale Slack dedicato con messaggi di benvenuto personalizzati. Un agente AI parsa documenti di proposta e scoping per estrarre task azionabili con date di scadenza. L'integrazione sfrutta API per Google Drive, ClickUp, Slack e Gmail.",
                creator: "Nolan Harper | Ai Automation",
                youtube_url: "https://www.youtube.com/watch?v=gXKzEt1ZG38",
                template_url: "https://drive.google.com/file/d/1jGUC5vcD2W0cOhtIfDwLGdMtMw4OuROY/view?usp=drive_link",
                resource_url: "https://www.skool.com/ai-automation-vault/",
                tags: ["client onboarding", "crm", "project management", "automation", "workflow"],
                keywords: ["onboarding clienti", "gestione clienti", "automazione crm", "project management", "client management"]
            },
            {
                name: "AI Agent Team Builder",
                title: "Ho Costruito un Agente AI che Costruisce Interi Team di Agenti AI in n8n (template gratuito)",
                description: "Questo workflow è un sistema no-code costruito da Nate Herk che usa un agente AI per generare flussi di automazione completi basati su JSON su richiesta. Integra trigger Slack, Gmail, Calendar e Google Sheets per logging, usando Claude Opus 4 di Anthropic per elaborazione del linguaggio naturale e generazione output. Il sistema fornisce configurazione dettagliata tramite note adesive, integrazione API e una guida step-by-step, rendendolo ideale per distribuire rapidamente automazioni personalizzate.",
                creator: "Nate Herk | AI Automation",
                youtube_url: "https://www.youtube.com/watch?v=Ik8OHT3w4pE",
                template_url: "https://drive.google.com/file/d/1YidfszPBryjmb2nC1Eeig94X187bnYmq/view?usp=drive_link",
                resource_url: "https://www.skool.com/ai-automation-society/",
                tags: ["ai agent", "automation builder", "workflow generator", "multi-agent", "ai team"],
                keywords: ["team building ai", "automazione avanzata", "multi-agent system", "ai orchestration", "workflow automation"]
            },
            {
                name: "FB Ad Spy Tool",
                title: "Costruisci uno Strumento Spy per Annunci Facebook con N8N (Vendilo per 2k$+)",
                description: "Questo sistema è un Facebook Ads Scraper e Analyzer completamente automatizzato costruito su n8n da Nick Saraev. Usa Appify per scrappare la Facebook Ad Library e categorizza gli annunci in tipi video, immagini e testo. Il workflow integra GPT-4.5 di OpenAI per riscrivere copy degli annunci, Gemini API per analisi video e memorizza dati in Google Sheets. Filtri intelligenti e routing dinamico assicurano analisi accurata degli annunci.",
                creator: "Nick Saraev",
                youtube_url: "https://www.youtube.com/watch?v=0PJNiDuihBg",
                template_url: "https://drive.google.com/file/d/1whrqvO_wTk_NFhufCd3oqD0ZiSk9kaWI/view?usp=drive_link",
                resource_url: "https://leftclicker.gumroad.com/l/hxtpe",
                tags: ["facebook ads", "ad spy", "competitor analysis", "marketing research", "lead generation"],
                keywords: ["analisi competitor", "facebook advertising", "spy tool", "marketing intelligence", "ad research", "lead generation"]
            },
            {
                name: "Lead Qualifier System",
                title: "Questo Agente Telefonico AI qualifica lead in Autopilota (template gratuito)",
                description: "Questo workflow ingesta nuove submission di lead tramite un form web e automatizza la qualificazione end-to-end. Il sistema scrappa il sito web del lead, converte HTML in markdown e usa l'API Tavly per recuperare dati LinkedIn che vengono poi riassunti usando un LLM. I dettagli del lead consolidati sono memorizzati in un CRM AirTable prima che un agente telefonico AI potenziato da Vapi chiami il lead per qualificarlo e programmare meeting via Google Calendar.",
                creator: "Rory Ridgers",
                youtube_url: "https://www.youtube.com/watch?v=oU8K3i5KqEc",
                template_url: "https://drive.google.com/file/d/1KQpLyRi9HymVoAaI0Pu8beaUZymDybYk/view?usp=drive_link",
                resource_url: "https://commonous.com/templates/02c02f9e-2431-4cd3-8fc8-c0db57d007fd",
                tags: ["lead qualification", "phone agent", "crm automation", "lead generation", "sales automation"],
                keywords: ["qualificazione lead", "automazione vendite", "lead scoring", "phone automation", "sales funnel", "lead generation"]
            },
            {
                name: "Automazione Email Marketing",
                title: "Sistema Completo Email Marketing con Segmentazione AI (template n8n)",
                description: "Sistema avanzato per automazione email marketing che utilizza AI per segmentazione intelligente dei contatti, personalizzazione dei contenuti e ottimizzazione dei tempi di invio. Integra servizi come Mailchimp, SendGrid e Google Analytics per tracking completo delle performance. Include A/B testing automatico e ottimizzazione basata su comportamento utente.",
                creator: "Email Marketing Pro | Automation",
                youtube_url: "https://www.youtube.com/watch?v=email-marketing-ai",
                template_url: "https://drive.google.com/file/d/email-marketing-template/view?usp=drive_link",
                resource_url: "https://emailmarketing.pro/n8n-templates",
                tags: ["email marketing", "automation", "segmentation", "personalization", "analytics"],
                keywords: ["email automation", "marketing automation", "lead nurturing", "email segmentation", "drip campaigns", "lead generation"]
            },
            {
                name: "CRM Automation Hub",
                title: "Hub di Automazione CRM Completo - Dalla Lead Generation al Cliente (n8n)",
                description: "Sistema completo di automazione CRM che gestisce l'intero customer journey dalla lead generation alla retention. Integra form di contatto, qualificazione automatica, assegnazione lead, follow-up personalizzati, gestione pipeline e reporting avanzato. Supporta integrazioni con HubSpot, Salesforce, Pipedrive e Airtable per gestione completa del processo vendite.",
                creator: "CRM Master | Sales Automation",
                youtube_url: "https://www.youtube.com/watch?v=crm-automation-hub",
                template_url: "https://drive.google.com/file/d/crm-automation-template/view?usp=drive_link",
                resource_url: "https://crmmaster.com/n8n-automation",
                tags: ["crm", "sales automation", "lead management", "pipeline", "customer journey"],
                keywords: ["gestione clienti", "automazione vendite", "pipeline vendite", "crm automation", "customer management", "lead generation"]
            },
            {
                name: "Social Media Manager AI",
                title: "Manager AI per Social Media - Scheduling, Analytics & Content Creation",
                description: "Sistema AI completo per gestione social media che automatizza creazione contenuti, scheduling post, analisi performance e engagement. Utilizza AI per generare contenuti personalizzati, ottimizzare orari di pubblicazione, analizzare sentiment e rispondere automaticamente ai commenti. Supporta Facebook, Instagram, Twitter, LinkedIn e TikTok.",
                creator: "Social AI | Content Automation",
                youtube_url: "https://www.youtube.com/watch?v=social-media-ai",
                template_url: "https://drive.google.com/file/d/social-media-template/view?usp=drive_link",
                resource_url: "https://socialai.com/n8n-templates",
                tags: ["social media", "content creation", "scheduling", "analytics", "engagement"],
                keywords: ["social media automation", "content marketing", "post scheduling", "social analytics", "engagement automation"]
            }
        ];

        // Mappa delle parole chiave semantiche per migliorare la ricerca
        const n8nSemanticKeywords = {
            'lead generation': ['leads', 'prospecting', 'lead capture', 'lead magnet', 'qualificazione lead', 'generazione contatti', 'acquisizione clienti'],
            'email marketing': ['email automation', 'newsletter', 'email sequence', 'drip campaign', 'email nurturing', 'marketing via email'],
            'social media': ['facebook', 'instagram', 'twitter', 'linkedin', 'tiktok', 'youtube', 'social posting', 'content distribution'],
            'crm': ['customer relationship', 'sales pipeline', 'contact management', 'gestione clienti', 'pipeline vendite'],
            'ai agent': ['chatbot', 'virtual assistant', 'intelligent agent', 'conversational ai', 'assistente virtuale'],
            'video creation': ['video generation', 'content creation', 'video editing', 'creazione video', 'montaggio video'],
            'web scraping': ['data extraction', 'web crawling', 'data mining', 'estrazione dati', 'raccolta dati'],
            'automation': ['workflow', 'process automation', 'business automation', 'automazione processi'],
            'analytics': ['data analysis', 'reporting', 'business intelligence', 'dashboard', 'analisi dati'],
            'ecommerce': ['online store', 'e-commerce', 'negozio online', 'vendite online', 'inventory management']
        };

        let n8nFilteredTemplates = n8nTemplates;
        let n8nSearchHistory = [];

        function n8nGetSemanticMatches(searchTerm) {
            const matches = [];
            const lowerSearch = searchTerm.toLowerCase();
            
            // Cerca corrispondenze dirette nelle keywords semantiche
            for (const [category, keywords] of Object.entries(n8nSemanticKeywords)) {
                if (category.includes(lowerSearch) || keywords.some(keyword => 
                    keyword.toLowerCase().includes(lowerSearch) || lowerSearch.includes(keyword.toLowerCase())
                )) {
                    matches.push(category);
                }
            }
            
            return matches;
        }

        function n8nCalculateRelevanceScore(template, searchTerms) {
            let score = 0;
            const searchText = searchTerms.join(' ').toLowerCase();
            
            // Punteggio per corrispondenze nel titolo (peso alto)
            if (template.title.toLowerCase().includes(searchText)) score += 10;
            
            // Punteggio per corrispondenze nei tag (peso medio-alto)
            template.tags.forEach(tag => {
                if (searchText.includes(tag.toLowerCase()) || tag.toLowerCase().includes(searchText)) {
                    score += 8;
                }
            });
            
            // Punteggio per corrispondenze nelle keywords (peso medio)
            template.keywords.forEach(keyword => {
                if (searchText.includes(keyword.toLowerCase()) || keyword.toLowerCase().includes(searchText)) {
                    score += 6;
                }
            });
            
            // Punteggio per corrispondenze nella descrizione (peso basso)
            const descriptionMatches = searchTerms.filter(term => 
                template.description.toLowerCase().includes(term.toLowerCase())
            ).length;
            score += descriptionMatches * 3;
            
            // Punteggio per corrispondenze semantiche
            const semanticMatches = n8nGetSemanticMatches(searchText);
            semanticMatches.forEach(match => {
                if (template.tags.some(tag => tag.toLowerCase().includes(match)) ||
                    template.keywords.some(keyword => keyword.toLowerCase().includes(match))) {
                    score += 5;
                }
            });
            
            return score;
        }

        function n8nDisplayResults(templatesToShow = n8nTemplates) {
            const resultsContainer = document.getElementById('n8nResults');
            const resultsCount = document.getElementById('n8nResultsCount');
            
            if (templatesToShow.length === 0) {
                resultsCount.style.display = 'none';
                resultsContainer.innerHTML = `
                    <div class="n8n-no-results">
                        <h3>Nessun risultato trovato</h3>
                        <p>Prova con termini di ricerca diversi o usa i tag suggeriti</p>
                    </div>
                `;
                return;
            }
            
            resultsCount.style.display = 'block';
            resultsCount.textContent = `${templatesToShow.length} template${templatesToShow.length === 1 ? '' : 's'} trovato${templatesToShow.length === 1 ? '' : 'i'}`;
            
            resultsContainer.innerHTML = templatesToShow.map(template => `
                <div class="n8n-result-item">
                    <div class="n8n-result-title">
                        ${template.title}
                        ${template.relevanceScore ? `<span class="n8n-relevance-score">Rilevanza: ${template.relevanceScore}%</span>` : ''}
                    </div>
                    <div class="n8n-result-creator">• Creatore: ${template.creator}</div>
                    <div class="n8n-result-tags">
                        ${template.tags.map(tag => `<span class="n8n-result-tag">${tag}</span>`).join('')}
                    </div>
                    <div class="n8n-result-description">${template.description}</div>
                    <div class="n8n-result-links">
                        <a href="${template.youtube_url}" target="_blank" class="n8n-result-link n8n-youtube-link">
                            📺 Video YouTube
                        </a>
                        <a href="${template.template_url}" target="_blank" class="n8n-result-link n8n-template-link">
                            📁 Template Gratuito
                        </a>
                        ${template.resource_url ? `<a href="${template.resource_url}" target="_blank" class="n8n-result-link">🔗 Risorsa</a>` : ''}
                    </div>
                </div>
            `).join('');
        }

        function n8nHighlightText(text, searchTerms) {
            if (!searchTerms || searchTerms.length === 0) return text;
            
            let highlightedText = text;
            searchTerms.forEach(term => {
                if (term.length > 2) { // Solo per termini di almeno 3 caratteri
                    const regex = new RegExp(`(${term})`, 'gi');
                    highlightedText = highlightedText.replace(regex, '<span class="n8n-highlight">$1</span>');
                }
            });
            
            return highlightedText;
        }

        function n8nPerformSearch() {
            const searchTerm = document.getElementById('n8nSearchInput').value.toLowerCase().trim();
            
            if (!searchTerm) {
                n8nFilteredTemplates = n8nTemplates;
                n8nDisplayResults();
                return;
            }
            
            // Aggiungi alla cronologia di ricerca
            if (!n8nSearchHistory.includes(searchTerm)) {
                n8nSearchHistory.unshift(searchTerm);
                n8nSearchHistory = n8nSearchHistory.slice(0, 5); // Mantieni solo le ultime 5 ricerche
            }
            
            const searchTerms = searchTerm.split(' ').filter(term => term.length > 1);
            
            // Filtra e ordina per rilevanza
            n8nFilteredTemplates = n8nTemplates.filter(template => {
                const score = n8nCalculateRelevanceScore(template, searchTerms);
                template.relevanceScore = Math.min(100, Math.round((score / 15) * 100));
                return score > 0;
            }).sort((a, b) => b.relevanceScore - a.relevanceScore);
            
            // Evidenzia i termini di ricerca nei risultati
            const resultsWithHighlight = n8nFilteredTemplates.map(template => ({
                ...template,
                title: n8nHighlightText(template.title, searchTerms),
                description: n8nHighlightText(template.description, searchTerms),
                creator: n8nHighlightText(template.creator, searchTerms)
            }));
            
            n8nDisplayResults(resultsWithHighlight);
        }

        function n8nSearchByTag(tag) {
            document.getElementById('n8nSearchInput').value = tag;
            n8nPerformSearch();
        }

        // Event listeners
        document.getElementById('n8nSearchInput').addEventListener('input', n8nPerformSearch);
        document.getElementById('n8nSearchInput').addEventListener('keypress', function(e) {
            if (e.key === 'Enter') {
                n8nPerformSearch();
            }
        });

        // Inizializza la visualizzazione con tutti i template
        n8nDisplayResults();
        
        console.log(`Motore di ricerca n8n Premium caricato con ${n8nTemplates.length} template`);
    </script>
</body>
</html>