Macha

How to Set Up a Custom Webhook Trigger for Your AI Agent

Macha Team

Written by

Macha Team

Last edited June 12, 2026

Zendesk Expert Reviewed

Verified

Most of the time, Macha's built-in triggers (a new Zendesk ticket, a status change) are all you need. But sometimes you want finer control over when an agent fires — based on conditions only your helpdesk knows — or you want to fire an agent from a system that isn't a built-in connector. That's what custom webhook triggers are for. There are two flavors, and both are straightforward.

How to Set Up a Custom Webhook Trigger for Your AI Agent

Watch it

Search the Add Triggers menu for “webhook” — Custom Webhook (a Zendesk trigger URL) and Custom Webhook Trigger (callable from any external system), shown on the Ticket + Docs Context agent.
Search the Add Triggers menu for “webhook” — Custom Webhook (a Zendesk trigger URL) and Custom Webhook Trigger (callable from any external system), shown on the Ticket + Docs Context agent.

Flavor 1 — a custom Zendesk webhook (for fine control)

Say you've built an auto-classifier agent that should re-classify a ticket on every new customer message — and you want to control exactly which tickets reach it using Zendesk's own conditions. Here's the flow:

  1. On the agent, go to Triggers → Add Trigger, scroll down, and select Custom Webhook.
  2. Read the instruction it shows you. This is the key bit: Macha has already created the webhook on your Zendesk instance for you. All you have to do is create a Zendesk trigger that fires it.
  3. Go to Zendesk → Admin → Triggers and create a Zendesk trigger. Set whatever conditions you want (the tickets it should match), and add the action to fire the webhook Macha created.

Now Zendesk's trigger conditions decide which tickets hit your agent — giving you precise, helpdesk-native control that the built-in triggers don't expose. (This pairs closely with stopping infinite loops, since you control the conditions.)

Flavor 2 — a universal webhook (for any system)

What about a system that isn't one of Macha's connectors at all? Use the Macha Custom Webhook trigger:

  1. On the agent, go to Triggers, remove any event trigger you don't want, and add the Macha Custom Webhook trigger (scroll to the bottom of the list).
  2. Toggle it on, and Macha gives you a webhook URL — copy it.
  3. Point your external system at that URL. Whenever your system fires an event to it, the agent is listening and starts working, with the event's data as context.

That's the universal escape hatch: any tool that can send an HTTP request — Zapier, Make, a custom backend — can now start your agent.

Which flavor do you need?

SituationUse
You want Zendesk-native control over which tickets fire the agentCustom Zendesk webhook (Zendesk trigger → Macha's webhook)
You want to fire the agent from a non-connector systemMacha Custom Webhook (copy the URL, point your system at it)

A note on cost and loops

Because a custom webhook can fire often (every customer message, every external event), it's exactly the kind of trigger that can overfire or even loop. Two guardrails:

  • Scope the conditions tightly (in Zendesk or your system) so only the right events reach the agent — this also keeps credit usage down.
  • Prevent loops when an agent's own action could re-fire the trigger — the standard fix is to tag processed tickets and exclude tagged tickets in the trigger conditions. Full detail in how to stop an agent from infinitely looping.

Frequently asked questions

What's a custom webhook trigger? A trigger fired by a webhook — either a Zendesk trigger you configure (for fine control) or any external system pointing at a Macha webhook URL.

Do I have to create the webhook in Zendesk myself? No — Macha creates the webhook on your Zendesk instance automatically. You just create a Zendesk trigger that fires it.

How do I fire an agent from a non-connector app? Add the Macha Custom Webhook trigger, copy the URL it gives you, and point your system at it.

Why use a custom webhook instead of a built-in trigger? For finer control over which events fire the agent (via Zendesk conditions), or to trigger from systems Macha doesn't have a connector for.

Can this cause loops? It can if the agent's action re-fires the trigger — scope conditions tightly and tag processed tickets to prevent it.

The bottom line

Custom webhook triggers give you control the built-in triggers don't: a Zendesk webhook (Macha makes it; you point a Zendesk trigger at it) for fine-grained, condition-based firing, or a universal Macha webhook URL for any external system. Scope them carefully, guard against loops, and you can fire an agent from almost anything.

Wire up a custom trigger: fire your agent exactly when you want. 7-day free trial, no credit card required. Start free.

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.