• Home
  • About
Book a Discovery Call

Back

How I Built an AI Agent That Calls Other AI Agents in n8n (Like a Real Team)

A while ago, I showed you how to create powerful AI automations in n8n using a single agent to solve one problem — like writing cold emails or summarizing documents. That alone helped many of you build $4K–$5K/month client workflows.

But what if I told you… You can go a step further — and build an AI agent that acts like a manager, calling multiple specialized agents just like a real team?

In today’s automation, that’s exactly what I did. And it’s .

What I Built

Imagine this:

  • One main AI assistant receives a prompt (like a manager getting a task).
  • It figures out which sub-agent is best suited (cold email? sales letter?).
  • It calls that agent, gets the output, and logs the results in a Google Doc.
  • That’s multi-agent orchestration. And it’s all done inside n8n using OpenAI assistants, subworkflows, and chat-based routing.

    Key Components

    Main AI Agent (Copy Assistant)

  • Built using n8n’s AI Agent node
  • Uses GPT-4.1 mini to analyze the task
  • Decides whether to call Cold Email Writer or Sales Letter Writer
  • 2. Sub workflows for Each Agent

  • Each agent lives in its own n8n workflow
  • Uses OpenAI’s Assistant API
  • Takes a prompt and returns templated copy
  • 3. Workflow Trigger & Chat Interface

  • User types into a chat node
  • Message gets routed to the correct agent via logic
  • Output is saved to Google Docs
  • Why It’s Powerful

    This structure mimics real company teams:

  • One “manager” (main agent) handles communication
  • Specialized “employees” (sub-agents) handle execution
  • And the best part?

    You can swap agents in or out, link this to your website, or sell it as a productized service.

    Tech Stack Used

  • n8n (for workflow orchestration)
  • OpenAI Assistants API
  • Google Docs (to log output)
  • GPT-4.1 mini model
  • Agents: Cold Email Writer & Sales Letter Assistant
  • Real-World Use Case

    In this example, we generated 5 cold email templates targeting VHO AI customers in seconds. The quality? Close to pro-level copywriting.

    This exact setup could:

  • Power a copywriting SaaS
  • Replace junior marketing roles
  • Act as an internal content creation engine
  • Final Thoughts

    If you’ve ever dreamed of building AI systems that simulate how real teams operate, this is the blueprint. It’s modular, scalable, and deeply human-like in its task delegation.

    And this is just the beginning. Next, I’ll show how to sell these agents, plug them into websites, and automate full client workflows.

    🔔 Want More?

    If you’re ready to turn AI agents into a business — or want to learn the inner workings of n8n + OpenAI — follow me here and subscribe on

    https://www.youtube.com/watch?v=_zn_fCAIo8Y

    Let’s build.

    Yar Asfand Malik

    Author: Yar Asfand Malik

    Published: 07 Aug, 2025

    © 2025 Yar Malik. All rights reserved. Powered by passion, purpose, and AI.