AI-Powered Code Generation for Support Team Bug Fixing

zapier · Tech · 2025 · source Agentic: yes · promotional bias: med · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Support-led integration bug fixing

Zapier faced app erosion across thousands of third-party integrations, with API changes and deprecations creating bugs faster than engineering could resolve them.

Constraints:

Architecture

Zapier Scout Agent turns support-reported integration bugs into code-fix merge requests: it categorizes the issue, assesses fixability, gathers context through MCP tools, generates code, loops on support feedback, and sends the MR to engineering review.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  support-issue-intake["Support issue intake"]
  categorization-step["Categorization step"]
  fixability-assessment["Fixability assessment"]
  scout-agent["Scout Agent"]
  scout-mcp-tools["Scout MCP tools"]
  code-generation-tool["Code generation tool"]
  gitlab-merge-request["GitLab merge request"]
  support-review["Support review"]
  engineering-review["Engineering review"]
  support-issue-intake --> categorization-step
  categorization-step --> fixability-assessment
  fixability-assessment --> scout-agent
  scout-agent --> scout-mcp-tools
  scout-agent --> code-generation-tool
  code-generation-tool --> gitlab-merge-request
  scout-agent --> gitlab-merge-request
  gitlab-merge-request --> support-review
  support-review --> scout-agent
  support-review --> engineering-review
  engineering-review --> support-issue-intake
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Support issue intake Receives app bugs and customer reports from Zapier support. Categorization step
Categorization step Classifies issue type before attempting a fix. Fixability assessment
Fixability assessment Determines whether a support issue is suitable for code generation. Scout Agent
Scout Agent Orchestrates diagnosis, code generation, feedback handling, and MR creation. Scout MCP tools, Code generation tool, GitLab merge request
Scout MCP tools Provide diagnosis APIs, context gathering, and integration-specific tools. Scout Agent
Code generation tool Produces app-fix code for target integrations. GitLab merge request
GitLab merge request Carries the generated fix and accepts review feedback. Support review, Engineering review
Support review Tests whether the fix addresses the customer need. Scout Agent, Engineering review
Engineering review Maintains code-owner safety before shipping support-led fixes. Support issue intake

Data flow

Support issues flow through categorization and fixability assessment into Scout Agent, which orchestrates diagnosis tools, code generation, GitLab MRs, support testing, and engineering review.

3 supporting quotes
“what if we combined them and created an agent to orchestrate this. So this we are calling scout agent.”transcript, stated
“We first categorize the issue. We next assess its fixability. Not every issue that comes from support can be fixed.”transcript, stated
“They'll review and test. If it's not satisfying what they believe is the actual solution or the the what what the solution should be to best address the customer's need, they will make a request for an adjustment”transcript, stated

Why this architecture

The architecture targets app erosion from thousands of third-party APIs, while guardrails keep support-led fixes narrow and reviewable.

“At Zapier, we have over 8,000 integrations built on thirdparty APIs, and they are constantly changing, which I'm now thinking of as app erosion.”transcript, stated
“We started with just four target apps to uh focus our fixes on. engineering was set to review any merge requests coming from support and we kept the focus on app fixes.”transcript, stated

Models used: code generation model · LLM-backed diagnosis tools

Scale

Alternatives considered (roads not taken)

Standalone diagnosis API outside the workflow

Rejected because: The team embedded diagnosis and code generation in Scout Agent because a separate window saw low engagement.

“Now this is just one more window to go to. So we didn't get a lot of engagement”transcript, implied

Open-ended support code generation across all apps

Rejected because: The first rollout focused on four target apps with engineering review for every merge request.

“We started with just four target apps to uh focus our fixes on. engineering was set to review any merge requests coming from support and we kept the focus on app fixes.”transcript, stated

Diagnose synchronously inside an IDE loop

Rejected because: The slow but valuable diagnosis tool fits better inside an asynchronous agent workflow.

“One of our uh our our key tool diagnosis uh is so valuable to pull all that context and to provide a recommendation, but it takes a long time to run.”transcript, stated

Engineering team as the first customer

Rejected because: Zapier started with support because support sees small emergent app bugs first.

“we were thinking it should probably be the the team fielding small bugs that are emergent and coming hot off the queue which is the support team.”transcript, stated

Patterns

tool-use-orchestration (orchestration)

Scout Agent coordinates diagnosis, categorization, fixability assessment, code generation, MR creation, and feedback iteration.

“what if we combined them and created an agent to orchestrate this. So this we are calling scout agent.”transcript, stated

human-in-the-loop-gate (safety)

Support reviews and tests generated merge requests, then engineering reviews them before production code is accepted.

“They'll review and test. If it's not satisfying what they believe is the actual solution or the the what what the solution should be to best address the customer's need, they will make a request for an adjustment”transcript, stated

confidence-thresholding (evaluation)

The agent explicitly assesses whether an issue is fixable before attempting to generate a merge request.

“We first categorize the issue. We next assess its fixability. Not every issue that comes from support can be fixed.”transcript, stated

eval-driven-development (evaluation)

Zapier turns processed tickets and feedback into test cases to improve Scout Agent over time.

“As we get more feedback and process more tickets, those become our test cases and we can move forward improving scout agent over time.”transcript, stated

Tradeoffs

Who should be the first Scout Agent customer.

Chose the support team handling small emergent app bugs over starting with broader engineering teams or complex fixes.

Rationale: Support was closest to the incoming small bugs and already needed a way to move faster through triage.

“we were thinking it should probably be the the team fielding small bugs that are emergent and coming hot off the queue which is the support team.”transcript, stated

How to safely let support ship code.

Chose limited app-fix scope with engineering review over open-ended support changes across the whole codebase.

Rationale: Initial guardrails limited target apps and kept engineering review on every support-generated merge request.

“We started with just four target apps to uh focus our fixes on. engineering was set to review any merge requests coming from support and we kept the focus on app fixes.”transcript, stated

Gotchas (what bit them)

Integration maintenance is a continuous erosion problem.

Root cause: Third-party APIs change and deprecate across a long-lived integration ecosystem.

Resolution: Empower support to fix smaller app bugs and use Scout Agent to automate diagnosis and MR generation.

“At Zapier, we have over 8,000 integrations built on thirdparty APIs, and they are constantly changing, which I'm now thinking of as app erosion.”transcript, stated

Standalone AI APIs saw low engagement when they lived outside the workflow.

Root cause: Support and engineers had to leave their normal tools and visit another interface.

Resolution: Embed diagnosis APIs into Zaps, MCP tools, and eventually Scout Agent.

“Now this is just one more window to go to. So we didn't get a lot of engagement”transcript, implied

Slow diagnosis tools frustrated synchronous IDE workflows.

Root cause: The valuable context-gathering diagnosis step could take a long time to run.

Resolution: Move from user-driven tool use toward an orchestrated agent that can do work before support picks up the ticket.

“One of our uh our our key tool diagnosis uh is so valuable to pull all that context and to provide a recommendation, but it takes a long time to run.”transcript, stated

Evaluation

Zapier evaluates Scout Agent with categorization and fixability evals, feedback-derived test cases, generated-fix share, and support-team velocity changes.

Metrics: 75% accuracy for categorization and fixability evals · 40% of support-team app fixes generated by Scout · some support members increased from one to two tickets per week to three to four

“so far we have two eval to 75% accuracy for categorization and fixibility.”transcript, stated
“40% of supports support teams app fixes are being generated by scout.”transcript, stated

Outcomes

Auto-caption transcript; the project is concrete, but several metrics are spoken informally and should be treated as directional.

“That's going from a support team that wasn't shipping any fixes, well unofficially they were sometimes to now shipping one to two per week per person to now shipping three to four with the help of Scout.”transcript, stated