Automate Lead Qualification & Customer Support with GPT-4o-mini Agents
### Beginner AI Agent Duo: Lead-Qualifier and 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 and Automator** | Classifies phone-call transcripts to decide if the caller is a good bulk-order lead. | Manual trigger → Code (sample data) → AI Agent (GPT-4-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-4-mini) with Memory → If node → Order-placed reply or no-op | Both agents run on **GPT-4-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-4-mini**. - Change to GPT-4, 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: ```json { "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: ```json { "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 Lead Agents 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* nodes 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](https://www.ynteractive.com) - YouTube: [@ynteractivetraining](https://www.youtube.com/@ynteractivetraining) - LinkedIn: [https://www.linkedin.com/in/robert-breen](https://www.linkedin.com/in/robert-breen) - Email: rbreen@ynteractive.com
Beginner AI Agent Duo: Lead-Qualifier and 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 and Automator | Classifies phone-call transcripts to decide if the caller is a good bulk-order lead. | Manual trigger → Code (sample data) → AI Agent (GPT-4-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-4-mini) with Memory → If node → Order-placed reply or no-op |
Both agents run on GPT-4-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-4-mini. - Change to GPT-4, 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 Lead Agents 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 nodes 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
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Related bundle
Content Repurposing Engine
8 hand-picked workflows for $29.00.
That is $3.63 each, vs $14.99 for this one alone.
View bundleSecure checkout powered by Stripe
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related AI workflows
- Launch Your First AI-Powered Chatbot with Actionable Tools$9.99
- Build a WhatsApp Assistant with Memory, Google Suite, Multi-AI, Research, and Imaging$24.99
- Automate AI Video Creation and YouTube Upload with Google Sheets$14.99
- Automate Blog Post Creation and Publishing with GPT, Leonardo AI, and WordPress$14.99
- Automate SEO Keyword Generation with ChatGPT from Google Sheets$3.99
- Email Agent$500.99
More from Robert Breen
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.