Building a Self-Correcting Research Agent with Neonlights AI
Last quarter, I spent over 40 hours creating content briefs. That’s a full work week of copy-pasting SERP results, identifying keyword clusters, and trying to structure a coherent outline for a Writer. It’s tedious, soul-crushing work that’s necessary for good SEO but a terrible use of an operator’s time. I knew there had to be an automated solution that didn’t just spit out generic, hallucinatory garbage. This article shows you how to build the exact system I use now, based on a method I call the neonlights ai framework. You’ll learn to chain together specialized AI agents to produce high-quality, factual research briefs automatically.
So, What Exactly is the Neonlights AI Framework?
First, this isn’t a new SaaS tool you have to buy. It’s a design pattern. An operator playbook. The core idea of the neonlights ai approach is to reject the single, massive “god prompt” that tries to do everything at once. Those are brittle and impossible to debug. Instead, you build a sequential chain of small, specialized AI agents. Think of it like an assembly line.
Prompt Engineering for Profit
50 tested prompt templates for content, copywriting, and automation. Copy, paste, earn.
Get the Templates → $17
Each agent in the chain has exactly one job. One agent scrapes data. The next one cleans and summarizes it. A third agent finds patterns in the summaries. A final one builds a structured outline. The critical part is that the output of one agent becomes the validated, cleaned input for the next. This modularity is what makes the system resilient. When one part breaks, you know exactly which agent failed, and you can fix its specific prompt or logic without tearing down the entire system. It’s how you move from AI toys to production automation.
The No-Code Stack for Your First Agent Chain
You don’t need to be a Python developer to build this. We’ll use off-the-shelf tools that connect visually. This is my current stack for this exact task.
- Orchestration: Make (formerly Integromat). This is the brain of the operation, connecting all the other services. Its visual, drag-and-drop interface is perfect for designing agent chains. I think its Pro plan, around $29/month, is fairly priced for the complexity it handles. Honestly, the free plan is a joke for anything beyond a two-step task, so expect to pay.
- Intelligence: OpenAI API (GPT-4o). This provides the reasoning for our agents. It’s not just about generating text; it’s about synthesis and structuring. API access is cheap for this kind of work; a few dollars a month will cover dozens of briefs.
- Data Extraction: ScrapingBee. To do real research, your agent needs to read the current top-ranking web pages. ScrapingBee is a service that handles the messy parts of web scraping, like dealing with blocks and rendering JavaScript.
- Memory: Airtable. This is where the outputs of each agent are stored. Using a structured database like Airtable instead of Google Sheets is a better practice. It forces you to be disciplined about your data format, which is essential for passing clean information between agents.
Building the 3-Agent Content Briefing Workflow
Let’s build the workflow. The goal is to provide a target keyword and get a complete content brief in Airtable a few minutes later. In Make.com, this will look like a linear sequence of modules.
Here’s the step-by-step process:
- Setup the Trigger: Start with an Airtable module in Make.com set to “Watch Records.” This will trigger the automation whenever you add a new keyword to a specific base and table.
- Agent 1: The Researcher. This agent’s job is to gather the raw material. It takes the keyword from Airtable, uses the ScrapingBee API to perform a Google search, and gets the URLs of the top 10 results. Then, it loops through each URL and uses ScrapingBee again to extract the clean text content from each page. The output—a big collection of raw, unstructured text—is saved to an Airtable field.
- Agent 2: The Synthesizer. This is our first GPT-4o call. This agent takes the raw text dump from Agent 1 and distills it. Its sole purpose is to identify the core themes, recurring questions, and named entities (people, products, companies) mentioned across all the source articles. It doesn’t write anything new; it just finds patterns.
The prompt for this agent is crucial. It looks something like this:
You are a world-class research analyst. You have been given the raw text from the top 10 search results for the keyword "{{keyword}}". Your task is to analyze this text and extract key information. Do not write an article. Do not use conversational language. Provide your output in a structured JSON format.
1. **Common Themes:** Identify up to 5 recurring themes or topics discussed across multiple articles. These should be high-level concepts.
2. **Frequent Questions:** List up to 7 specific questions that are directly answered or implied in the text. Look for phrases like "how to," "what is," "why is."
3. **Named Entities:** List all the unique people, products, and company names mentioned.
Respond ONLY with the JSON object.
The JSON output from this API call is then parsed and saved to new fields in your Airtable record.
- Agent 3: The Structurer. This agent takes the structured JSON from the Synthesizer. It does not see the original raw text. This is a key detail. It prevents the agent from getting distracted and improves consistency. The Structurer’s job is to build a logical content outline. It suggests a title, writes a meta description, and arranges the themes and questions from Agent 2 into a hierarchy of H2 and H3 headings. This becomes the final content brief for a human writer.
This entire process, once built, is completely hands-off.
