šŸ’¬ Automate lead qualification & customer support with GPT-4o-mini agents

⚔ 1,140 views Ā· šŸ’¬ Lead Nurturing & AI Sales Agents

Description

Beginner AI Agent Duo: Lead‑Qualifier Task Automator & Ecommerce Chatbot

Status: Ready for Useā€Æāœ…
Note: This template is built entirely with official n8n nodes—no community‑node installation required.


šŸ“Ā Description

This template demonstrates two beginner‑friendly AI‑agent patterns that cover the most common use cases:

AgentPurposeFlow Highlights
Lead‑Qualifier Task AutomatorClassifies phone‑call transcripts to decide if the caller is a good bulk‑order lead.Manual Trigger → Code (sample data) → AIĀ Agent (GPT‑4o‑mini) → StructuredĀ OutputĀ Parser → Set (clean fields)
Ecommerce ChatbotAnswers customer questions about products, bulk pricing, shipping, and returns.ChatĀ Trigger (webhook) → AIĀ Agent (GPT‑4o‑mini) with Memory → IfĀ node → Order‑placed reply or no‑op

Both agents run on GPT‑4o‑mini and use n8n’s LangChain‑powered nodes for quick, low‑code configuration.


āš™ļøĀ HowĀ toĀ InstallĀ &Ā Run

  1. Import the Workflow

    • In n8n, go to Workflows → Import from File or Paste JSON, then save.
  2. Add Your OpenAIĀ API Key

    • Go to Credentials → New → OpenAI API.
    • Paste your key from <https://platform.openai.com>.
    • Select this credential in both OpenAI Chat Model nodes.
  3. (Optional) Select a Different Model

    • Default model is gpt‑4o‑mini.
    • Change to GPT‑4o, GPT‑3.5‑turbo, or any available model in each OpenAI node.
  4. Test the Lead‑Qualifier Agent

    • Click Activate.
    • Press TestĀ workflow.
    • The Code node feeds four sample transcripts; the AI Agent returns JSON like:
      {
        "Name": "Jordan Lee",
        "Is Good Lead": "Yes",
        "Reasoning": "Customer requests 300 custom mugs, indicating a bulk order."
      }
  5. Test the Ecommerce Chatbot

    • Copy the Webhook URL from the When chat message received trigger.
    • POST a payload like:
      { "message": "Hi, do you offer discounts if I buy 120 notebooks?" }
    • The AI Agent replies with bulk‑pricing info.
    • If the customer confirms an order, it appends *****; the IfĀ node then sends ā€œYour order has been placedā€.

🧩 Customization Ideas


šŸ¤ Connect with Me

Description

I’m Robert Breen, founder of Ynteractive — a consulting firm that helps businesses automate operations using n8n, AI agents, and custom workflows. I’ve helped clients build everything from intelligent chatbots to complex sales automations, and I’m always excited to collaborate or support new projects.

If you found this workflow helpful or want to talk through an idea, I’d love to hear from you.

🌐 Website: https://www.ynteractive.com
šŸ“ŗ YouTube: @ynteractivetraining
šŸ’¼ LinkedIn: https://www.linkedin.com/in/robert-breen
šŸ“¬ Email: rbreen@ynteractive.com

šŸ”— Nodes Used

AI Agent, OpenAI Chat Model, Simple Memory, Structured Output Parser, Chat Trigger

šŸ“„ Import

Download workflow.json and import into n8n: Workflow menu → Import from File

šŸ“– Importing guide Ā· šŸ”‘ Credential setup