Macha

How to Build an AI Support Agent with Gemini (and Google's ADK)

Abbas, Customer Support & AI, Macha

Written by

Ankeet Guha, Co-founder & CTO, Macha

Reviewed by

Published July 30, 2026

Updated July 30, 2026

Gemini is a strong, cost-effective model for support, and Google now has a proper framework to build agents on it: the Agent Development Kit (ADK), a code-first, open-source toolkit with real multi-agent orchestration. If you want an agent that reads a ticket, pulls the customer's order, answers from your help center, and escalates the tricky ones, Gemini + ADK will get the brain built quickly. This guide shows how — honestly — including the deploy, integration, and evaluation work that stands between an ADK script and something you'd let answer a customer, and where a platform ships that faster.

How to Build an AI Support Agent with Gemini (and Google's ADK)

What a support agent has to do

The job is a loop: understand the ticket, fetch context (customer, orders, the right help-center article) via function calls, act (reply, tag, escalate), and know when to hand off. Gemini handles the reasoning; ADK gives you the loop and tools; the rest is yours or a platform's. (Weighing build-vs-buy first? See our AI agents for customer service overview.)

Option 1: Build it with the Agent Development Kit

Google's ADK is the code-first way to build on Gemini — Python (also Go, Java, TypeScript), with a tool ecosystem and graph-based multi-agent orchestration. Install (pip install google-adk) and a support agent is compact:

from google.adk.agents import Agent

def get_customer(email: str) -> dict:
    """Look up a customer by email."""
    return db.get_customer(email)

def search_kb(query: str) -> list[str]:
    """Return the top help-center passages for a query."""
    return kb.search(query, k=3)

def reply_to_ticket(ticket_id: str, body: str) -> dict:
    """Post a public reply on a ticket."""
    return zendesk.reply(ticket_id, body)

support_agent = Agent(
    name="support",
    model="gemini-2.5-pro",
    instruction=("You are Acme's support agent. Answer from the help center; "
                 "escalate refunds over $100 to a human."),
    tools=[get_customer, search_kb, reply_to_ticket],
)

ADK wraps your plain Python functions as tools automatically, runs the Gemini function-calling loop, and — its real strength — lets you compose a team of agents (a triage agent delegating to billing/shipping specialists) as a graph. The ADK docs and Gemini function calling are the primary references. To run it on live tickets you still wrap it in a trigger — a webhook your help desk calls per new ticket.

Where Claude Code and Codex help

Both coding agents write ADK fluently — the tools, the agent graph, the help-desk client — from a description, then you refine. They compress the code; they don't decide your tools, guardrails, or escalation, or run it in production.

What Gemini + ADK still leaves you to own

ADK gives you the loop, tools, and multi-agent orchestration. The honest remainder:

  • Connect your help desk. ADK has tools, but a production agent needs a real Zendesk/Freshdesk/Intercom client — OAuth, pagination, rate limits — and a webhook to trigger per ticket, with signature verification and idempotency. Yours to build.
  • Host and run it 24/7. You can self-host the ADK app, or go managed on Google's Agent Engine / GKE — but that's an all-in Google Cloud commitment (Agent Engine, IAM, the GCP bill and learning curve). Either way it's real infra.
  • Evaluate it. ADK has eval hooks, but you still assemble the test set of real tickets and decide what "good" means, and run it before every change.
  • Maintain it. Model updates, help-desk API changes, KB re-indexing — and Google renames and reshapes this stack fast (Vertex AI Agent Builder just became the Gemini Enterprise Agent Platform), so you track that too.
Macha's Custom Tools turn any REST API into an agent tool — define the endpoint and auth or let the AI builder create it from a sentence — so connecting your help desk and internal systems isn't a client you build and host.
Macha's Custom Tools turn any REST API into an agent tool — define the endpoint and auth or let the AI builder create it from a sentence — so connecting your help desk and internal systems isn't a client you build and host.

Option 2: Bring Gemini, skip the plumbing

You've built the brain with ADK. Macha is the infrastructure layer — and because it's model-agnostic, you can run Gemini on it without adopting Google Cloud wholesale:

  • Help-desk-native + any API — connect your help desk as a native connector (Zendesk, Freshdesk, Front, Intercom, HubSpot, Help Scout, Salesforce, Jira Service Management, Pylon); Custom Tools turn any REST API into a capability from a sentence — no client, no webhook to host.
  • Run + observe — agents run in the cloud triggered by tickets; agent analytics show every run and tool call.
  • Grade itStudies run the agent against a batch of real historical tickets and score outcomes, so a change is measured, not guessed.
Macha's Studies run an agent across a batch of real historical tickets and score the outcomes — the eval harness you'd otherwise assemble and run yourself.
Macha's Studies run an agent across a batch of real historical tickets and score the outcomes — the eval harness you'd otherwise assemble and run yourself.

Gemini + ADK vs. a platform

ConcernGemini + ADK from scratchGemini + Macha
ModelGeminiGemini (or any model)
Agent loop + multi-agentADK (yours to build with)Built in
Help-desk + API toolsYou build the client + webhookNative connector or Custom Tools
Hosting 24/7Self-host or Agent Engine (GCP)Runs in the cloud, no GCP needed
Observability + evalYou wire + run itAgent Analytics + Studies
Time to productionWeeks + ongoingDays

So which should you build?

Build with ADK if you want code-first control, sophisticated multi-agent graphs, or you're already committed to Google Cloud and want agents governed on the Gemini Enterprise Agent Platform — it's genuinely powerful there. (Our from-scratch vs. platform breakdown covers that trade in full.) Choose a platform when resolving support is the goal and you'd rather not own the help-desk plumbing, hosting, and eval stack — or adopt Google Cloud just to ship a support agent. You can start free on Macha, keep Gemini as your model, and connect your help desk in minutes.

FAQ

Can I build a support agent in the Gemini app? No — the consumer Gemini app can't sit on your help desk and act on tickets. A real support agent is built on the Gemini API (with ADK) or a platform.

Do I need Google Cloud / Vertex to use ADK? ADK itself is open-source and runs anywhere; you only need Google Cloud if you want the managed deploy (Agent Engine/GKE) and governance. You can run Gemini via the API without going all-in on GCP — or run it on a model-agnostic platform.

Does Claude Code or Codex build the whole ADK agent? They'll scaffold the tools and agent graph fast. They won't make the product decisions or host, monitor, and evaluate the agent in production.

How do I know it's good before it touches customers? Grade it against real historical tickets with automated scoring, and re-run before every change — via ADK's eval hooks plus your own harness, or a platform's Studies.

Macha

About Macha

Macha is an AI agent platform that works on top of the help desk you already use — Zendesk, Freshdesk, Gorgias, or Front — and connects to the rest of your stack, even your own internal systems. Its AI agents resolve tickets and automate entire workflows end to end, all set up in plain English, no code. Learn more about Macha →

Zendesk
5.0 on Zendesk Marketplace

Loved by support teams worldwide

See what support teams are saying about Macha AI.

The application seems excellent to me! We are still testing, and we need support for some details and they were extremely efficient too!

Daniela Costa

Daniela Costa

Head of Support, Seabra

Macha has been a great addition to our support toolkit. It generates clear, well-organized responses that fit naturally into our workflow. One feature we particularly appreciate is its ability to automatically reply in the same language as the ticket.

Marius F

Marius F

Support Head, Zentana

We've been using Macha for a little while now and it's been really great addition so far! It's powerful, convenient, and makes getting work done a lot easier for our agents.

Alexander Wedén

Alexander Wedén

Head of Support

Support team is very helpful and responsive. Really enjoy how lightweight this is within Zendesk itself vs other more intrusive tools.

Cathleen Wright

Cathleen Wright

Zendesk Admin, Cortex IO

So far it's pretty good! Our queries are a little nuanced, so we can't always use it, but it's got enough utility for us. It can even incorporate our bilingual country with greetings in a second language.

Jae Oliver

Jae Oliver

Head of Support, Wise

Really enjoying using Macha, it has made a noticeable difference to our support team in a short amount of time. I really like the ticket summary feature, saves us a lot of time.

Harry Jackson

Harry Jackson

Head of Support, Crumb

Macha AI is a great addition to my workspace! It's powerful, convenient, and it really makes productivity so much easier for our agents!

Dave G

Dave G

Head of Support, Cyber Power Systems

Very impressed! AI integration for Zendesk has certainly come a long way and Macha seems to set the standard for now. This will for sure save lot of time in our support team.

Pauli Juel

Pauli Juel

Head of CS, Dokument24

Macha has been working great for us so far! The auto-responses are accurate and our resolution time has dropped significantly.

Lana T

Lana T

Zendesk Admin, Swotzy

Macha AI is a great addition. The knowledge base feature means our agents always have the right answers at their fingertips.

Mischa Wolf

Mischa Wolf

Head of Support, Topi

We're enjoying this integration so far. It's made our support team more efficient and our customers get faster responses.

Paula G

Paula G

Head of Customer Support, Xly Studio

The team enjoys using it. It saves considerable time on common questions and the integration options are excellent.

Kilian Leister

Kilian Leister

Support Head, Didriksons

Ready to supercharge your team with AI?

Get started in minutes. Connect your tools, configure your agents, and let AI handle the rest.

500 free credits · no time limit, no credit card