Macha

How to Answer Product Availability Questions Automatically (Without Guessing at Stock)

Abbas, Customer Support & AI, Macha

Written by

Ankeet Guha, Co-founder & CTO, Macha

Reviewed by

Published July 27, 2026

Updated July 27, 2026

"Is the Comfort Hoodie in size L in stock?"

How to Answer Product Availability Questions Automatically (Without Guessing at Stock)

It's one of the most common questions an ecommerce support team gets — and one of the most annoying to answer well. The customer can't tell from the product page. Your agent has to leave the helpdesk, open Shopify admin, search the catalog, find the right variant, read the inventory number, switch back, and type a reply. Multiply that by a few hundred tickets a week and you've turned a 10-second lookup into a real chunk of your team's day. Worse, if someone answers from memory or a stale spreadsheet, you've just promised stock you don't have.

Stock availability sits among the most common pre-purchase questions ecommerce teams field — alongside sizing and the post-purchase "where's my order?" Shopify's own guidance groups stock, sizing, fit, and delivery as the high-intent questions where a slow answer kills the sale, and it flags exactly this kind of high-volume, low-complexity query as the first thing to automate. The ecommerce-support vendors agree on the prize: Gorgias positions its AI agent to "resolve up to 60% of inquiries instantly" — the bulk of which are repetitive lookups like stock, returns, and order status (note "up to" is a ceiling; Gorgias's own case studies land closer to the 26–56% range, so treat 60% as a best case, not a baseline). This post walks through how to answer product availability questions automatically by building a Macha agent that reads the ticket, checks your live Shopify inventory, and replies in your existing helpdesk — no human in the loop for the easy cases, and a clean handoff for the rest.

A quick framing note before we build: Macha is not a helpdesk. It's an AI agent layer that sits on top of the Zendesk, Freshdesk, Gorgias, or Front you already run. You keep your helpdesk; Macha gives it agents that can actually take actions — like querying Shopify and posting the reply back on the ticket.

Why "is it in stock?" is harder to automate than it looks

A generic FAQ bot or a canned macro can't answer this question, because the answer changes by the minute. The correct response depends on three things that a static knowledge base never knows:

  • Which product the customer actually means (they rarely type the exact title — "the grey hoodie," "your comfort one").
  • Which variant — size L vs XL, a specific colour, a particular SKU.
  • The real-time inventory count for that variant, right now.

That's why availability is a tool problem, not a knowledge problem. The agent doesn't need a better article; it needs live read access to your store. Macha's Shopify integration gives it exactly that: Search Products (find the item by title, SKU, vendor, or type) and Get Product (pull full variant detail including inventory levels). Pair those with your Zendesk connection — read the ticket, post the reply — and you have everything the workflow needs.

The availability agent is a close sibling of the order-status ("where's my order") agent — same shape, same Shopify connector, just different read tools. Here's that order-status agent in Macha to show the pattern; the availability build below swaps Get Order for Search Products + Get Product.

The workflow, end to end

Here's the exact shape of the agent we're building. It's a single autonomous flow with one trigger, two Shopify lookups, and one reply.

StepWhereWhat happens
1. TriggerZendeskA new ticket arrives; the agent decides whether it's an availability question
2. Find the productShopifySearch Products matches the customer's wording to a real catalog item
3. Read inventoryShopifyGet Product returns the variants and current stock levels
4. ReplyZendeskThe agent posts a public reply with the answer and a product link, then sets the ticket to Solved

A worked example, drawn straight from the Macha use-case template:

Customer: "Do you have the Comfort Hoodie in size L? I can't tell from the website if it's in stock." Agent (internally): searches Shopify for "Comfort Hoodie" → reads variants → Size L: 12 in stock, Size XL: 3. Agent (reply): "Great news — the Comfort Hoodie in size L is in stock; we have 12 available. You can grab one here: [link]. Anything else I can help with?" Ticket status → Solved.

The whole thing takes seconds and never touches an agent's queue.

Building it in Macha

1. Connect Shopify and your helpdesk

In Connectors, add Shopify (API key) and your helpdesk. The Shopify connector is read-focused for this use case — it needs product and inventory scope, nothing that can mutate your store.

Macha's connectors list, where Shopify and your helpdesk are linked to the workspace.
Macha's connectors list, where Shopify and your helpdesk are linked to the workspace.

2. Create the agent and describe the job

Spin up a new agent and tell it what it's for, in plain language — Macha's builder turns your description into a working configuration you can refine. Something like: "When a customer asks whether a product is in stock or available in a specific size/variant, search Shopify for the product, read the inventory level for the variant they mentioned, and reply with the current availability and a link. If the product is out of stock or you can't confidently match it, don't guess — hand off to a human."

Describing the agent in plain language so Macha can scaffold it.
Describing the agent in plain language so Macha can scaffold it.

3. Attach the tools

This is the part that makes the answer real instead of hallucinated. On the agent's tools tab, attach the Shopify Search Products and Get Product actions, plus your helpdesk's reply action. The agent can only do what you grant it — so it gets read access to the catalog and the ability to post a comment, and nothing more.

Choosing when the agent runs in Macha's Add Triggers panel, with the agent's tool list alongside.
Choosing when the agent runs in Macha's Add Triggers panel, with the agent's tool list alongside.

4. Set the trigger to run autonomously

Point the agent's trigger at Ticket Created in Zendesk. The agent evaluates every new ticket, recognises the availability questions, and handles them; everything else passes through untouched. No human has to route these.

The agent's configuration in Macha — name, model, and description — with its attached tools listed alongside.
The agent's configuration in Macha — name, model, and description — with its attached tools listed alongside.

5. Test before you let it loose

Run it against a few real (or realistic) tickets first and watch what the agent actually does — which product it matched, which variant it read, what it wrote back. Tighten the guidance until the matching is reliable, then enable it on the live queue.

A Macha test run — step through exactly which product the agent matched, the variant inventory it read back from Shopify, and the reply it drafted, before you enable it on the live queue.
A Macha test run — step through exactly which product the agent matched, the variant inventory it read back from Shopify, and the reply it drafted, before you enable it on the live queue.

Getting the answer right, not just fast

A fast wrong answer is worse than a slow right one. A few things to bake into the agent's instructions:

  • Confirm the variant. If the customer says "size L" but the catalog has L in two colourways, have the agent ask one clarifying question rather than guess.
  • Handle out-of-stock gracefully. When the variant is at zero, don't dead-end the customer — offer the back-in-stock option, suggest the nearest available size, or hand off. An out-of-stock reply is a prime moment to recommend an alternative rather than lose the sale — answering the pre-purchase question quickly is what converts intent into an order.
  • Don't promise what you can't see. If Search Products returns nothing confident, the agent should hand off to a human instead of inventing a number. This is the single most important rule.
  • Mind low-stock honesty. "Only 3 left" can drive urgency, but make sure the count is genuinely live — which, because the agent reads it from Shopify at reply time, it is.

When not to use this

This pattern is excellent for the common case and a poor fit for a few others. Be honest about the edges:

  • Bundles, made-to-order, or pre-orders. If availability is governed by component stock, a build queue, or a launch date rather than a simple inventory number, a single Get Product lookup won't capture it. Route these to a human or a more specialised flow.
  • Multi-warehouse / location-specific stock. "Is it available at the Austin store?" depends on which inventory location the customer means. Make sure your Shopify locations are modelled and the agent knows which one applies — otherwise scope it to online stock only and say so.
  • Non-Shopify catalogs. This specific build relies on the Shopify connector. If your inventory lives in an ERP or a custom system, you'd expose it through a custom API tool instead — doable, but a different post.
  • Restock dates and ETAs. Inventory tells you whether something is in stock, not when it's coming back. If customers want dates, the agent needs a separate source of truth for that — don't let it improvise.

The rule of thumb: automate the questions where the answer is a clean lookup, and design the agent to escalate the moment it isn't.

What it costs to run

Macha bills in credits, and a credit is spent per AI action — not per resolved ticket. A typical availability answer is a small handful of actions (read the ticket, search products, read the product, reply), and the credit cost per action depends on the model you choose: roughly 0.5–9 credits by model, with the default GPT-5.4 Mini at 1 credit. Lighter models keep high-volume, low-complexity questions like stock checks cheap — which is exactly the kind of query you want running on a fast, inexpensive model.

You can prove out the whole workflow on the 7-day free trial, no credit card required; see pricing for plan details and credit allowances.

FAQ

Does Macha replace my helpdesk? No. Macha is an AI agent layer on top of Zendesk, Freshdesk, Gorgias, or Front. The customer experience stays in your helpdesk; Macha adds agents that can query Shopify and post replies on the ticket.

How does the agent know real-time stock instead of a cached number? It reads inventory live at reply time via Shopify's Get Product action, which returns current variant-level inventory. There's no static copy to go stale.

What happens if the agent can't find the product? Configure it to hand off rather than guess. If Search Products doesn't return a confident match, the agent should escalate to a human instead of inventing an availability answer — this is the guardrail that keeps the automation trustworthy.

Can it answer order questions too, not just availability? Yes. The same Shopify connector exposes Get Order and Search Orders, so a related agent can handle "where's my order?" tickets. Availability and order-status are natural companion use cases.

Will it work for variants like size and colour? Yes — Get Product returns the full variant list with per-variant inventory, so the agent can answer "size L specifically" rather than just "the hoodie generally." Tell it to confirm the variant when the customer is ambiguous.


Want to see it on your own catalog? Connect Shopify and your helpdesk, build the agent, and test it on real tickets — start with the 7-day free trial, no credit card required. More patterns like this live on the Macha blog and in the docs.

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