<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Zaid Hossain</title>
    <description>The latest articles on DEV Community by Zaid Hossain (@zaid_hossain_4815f41c7d7c).</description>
    <link>https://dev.to/zaid_hossain_4815f41c7d7c</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4031109%2F43c79bba-2480-409a-8850-6996fb97df1d.png</url>
      <title>DEV Community: Zaid Hossain</title>
      <link>https://dev.to/zaid_hossain_4815f41c7d7c</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zaid_hossain_4815f41c7d7c"/>
    <language>en</language>
    <item>
      <title>Building Production AI Agents for Marketing Agencies in 2026</title>
      <dc:creator>Zaid Hossain</dc:creator>
      <pubDate>Mon, 20 Jul 2026 19:56:32 +0000</pubDate>
      <link>https://dev.to/zaid_hossain_4815f41c7d7c/building-production-ai-agents-for-marketing-agencies-in-2026-1lgk</link>
      <guid>https://dev.to/zaid_hossain_4815f41c7d7c/building-production-ai-agents-for-marketing-agencies-in-2026-1lgk</guid>
      <description>&lt;h2&gt;
  
  
  The shift from text generation to autonomous marketing systems
&lt;/h2&gt;

&lt;p&gt;If you're still using GPT-4o as a glorified copywriter, you're leaving money on the table. I've seen too many agency devs build clever AI integrations that spit out blog posts or ad headlines, then stop there. Meanwhile, the agencies actually winning in 2026 are shipping &lt;em&gt;agents&lt;/em&gt; — systems that take a goal, plan multi-step actions, call real APIs (Meta, Google Ads, TikTok, GA4, your CRM), observe results, and loop until a marketing outcome is achieved.&lt;/p&gt;

&lt;p&gt;This isn't science fiction. About 34% of enterprises and roughly 20% of mid-market teams already run at least one marketing agent in production, seeing 4–5x ROI on automated workflows and 27% faster campaign build times. The inflection point is here because ad platforms finally have mature APIs, and frameworks like LangChain, CrewAI, and agent SaaS platforms (Relevance AI, Gumloop, MindStudio) make orchestration tractable for a solo developer.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a 2026 marketing agent actually looks like
&lt;/h2&gt;

&lt;p&gt;An agent isn't a chatbot. It's a loop: observe state, plan next action, execute via tool/API, check result, repeat. For agencies, that means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Creative testing agents&lt;/strong&gt; that use GPT-4o vision to inspect existing ads and landing pages, generate 10–20 new variants (headlines, hooks, images), push them via the Meta/TikTok/Google Ads APIs, read performance data back, pause losers, and iterate on winners.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Brand knowledge agents&lt;/strong&gt; that ingest Notion docs, past winning ads, emails, landing pages, and performance CSVs into a vector store, then expose that context as a tool for other agents so every piece of copy stays on-brand and performance-informed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reporting and analytics agents&lt;/strong&gt; that pull weekly data from multiple platforms, read exported dashboard screenshots if needed, cluster campaigns by performance, and output markdown or PDF reports with narrative insights and concrete next steps — delivered straight to Slack or email.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lifecycle orchestration agents&lt;/strong&gt; that segment audiences, trigger emails or push notifications, and personalize creative angles based on user behavior and multimodal analysis of user-generated content (reviews, videos, audio).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each pattern maps cleanly to agency revenue levers: capacity (more campaigns per account manager), margins (fewer junior hours on grunt work), and outcomes (faster optimization cycles).&lt;/p&gt;

&lt;h2&gt;
  
  
  Why multimodal LLMs matter now
&lt;/h2&gt;

&lt;p&gt;GPT-4o, Gemini, and Claude with vision unlock workflows that were impossible last year. You can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Generate whole campaign packages: copy, images, video scripts, all in one agent loop.&lt;/li&gt;
&lt;li&gt;Analyze landing page screenshots for conversion issues without parsing HTML.&lt;/li&gt;
&lt;li&gt;Read dashboard PDFs and exported reports to extract performance data when APIs are rate-limited or unavailable.&lt;/li&gt;
&lt;li&gt;Interpret user-generated video, audio, and image reviews to surface creative angles and segmentation criteria.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For agencies, this means your agents can operate on the same messy artifacts your account managers already use — screenshots, PDFs, raw video — instead of requiring pristine API access to every data source.&lt;/p&gt;

&lt;h2&gt;
  
  
  A realistic implementation stack
&lt;/h2&gt;

&lt;p&gt;Here's what I'd build today:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Agent framework&lt;/strong&gt;: LangChain or CrewAI if you want control; Relevance AI or Gumloop if you want speed and pre-built connectors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LLM strategy&lt;/strong&gt;: Cheap model (GPT-3.5-turbo, Gemini Flash) for bulk analysis and planning; higher-end multimodal (GPT-4o, Claude Opus) for creative assessment and final output.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tool layer&lt;/strong&gt;: Official SDKs for Meta, Google Ads, TikTok; REST clients for GA4, Shopify, HubSpot; vector store (Pinecone, Weaviate) for brand knowledge.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Guardrails&lt;/strong&gt;: Brand safety rules (reject outputs that violate brand voice), approval workflows (account manager override before live launch), rate limiting (respect platform quotas).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Logging and observability&lt;/strong&gt;: Transparent agent logs for account managers; ability to pause, inspect, and restart any workflow.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Example: a creative testing agent
&lt;/h2&gt;

&lt;p&gt;High-level architecture:&lt;/p&gt;

&lt;p&gt;python&lt;br&gt;
from langchain.agents import initialize_agent, Tool&lt;br&gt;
from langchain.llms import OpenAI&lt;br&gt;
import facebook_business  # Meta SDK&lt;br&gt;
import google.ads.googleads  # Google Ads SDK&lt;/p&gt;

&lt;h1&gt;
  
  
  Tools: inspect creatives, generate variants, launch ads, read performance
&lt;/h1&gt;

&lt;p&gt;inspect_tool = Tool(name="InspectCreative", func=analyze_screenshot_gpt4o, description="...")&lt;br&gt;
generate_tool = Tool(name="GenerateVariants", func=generate_ad_copy_and_images, description="...")&lt;br&gt;
launch_tool = Tool(name="LaunchAds", func=push_to_meta_api, description="...")&lt;br&gt;
read_perf_tool = Tool(name="ReadPerformance", func=fetch_ga4_and_ads_data, description="...")&lt;/p&gt;

&lt;p&gt;agent = initialize_agent(&lt;br&gt;
    tools=[inspect_tool, generate_tool, launch_tool, read_perf_tool],&lt;br&gt;
    llm=OpenAI(model="gpt-4o"),&lt;br&gt;
    agent="zero-shot-react-description",&lt;br&gt;
    verbose=True&lt;br&gt;
)&lt;/p&gt;

&lt;h1&gt;
  
  
  Goal: improve CTR for campaign X by 15% in 7 days
&lt;/h1&gt;

&lt;p&gt;agent.run("Inspect current ads for campaign X, generate 20 variants, launch top 10, monitor for 48h, pause bottom 5, iterate.")&lt;/p&gt;

&lt;p&gt;You schedule this weekly. It runs, logs every decision, and emails the account manager a summary with approval links for any high-spend changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Business and engineering constraints
&lt;/h2&gt;

&lt;p&gt;Agencies are shifting from hourly execution to outcome-based or productized services. That means your agents need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Transparent logs and override mechanisms so account managers trust the system.&lt;/li&gt;
&lt;li&gt;Strong brand knowledge integration to avoid generic, commoditized creative.&lt;/li&gt;
&lt;li&gt;A realistic adoption strategy: start with one high-variance, high-volume workflow (creative testing, reactivation campaigns) instead of trying to automate the entire funnel on day one.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Risk of weak brand knowledge is real. If your agent doesn't know what makes a client's brand distinct, it'll produce output that looks like everyone else's. Invest in the knowledge layer first.&lt;/p&gt;

&lt;h2&gt;
  
  
  One takeaway
&lt;/h2&gt;

&lt;p&gt;If you build one thing in 2026, build a creative testing agent. It's high-impact, low-risk, and you can ship it in a week. The agency that learns to productize this workflow will eat the lunch of agencies still treating AI as a copywriting toy.&lt;/p&gt;

&lt;p&gt;What's the first agent workflow you'd tackle? Drop a comment.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>marketing</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Three AI Agents That Actually Write Code for You (and How to Use Them)</title>
      <dc:creator>Zaid Hossain</dc:creator>
      <pubDate>Wed, 15 Jul 2026 23:46:00 +0000</pubDate>
      <link>https://dev.to/zaid_hossain_4815f41c7d7c/three-ai-agents-that-actually-write-code-for-you-and-how-to-use-them-5a5c</link>
      <guid>https://dev.to/zaid_hossain_4815f41c7d7c/three-ai-agents-that-actually-write-code-for-you-and-how-to-use-them-5a5c</guid>
      <description>&lt;h2&gt;
  
  
  I got tired of copy-pasting snippets from ChatGPT
&lt;/h2&gt;

&lt;p&gt;If you're still bouncing between your editor and a chat window, asking an LLM for code and then manually wiring it into your project, you're doing it the hard way. In 2026, &lt;strong&gt;AI agents&lt;/strong&gt; have matured into tools that read your entire codebase, propose multi-file changes, and execute commands on your behalf. They don't just autocomplete—they plan, edit, test, and iterate.&lt;/p&gt;

&lt;p&gt;I've been testing three agents that plug directly into real workflows: GitHub Copilot with GPT-5.6, Cursor, and Windsurf. Here's what they do and when to reach for each one.&lt;/p&gt;

&lt;h2&gt;
  
  
  What an AI agent actually means now
&lt;/h2&gt;

&lt;p&gt;An agent isn't just a better autocomplete. It's a system that can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Read thousands of lines of your project to understand structure and conventions&lt;/li&gt;
&lt;li&gt;Generate a step-by-step plan for a feature or refactor&lt;/li&gt;
&lt;li&gt;Edit multiple files simultaneously&lt;/li&gt;
&lt;li&gt;Run tests, builds, or migrations and react to failures&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Under the hood, they use frontier models like GPT-5.x, Claude Sonnet, and Gemini 2.0. The key difference from chat tools is execution: these agents live inside your editor or terminal and can act on your codebase without you shuttling text back and forth.&lt;/p&gt;

&lt;h2&gt;
  
  
  GitHub Copilot with GPT-5.6: the embedded option
&lt;/h2&gt;

&lt;p&gt;GitHub Copilot shipped support for the GPT-5.6 family—Sol, Terra, and Luna—across VS Code, JetBrains, Xcode, the CLI, and GitHub.com itself. You pick the model variant in your editor's Copilot panel.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sol&lt;/strong&gt; is the heavyweight: use it for deep refactors where the agent needs to map dependencies across a monorepo and propose architectural changes. I used Sol to extract a shared package from a tangled TypeScript workspace. It read the import graph, suggested a migration plan, and generated a draft PR with file moves and updated &lt;code&gt;tsconfig&lt;/code&gt; references.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Terra&lt;/strong&gt; handles everyday coding—adding endpoints, fixing bugs, writing tests. &lt;strong&gt;Luna&lt;/strong&gt; is fast and cheap for quick fixes.&lt;/p&gt;

&lt;p&gt;You'll need a Copilot Business or Enterprise plan to access Sol and Terra in most IDEs; individual plans are rolling out. Setup is straightforward if you already have Copilot installed: just update your extension and select a model.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cursor: agent workflows in a familiar editor
&lt;/h2&gt;

&lt;p&gt;Cursor is a fork of VS Code with agentic features baked in. &lt;strong&gt;Cursor Tab&lt;/strong&gt; gives you diff-style autocomplete that can rewrite entire functions. The &lt;strong&gt;chat and task panel&lt;/strong&gt; lets you describe a feature, and Cursor will propose a plan, edit multiple files, and run commands.&lt;/p&gt;

&lt;p&gt;I used Cursor to implement a REST endpoint in a Python/FastAPI service. I pasted an issue description into the task panel. Cursor scanned the project, suggested adding a handler in &lt;code&gt;api/routes.py&lt;/code&gt;, a schema in &lt;code&gt;models.py&lt;/code&gt;, and tests in &lt;code&gt;tests/test_routes.py&lt;/code&gt;. It generated all three, ran &lt;code&gt;pytest&lt;/code&gt;, caught a type mismatch, and fixed it in the next iteration.&lt;/p&gt;

&lt;p&gt;Cursor supports Claude Sonnet and recent OpenAI models. It has a free tier with rate limits and a Pro plan for heavier use. The IDE layer is polished, so if you're comfortable in VS Code, the learning curve is minimal.&lt;/p&gt;

&lt;h2&gt;
  
  
  Windsurf: purpose-built for agent sessions
&lt;/h2&gt;

&lt;p&gt;Windsurf is a new editor built from the ground up for agentic workflows. When you start a task, it generates a visible step-by-step plan, then calls a frontier model to execute each step—writing code, running terminal commands, reading compiler errors, and iterating.&lt;/p&gt;

&lt;p&gt;I pointed Windsurf at a full-stack repo and asked it to add a dark-mode toggle to a React frontend, wire it to a user preference in the backend, and update docs. It laid out a plan (modify &lt;code&gt;App.tsx&lt;/code&gt;, add a Zustand store, create a PUT endpoint, update &lt;code&gt;README.md&lt;/code&gt;), executed each step, ran &lt;code&gt;npm test&lt;/code&gt;, and surfaced the diffs for review.&lt;/p&gt;

&lt;p&gt;Windsurf runs on Linux, Mac, and Windows. Setup is a fresh install (it's not a VS Code fork), but it imports your existing extensions and settings. The agent session UI is more explicit than Cursor's, which I found helpful for reviewing plans before committing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Picking the right agent for the job
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Agent&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Best for&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Pricing&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Friction&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GitHub Copilot&lt;/td&gt;
&lt;td&gt;Teams already on GitHub, monorepos&lt;/td&gt;
&lt;td&gt;Business/Enterprise for Sol&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cursor&lt;/td&gt;
&lt;td&gt;Solo devs, polyglot projects&lt;/td&gt;
&lt;td&gt;Free tier + Pro ($20/mo)&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Windsurf&lt;/td&gt;
&lt;td&gt;Greenfield work, explicit workflows&lt;/td&gt;
&lt;td&gt;Free beta, pricing TBA&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;All three respect language conventions if your project has linters and formatters configured. Copilot integrates tightly with GitHub Actions and pull requests. Cursor feels more IDE-native. Windsurf makes the agent's reasoning visible, which I prefer when refactoring legacy code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping agents from breaking things
&lt;/h2&gt;

&lt;p&gt;Letting an agent edit code and run commands can go sideways. Here's my checklist:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Always work on a branch.&lt;/strong&gt; Never point an agent at &lt;code&gt;main&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review the plan before execution.&lt;/strong&gt; All three tools show you what they're about to do—read it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run tests after every agent session.&lt;/strong&gt; If your suite is slow, run a subset.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Audit terminal commands.&lt;/strong&gt; Don't let an agent run &lt;code&gt;rm -rf&lt;/code&gt; or install packages without confirmation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use &lt;code&gt;.gitignore&lt;/code&gt; and &lt;code&gt;.cursorignore&lt;/code&gt; (or equivalent) to hide secrets.&lt;/strong&gt; Agents shouldn't read &lt;code&gt;.env&lt;/code&gt; files.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I treat agent output like a junior dev's PR: useful, but it needs a human review.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try one this week
&lt;/h2&gt;

&lt;p&gt;If you're already using Copilot, flip on Sol or Terra for your next refactor and compare it to your usual workflow. If you want more control, install Cursor and point it at a side project. If you like seeing the agent's reasoning, grab Windsurf and walk it through a feature from scratch.&lt;/p&gt;

&lt;p&gt;Which of these have you tried, or are you sticking with plain autocomplete?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>github</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
