İçeriğe geç
YENİAlaaddin ile tanış: sesi olan yapay zekâ cinin. trig8n 1 Ocak 2027'de yayında. Yeniliklere bak

Kütüphane / Yapay Zekâ Ajanları ve Asistanlar

Yapay Zekâ Ajanları ve Asistanlar

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.

Ne yapar

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.

Adımlar

  1. Facebook Marketplace Inquiry
  2. Extract Inquiry Details
  3. GPT-4o-mini
  4. Parse AI Response (JSON Safe)
  5. Store Inquiry (Supabase)
  6. Compute Lead Score
  7. Check: Hot Lead (Score ≥ 5)
  8. Check: Warm Lead (Score ≥ 3)
  9. Slack Hot Leads
  10. Slack Warm Leads
  11. Slack Cold Leads

Benzer otomasyonlar