Has anyone built an AI agent in n8n to orchestrate multiple Python scripts?
I’m working on a more advanced use case where a user can trigger a complete cold outreach sequence using a simple chat command. For example:
“Generate a list of leads from LinkedIn, personalize a cold email for each, and draft them if their company has over 50 employees.”
Here’s how the automation works:
- Agent receives the chat message (via Slack/Telegram).
- AI agent analyzes the intent and orchestrates the following:
Run lead_scraper.py→ gathers leads from LinkedIn (via API or scraping)
Evaluate each lead using lead_filter.py→ filters based on criteria (e.g., company size > 50)
Use email_generator.py→ creates personalized cold emails using an LLM
Use email_drafter.py→ saves emails as drafts in your Gmail or Outlook account
Log actions and results to Google Sheets or a CRM
All decision-making is handled by the AI agent (LangChain or OpenRouter model), and each script is exposed as a webhook or microservice.
Has anyone implemented something similar? Would love to hear how others are chaining together external Python scripts with n8n + AI for intelligent workflows. Main reason I ask is because over the years I’ve generated python scripts that can do pretty much the actions I listed above and it would be great to be able to easily consolidate them all together generate an AI agent to handle them idk im a super noob so sorry if i sound stupid

