An AI agent is an LLM that is given a goal, a set of tools, and the autonomy to decide which tools to use in a loop until the goal is complete. The agent built in this course researches each new sales lead on 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 will teach you 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 in Python, using the Oxylabs Web API for web search and scraping.

In this course, you will 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.
  • MCP & Agent Skills
    How the Oxylabs remote MCP server and skill.md instruction files fit into a larger agent setup.

Watch the full course on the freeCodeCamp.org YouTube channel (43-minute watch).