AI Agents for Beginners: From Architecture to a Working Sales & Lead Enrichment Agent
An AI agent is an LLM given a goal, a set of tools, and the autonomy to decide which tools to use in a loop until the goal is complete. In this course, you build an agent that researches each new sales lead across the live web, scores it against an ideal customer profile, and drafts a personalized outreach email.
We just published a course on the freeCodeCamp.org YouTube channel that teaches how AI agents work and how to build a sales and lead enrichment agent from scratch. I created this course, and Oxylabs provided a grant to make it possible.
You'll build the workflow visually in n8n, then see the same agent loop implemented in Python, using the Oxylabs Web API for web search and scraping.
What You'll Learn
Agent Architecture
How the model, instructions, memory, and tools fit together in a loop of thinking, calling a tool, and observing the result.
Live Web Data for Agents
Why stale training data and plain HTTP GET requests break down on JavaScript-rendered sites, bot protection, and messy HTML.
Building the Workflow in n8n
How to connect a Google Sheets trigger, an AI Agent node, Oxylabs search and scrape tools, and a structured output parser.
The Same Agent in Python
How a short loop runs whichever Oxylabs tool the model requests and appends each result to the conversation history.
Testing & Production Reliability
How the agent handles Vercel and a local bakery, plus five tips such as capping max iterations and keeping a human in the loop. As agent frameworks mature in 2026, these guardrails remain essential: bounded loops, deterministic tool schemas, and escalation paths for low-confidence results.
MCP & Agent Skills
How the Oxylabs remote MCP server and skill.md instruction files fit into a larger agent setup. With MCP now a widely adopted standard for connecting models to external tools in 2026, understanding this layer is increasingly valuable for production agents.
Watch the Full Course
Watch the full course on the freeCodeCamp.org YouTube channel (43-minute watch).
via FreeCodeCamp
