š¬ 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:
| Agent | Purpose | Flow Highlights |
|---|---|---|
| LeadāQualifier Task Automator | Classifies 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 Chatbot | Answers 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
-
Import the Workflow
- In n8n, go to Workflows ā Import from File or Paste JSON, then save.
-
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.
-
(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.
-
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." }
-
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
- Refine Qualification LogicāEdit the Task Agentās system prompt to match your own lead criteria.
- Save Leads AutomaticallyāAdd Google Sheets, Airtable, or a database node after the Set node.
- Expand the ChatbotāConnect inventory APIs, payment gateways, or CRM integrations.
- Adjust Memory LengthāChange the Simple Memory nodeās window to retain more conversation context.
š¤ 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.
Links
š 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