Erin Walsh at Ridgeway Robotics wrote in yesterday. Her company’s monthly CSV export has been empty since Monday. Three hours ago she opened a second ticket, because the October invoice still shows their old address. Engineering already knows about the export. The bug is in Jira as OPS-2, In Progress and assigned to Rachel Moore. Two hours ago Rachel said in #eng-escalations that she is looking at it today.
A support agent that picks up Erin’s ticket has three jobs here. It should reply on the CSV ticket, make sure engineering has the bug without filing it twice, and post the escalation in #eng-escalations. Each job is a call or two, and each can go wrong without an error. The agent can answer on the invoice ticket because Zendesk’s search listed it first. It can file OPS-3 next to OPS-2 because its Jira query only looked at To Do. It can write the reply as an internal note Erin never sees. When we recorded the first of these mistakes, the agent made seven calls, and all seven came back 200 or 201.
We turned this situation into a test world and wrote agents that fail it on purpose, one changed line each. The lesson we did not expect came from the checks. Jira serves the same operations under two version numbers, /rest/api/2/ and /rest/api/3/, and the client library picks one for you. A check that names one version can fail an agent that did the right thing and pass one that filed a duplicate. We ran both cases.
The replica row of the comparison below includes Ancha, which is ours.
Three mistakes, no errors
The wrong ticket. Zendesk’s Search API ranks results by relevance unless the request sets sort_by, which makes the top result whichever ticket ranks highest. In our world, the search for Erin’s open tickets put the invoice ticket, #4102, ahead of the CSV ticket, #4101. Code that takes results[0] answers the wrong conversation. Erin finds a note about her export on her billing ticket, and the ticket about the export gets nothing. Sorting by creation date would make the order stable, but it still would not tell the agent which ticket Erin means. Picking the right one means reading the subject or the comments.
The duplicate bug. Jira workflows have many statuses, and each belongs to one of three categories: To Do, In Progress and Done. A JQL clause like status = "To Do" asks about one status. OPS-2 is In Progress, so the query comes back empty, and an agent that files a bug when it finds none files OPS-3. Rachel now has two issues for one bug, and Erin’s report sits on the one nobody is working on. The question the agent meant to ask is whether any open bug exists, and statusCategory != Done asks exactly that.
The reply nobody sees. Zendesk has no endpoint for adding a comment. A reply is a ticket update that carries a comment, and the comment’s public field decides who can read it. If you leave the field out, Zendesk keeps whatever value the ticket started with, for every later comment, until you set the field yourself. On a ticket that began as an internal note, every reply the agent writes stays internal. The update still returns 200, and the customer keeps waiting.
How do I test a support agent without touching our real Zendesk, Jira and Slack?
| Approach | Catches | Misses | Vendor account needed | Tools |
|---|---|---|---|---|
| Mock the SDK clients | Your agent’s logic: which update and comment it sends | What the real API decides: search order, which issues a JQL query matches, who sees a comment | No | Jest, Vitest or pytest mocks around node-zendesk 6.0.1 (December 2024), jira.js 6.4.0 (October 2026), @slack/web-api 8.3.0 (October 2026), zenpy 2.0.57 (February 2026), jira 3.10.5 (July 2025), slack_sdk 3.46.0 (October 2026) |
| Fake or recorded HTTP APIs | The requests your SDK sends. Prism also checks them against Zendesk’s and Jira’s OpenAPI files | Answers that depend on the data: a stub can match the JQL text you expected but does not run it. WireMock’s scenarios switch answers after a call, one state at a time | No | WireMock 3.13.2 (November 2025), Mockoon 9.10.0 (October 2026), Prism 5.16.0 (July 2026), Polly.js 6.0.6 (July 2023), vcrpy 9.4.2 (November 2026) |
| The vendors’ own test environments | Credentials, permissions, rate limiting, search indexing and how the reply reads to the customer | Repeatable runs: what one run writes stays for the next | Yes | A Zendesk sandbox or trial, an Atlassian sandbox or a free Jira site, a Slack developer sandbox |
| Stateful replicas | What the agent changed in each tool: the ticket it answered, a second bug, the message in the channel. Each run starts from the same seed | No | Arga (Jira, Slack), Eon Era (Zendesk, Jira and Slack; read-only), Rystic (Jira, Slack), Veris (Jira and Slack among 70+ twins), emulate (Slack; 0.13.1, November 2026), Ancha (Zendesk, Jira and Slack in one world) |
We looked up each version and release date on November 10, 2026, in the npm and PyPI registries and on GitHub.
We use three of these, each for its own question. Mocks of the clients test the code that writes the reply and decides whether to file a bug. They finish in milliseconds and can catch a misspelled field or a missing public flag. A vendor sandbox gets used once per setup change, to prove the credentials work, the app has its permissions and the reply reads well in a real Zendesk view. A replica runs the whole job, because every mistake above turns on the state the tools start in: a second ticket, a bug in progress, a channel with history. We run each scenario several times. An agent driven by a model can pick the right ticket on one run and the wrong one on the next.
Recorded HTTP sits between mocks and a replica. It shows the exact requests your SDK sends, and Prism can validate them against the OpenAPI files Zendesk and Atlassian publish. It does not run JQL against data. A recording answers the duplicate search the way it answered when you recorded it, whatever the query says.
What Zendesk, Atlassian and Slack give you for testing
Zendesk includes a sandbox with Support Enterprise, and two with Suite Enterprise or Enterprise Plus. Plans from Support Professional or Suite Growth up can buy one. A sandbox can bring over as many as 10,000 production tickets. User emails in the copy end in @example.com, so tests never mail a real customer. For building an integration, Zendesk also offers a free 14-day trial account.
Atlassian sandboxes need a Premium or Enterprise plan. Without one, Jira’s Free plan covers up to 10 users, and Atlassian’s free developer instance includes Jira Software for 5 users. Either is enough to try your agent’s calls against real Jira.
Slack’s developer sandboxes cost nothing extra. Two can be active at once, each holding at most eight users. Each lasts six months by default, or one month for a basic sandbox.
Every one of these keeps what a run leaves behind. After one test, #4101 has a reply, OPS-2 has a comment and #eng-escalations has a new message. The next run starts from there unless you rebuild the tickets, issues and channel first. A check for a second bug means little on a site where the previous run already filed one.
What should a support agent test check?
In a support agent’s run, five things deserve a check. The calls behind each mistake succeed, so every check looks either at the agent’s requests or at what a tool holds when the run ends.
Erin’s answer is on her CSV ticket. One check requires an update to #4101 and another forbids one to #4102. Choosing by content is the fix. Zendesk can also take up to a few minutes to index a new ticket for search. An agent that searches the moment a ticket arrives may not see it at all.
Erin can read the reply. After the run, the ticket’s comments show each comment’s public flag. A reply saved with public set to false is an internal note, however friendly the wording.
There is still one bug. This check fails the run on any call that creates a Jira issue. It works because the world already holds OPS-2. A test that starts from an empty Jira project cannot catch a duplicate, because there is nothing to duplicate. Jira’s enhanced search can also lag behind recent writes. When an agent needs to see an issue it just created or changed, Atlassian’s answer is the reconcileIssues parameter.
The comment on OPS-2 is valid. Version 3 of Jira’s API expects a comment body in Atlassian Document Format, a JSON document, and a plain string gets a 400. jira.js 6 handles a string body by sending it through version 2 instead. That routing matters later in this post.
The escalation is in #eng-escalations, from the bot. If the agent answers inside a thread, the thread_ts it sends has to be the parent message’s ts. Slack’s docs warn against passing a reply’s ts there.
The world and three runs
The world file sets up Zendesk, Jira and Slack as they stand when Erin’s ticket comes up. Zendesk holds her two open tickets. Jira holds project OPS with two bugs, a Safari login loop in To Do and the CSV export In Progress. Slack holds #eng-escalations with Rachel’s message from two hours ago. The tickets and the world’s five checks:
seed:
zendesk:
tickets:
- subject: Monthly CSV export is empty
comments:
- author: erin.walsh@ridgeway-robotics.example
body: "Our monthly CSV export has been empty since Monday."
at: -26h
- subject: Invoice shows the wrong billing address
comments:
- author: erin.walsh@ridgeway-robotics.example
body: "The October invoice still shows our old address."
at: -3h
checks:
- id: replied_on_the_csv_ticket
trace: { called: "PUT /api/v2/tickets/4101*" }
- id: left_the_invoice_ticket_alone
trace: { not_called: "PUT /api/v2/tickets/4102*" }
- id: filed_no_duplicate
trace: { not_called: "POST /rest/api/*/issue" }
- id: commented_on_the_open_bug
trace: { called: "POST /rest/api/*/issue/OPS-2/comment" }
- id: posted_the_escalation
state: { slack.message: { channel: $eng, from: $bot } }
A trace check reads the request log. called needs at least one matching call that worked, which means a status below 400. A state check looks at what a tool holds when the run ends. Tickets and issues get the same ids on every start, so the checks can refer to #4101 and OPS-2 by number. Before any agent runs, two of the five checks already pass, because nothing has touched the invoice ticket and no bug has been filed. Those two are there for an agent that breaks something.
Our agents are plain scripts without a model, so each run shows one mistake and nothing else. Ancha runs each agent three times, rebuilding the world from the seed before every trial. The first agent takes the top search result, const ticket = results[0];:
$ ancha run support-world.yaml --local -n 3
running locally; agent not sealed (network open, 5 variables from this shell)
run_20261110-235944_d18aa14eae9cc361: 3 trials of support-world, 1 at a time
trial 1 ✗ 151ms · 2 checks failed
trial 2 ✗ 121ms · 2 checks failed
trial 3 ✗ 133ms · 2 checks failed
✗ support-world 0/3 (0%)
✗ replied_on_the_csv_ticket failed in 3/3 trials
trial 1: The agent never made a call matching "PUT /api/v2/tickets/4101*". Its calls were: GET /api/v2/search.json, PUT /api/v2/tickets/4102.json, POST /rest/api/3/search/jql, POST /rest/api/3/issue/OPS-2/comment, POST /api/conversations.list, POST /api/chat.postMessage.
✗ left_the_invoice_ticket_alone failed in 3/3 trials
trial 1: The agent made 2 call(s) matching "PUT /api/v2/tickets/4102*" that it must not make: PUT /api/v2/tickets/4102.json (seq 2), PUT /api/v2/tickets/4102.json (seq 5).
fail (minimum pass rate 100%) run run_20261110-235944_d18aa14eae9cc361
The reply is call 2 and the internal note with the issue key is call 5, both on #4102. Everything else went right. The agent found OPS-2, commented on it and posted in the channel, so the Jira and Slack checks passed. ancha explain lists the seven calls with their codes, and every one answered 200 except the Jira comment, which got 201. Judged by status codes, this was a clean run.
The second agent picks the ticket by subject and searches Jira with status = "To Do":
$ ancha run support-world.yaml --local -n 3
running locally; agent not sealed (network open, 5 variables from this shell)
run_20261110-235947_60048874e55077a8: 3 trials of support-world, 1 at a time
trial 1 ✗ 151ms · 2 checks failed
trial 2 ✗ 122ms · 2 checks failed
trial 3 ✗ 125ms · 2 checks failed
✗ support-world 0/3 (0%)
✗ filed_no_duplicate failed in 3/3 trials
trial 1: The agent made 1 call(s) matching "POST /rest/api/*/issue" that it must not make: POST /rest/api/3/issue (seq 4).
✗ commented_on_the_open_bug failed in 3/3 trials
trial 1: The agent never made a call matching "POST /rest/api/*/issue/OPS-2/comment". Its calls were: GET /api/v2/search.json, PUT /api/v2/tickets/4101.json, POST /rest/api/3/search/jql, POST /rest/api/3/issue, POST /api/conversations.list, POST /api/chat.postMessage.
fail (minimum pass rate 100%) run run_20261110-235947_60048874e55077a8
The search at call 3 matched nothing, because OPS-2 is In Progress. The agent filed a new bug at call 4, and Jira answered 201. The reply went to the right ticket and the escalation went out, pointing engineering at the new issue instead of the one Rachel is working on.
With both lines fixed, results.find((t) => t.subject.includes('CSV')) and statusCategory != Done, the agent passes all three trials:
$ ancha run support-world.yaml --local -n 3
running locally; agent not sealed (network open, 5 variables from this shell)
run_20261110-235950_f6576813a60b00d2: 3 trials of support-world, 1 at a time
trial 1 ✓ 143ms
trial 2 ✓ 136ms
trial 3 ✓ 120ms
✓ support-world 3/3 (100%)
pass (minimum pass rate 100%) run run_20261110-235950_f6576813a60b00d2
A pass for the fixed agent and a failure for each broken one tells us the checks test what they claim. Run with --compare against the first broken run, Ancha summed up the change as support-world: 0% → 100% (+100 pp), with both Zendesk checks listed as improved.
A check that names one API version
Jira Cloud serves its REST API under two version numbers. Version 3 expects rich text as Atlassian Document Format, and version 2 takes plain strings. Which one your agent calls depends on its client. Python’s jira package defaults to version 2, and jira.js sends a string comment through version 2. Our Node agent built its own requests and called version 3.
We rewrote the support agent in Python on the jira package and ran it against two copies of the checks. One copy named /rest/api/3/ in its Jira paths. The other used /rest/api/*/, where * matches any run of characters.
With the paths pinned to version 3, both results came out wrong. A correct Python version of the agent commented on OPS-2 through POST /rest/api/2/issue/OPS-2/comment, and Jira answered 201. The check still reported fail commented_on_the_open_bug, because it was waiting for a version 3 call. A short script that filed a duplicate through the same package called POST /rest/api/2/issue, Jira created OPS-3, and filed_no_duplicate passed. A check that a call never happened sees only the calls its pattern names.
With /rest/api/*/, the correct Python agent passed all five checks in three of three trials. The Python agent with the To Do query failed filed_no_duplicate, and the failure named the call: POST /rest/api/2/issue (seq 7).
Any test that matches on URLs has this trap. A stub, a mock server or an assertion written for /rest/api/3/issue does not match a client that posts to /rest/api/2/issue. Write Jira paths so they match the operation in either version, as the world does, and test with the client library your agent uses in production.
Pointing the real clients at a test world
All three clients take their base URL from configuration, and nothing else in the agent changes between the test world and production. node-zendesk takes endpointUri, which overrides the subdomain. jira.js takes the site as host. Slack’s Node client takes slackApiUrl, the prefix it puts in front of every method. This setup ran the support flow against the world and passed all five checks:
import zendesk from 'node-zendesk';
import { createCloudClient } from 'jira.js';
import { WebClient } from '@slack/web-api';
const zd = zendesk.createClient({
username: process.env.ZENDESK_EMAIL,
token: process.env.ZENDESK_API_TOKEN,
// https://<subdomain>.zendesk.com/api/v2 in production
endpointUri: process.env.ZENDESK_API_URL,
});
const jira = createCloudClient({
host: process.env.JIRA_BASE_URL, // https://<site>.atlassian.net in production
auth: {
type: 'basic',
email: process.env.JIRA_EMAIL,
apiToken: process.env.JIRA_API_TOKEN,
},
});
const slack = new WebClient(process.env.SLACK_BOT_TOKEN, {
slackApiUrl: process.env.SLACK_API_URL,
});
In Python, the jira package takes server, and slack_sdk takes base_url. ancha connect slack --lang py prints the Slack line as it appears here:
import os
from jira import JIRA
from slack_sdk import WebClient
jira = JIRA(
server=os.environ['JIRA_BASE_URL'],
basic_auth=(os.environ['JIRA_EMAIL'], os.environ['JIRA_API_TOKEN']),
)
slack = WebClient(
token=os.environ['SLACK_BOT_TOKEN'],
base_url=os.environ['SLACK_API_URL'].rstrip('/') + '/',
)
A client library makes calls you never wrote, and a test should see those too. In the Python agent’s trace, the jira package called GET /rest/api/2/serverInfo when the client was created and GET /rest/api/2/field before its search. When the To Do variant filed its bug, the package fetched the project first, GET /rest/api/2/project/OPS, and read the new issue back afterwards, GET /rest/api/2/issue/OPS-3. A mock of the client never sees those requests. A recording has to hold an answer for each of them.
Try the world with your own agent
The Zendesk sandbox page and the Jira sandbox page each record one of these mistakes, with an agent you can download. To run this world with your own agent, install the CLI on Node.js 24:
npm install -g @ancha-labs/cli
ancha world up --scene support-world.yaml # prints each tool's URL and credentials
ancha check --env <world id>
ancha world down --env <world id>
ancha init --agent "node agent.mjs" # the command that starts your agent
ancha run support-world.yaml --local -n 3
Every tool in that world comes with its own address and credentials. Put those in your agent’s environment, let it work, and ancha check judges that one run. ancha run repeats the job three times from the seed, which is how the outputs above were made.
Questions
Does Zendesk have a free sandbox?
Only with the Enterprise tiers. Support Enterprise includes one sandbox, and Suite Enterprise or Enterprise Plus include two. Plans from Support Professional or Suite Growth up can buy one. For trying an integration, Zendesk offers a free 14-day trial account.
Can I test a Jira integration on a free site?
Yes. Jira’s Free plan covers up to 10 users, and Atlassian’s free developer instance includes Jira Software for 5 users. Atlassian sandboxes need a Premium or Enterprise plan.
Why does my agent file duplicate Jira bugs?
Check its search first. A clause on the To Do status misses a bug that is In Progress, so the agent finds nothing and files again. Search with statusCategory != Done to match every open status, and pass reconcileIssues when the agent needs to see an issue it just changed.
How do I post a Zendesk comment as an internal note?
Send the comment inside a ticket update and set its public field to false. Zendesk has no separate endpoint for comments, and a comment without the field takes the value the ticket started with.