Библиотека / ИИ-агенты и ассистенты
ИИ-агенты и ассистенты
Score and route Facebook Marketplace leads with OpenAI, Supabase, and Slack
When something happens in a connected app, it runs an AI agent with OpenAI / ChatGPT using Facebook, Slack, Supabase.
Что делает
This workflow captures Facebook Marketplace inquiries, uses OpenAI to extract structured data, stores it in Supabase, calculates a lead score, and sends alerts to different Slack channels based on lead priority (hot, warm, cold). ## How It Works - The workflow starts when a new inquiry is received from Facebook Marketplace via the trigger node. - The message is sent to an AI model to extract structured details like intent, product mentioned, and summary. - The AI response is parsed into clean JSON format to ensure consistency and avoid errors. - The structured data is stored in Supabase for tracking and future analysis. - A lead score is calculated based on the customer’s intent to determine priority. - The workflow evaluates the score to classify the lead as hot, warm, or cold. - Based on classification, the system routes the inquiry to the appropriate Slack channel. - Sales teams receive real-time notifications, enabling faster and more effective responses. ## Setup Steps - Create a Facebook App and configure webhook permissions for page messages. - Set up the Facebook Trigger node in n8n with your App ID and required fields. - Connect an OpenAI account and configure the AI node with the prompt for data extraction. - Add a Code node to safely parse the AI response into JSON format. - Configure Supabase credentials and create a table to store inquiry data. - Add a Code node to implement lead scoring logic based on intent. - Use IF nodes to segment leads into hot, warm, and cold categories. - Connect Slack nodes and configure channels for each lead type. - Test the workflow using sample messages and verify data flow and notifications. - Activate the workflow to start processing real-time inquiries automatically.
Шаги
- Facebook Marketplace Inquiry
- Extract Inquiry Details
- GPT-4o-mini
- Parse AI Response (JSON Safe)
- Store Inquiry (Supabase)
- Compute Lead Score
- Check: Hot Lead (Score ≥ 5)
- Check: Warm Lead (Score ≥ 3)
- Slack Hot Leads
- Slack Warm Leads
- Slack Cold Leads
Похожие автоматизации
ИИ-агенты и ассистентыИнструмент ИИ-агента для маркетплейса OpenSeaШагов: 106ИИ-агенты и ассистентыИнструмент-агент маркетплейса OpenSeaШагов: 14RAG и базы знанийMap marketplace product categories with Gemini embeddings and a review queueШагов: 26Оповещения и уведомленияScore inbound leads with Google Gemini and route hot leads to a webhookШагов: 7