# How Can a Helpdesk Summarize the Jam Recording in Each Support Ticket? One Agent per Support Team, Signed Into Its Own Jam

Helpdesk software makes one agent per support team, signed into that team's Jam, that turns the Jam link in each new ticket into steps, errors and failed requests.

[Run this on Rush](https://cloud.getrush.ai/run/summarize-the-bug-recording-in-each-ticket/jam/). Opens the console with this prompt ready to send. Connect Jam there first.

## What the agent does

This is for a company that sells helpdesk software to SaaS companies' support teams. Many of those teams ask customers to record a bug with Jam, and the ticket arrives with a jam.dev link and one line: "it broke again". Before anyone can route the ticket, a support agent opens the recording, watches it, scrolls the console tab and finds the request that failed. The helpdesk company saves one agent as a template that names Jam, and makes one agent from it per support team, signed into that team's own Jam workspace, so each team's recordings are read only by its own agent.

The helpdesk connects its own Jam first with `POST /me/connections {"type": "mcp", "name": "jam", "url": "https://mcp.jam.dev/mcp", "auth": {"mode": "oauth"}}` and saves the template naming `jam`. When a team turns on the Jam add-on, the backend calls `POST /o/{org}/agents {"template": "<template id>", "name": "jam-<team id>"}`, then `POST /o/{org}/agents/{agent}/connections {"type": "mcp", "name": "jam"}`, and opens the `authorize_url` for the team's admin, who signs in on Jam's page. Jam's docs say its MCP server exposes only what that Jam account can already see, and that connected clients can be reviewed and revoked under Settings → MCP in Jam.

On a run the agent calls `getDetails` on the Jam from the ticket for its creator, type and the page it was recorded on. It calls `getUserEvents` for the clicks, inputs and page navigations in plain language, which become the steps to reproduce. It calls `getConsoleLogs` filtered to errors and `getNetworkRequests` filtered to 4xx and 5xx statuses, and keeps the request method, host, path and status of each failure. For a video Jam it reads `getVideoTranscript` for what the customer said while recording; for a screenshot Jam it reads `getScreenshots`. When `getMetadata` holds custom values the customer's app set through Jam's SDK, such as an account or plan id, it includes them.

It returns a structured summary for the helpdesk to post as an internal note: steps to reproduce, the first failed request, console errors in order, and a one-line guess at which product area the bug belongs to, from the page path, for routing. The agent writes nothing in Jam and nothing to the customer. The template's instructions forbid `createComment`, `updateJam`, `deleteJam` and every other write tool Jam lists, and the summary never quotes a request header or body, which can hold tokens.

## Start it with one API call

`POST https://api.phoenix.so/o/{org}/sessions`

```json
{
  "agent": "<agent id>",
  "input": "Summarize the Jam in this support ticket for the support team. Ticket T-88214, subject \"Export to CSV spins forever\", customer text: \"Tried three times this morning, recording attached.\" Jam: https://jam.dev/c/3f2a9c1e-5b7d-4e8a-9c0f-1d2e3b4a5c6d. Call getDetails, then getUserEvents, getConsoleLogs with level error, and getNetworkRequests with status 400-599. If it is a video Jam call getVideoTranscript; if a screenshot Jam call getScreenshots. Call getMetadata. Return only JSON: {jam_type, recorded_on_url, steps: [string], failed_requests: [{method, host, path, status, at}], console_errors: [{message, at}], customer_said: string, metadata: {}, product_area: string, confidence: low|medium|high}. Never include request or response headers or bodies. Read only: never call createComment, editComment, updateJam, addResource, markRelated, deleteJam or any folder or recording-link tool."
}
```

1. **Get an API key.** In the console, open Settings, then API keys, and create a key for your org. Send it in the Authorization header as a Bearer token.
2. **Send the request.** POST the body in request.json to https://api.phoenix.so/o/{org}/sessions. The run starts in its own cloud sandbox.
3. **Read what came back.** Follow the run on its live stream or wait for the run.completed webhook, then read the result and its trajectory.

## What comes back

The answer is JSON in the session's `result` and in the `run.completed` webhook. The helpdesk posts it as an internal note at the top of the ticket: the numbered steps, the failed request with its status, the console errors, and a product area that its routing rules can match to a queue. The support agent who picks the ticket up reads that note first and opens the recording only when the note leaves a question.

What the support agent checks: that the failed request is the one that matters, since a page can log a harmless 404 for a missing icon next to the 500 that broke the export; the `confidence` on the product area before trusting the routing; and the customer's own words, which can describe a different problem from the one recorded. The note is a starting point for the reply, which a person still writes.

## Run it on every new ticket with a Jam link

When a ticket arrives or a customer replies with a jam.dev link, the helpdesk sends one `POST /o/{org}/sessions` with that team's agent id as `agent`, the ticket subject, text and link in `input`, and a `request_id` that is a UUID v5 of the ticket id and the Jam id, so a webhook retry inside the helpdesk does not summarize the same recording twice.

A release that breaks something can bring many tickets with recordings at once. Runs past the key's concurrent limit wait `queued` and start as slots free, and the helpdesk posts each note as its `run.completed` webhook arrives.

## Why run it on Rush?

Each support team signs in to Jam on Jam's own page, and that sign-in belongs to its agent alone, so one helpdesk customer's runs can never open another customer's recordings. The helpdesk company registers no Jam app and stores no Jam token, only an agent id per team. The session's `accounts` field names the Jam connection each run used, which answers the question a security review asks first.

Every run has its own computer and keeps a record of each tool call, so when a note gets a bug wrong, the team can see which console line or request the agent read. One template serves every team: adding a field, such as linking the ticket to an earlier Jam that recorded the same failed request, is one `PATCH` to the template, and `GET /o/{org}/sessions?agent=<agent id>` lists a team's runs with their `total_cost_usd` for per-seat pricing.

## Frequently asked questions

### What if the customer's Jam is in a workspace the team cannot see?

Jam's MCP server shows only what the signed-in account can see in Jam's own apps. If the recording was shared from another workspace the team has no access to, `getDetails` fails and the run says so in its answer; the helpdesk can post a note asking the customer to share it with the team.

### Does the summary expose a customer's passwords or tokens?

Jam records network traffic and inputs, so the template's instructions forbid quoting request headers or bodies, and the request repeats it. The full detail stays in Jam, where the team already controls who can see it.

### Could the agent comment on the Jam instead?

Jam's server has `createComment`, and a team could choose that. This template keeps the summary inside the helpdesk, where the ticket and its routing live, and leaves Jam unchanged.

### Does this replace watching the recording?

For a clear failed request, often the note is enough to route and reproduce the bug. For a layout problem or a confusing flow, the video still says more than the logs, and the note tells the support agent where in the recording to look.

## More Jam jobs

- [Triage Customers' Jam Bug Recordings Into Reproducible Reports](https://getrush.ai/run/triage-customer-bug-recordings/jam/)
- [Which Customer Bug Recordings Never Became a Ticket? A SaaS Support Team's Weekly Sweep of Jam](https://getrush.ai/run/find-bug-reports-never-filed-as-tickets/jam/)
- [Is the New Store Ready to Launch? An Online Store's Daily Sort of Beta Testers' Jam Recordings](https://getrush.ai/run/sort-beta-testers-bug-recordings/jam/)

## More jobs like this: Run an agent per customer task

- [Supplier Spend Analysis in Ramp for Each Client](https://getrush.ai/run/supplier-spend-analysis-for-each-client/ramp/)
- [Total Each Consultant's Billable Meeting Hours by Client From Google Calendar](https://getrush.ai/run/total-billable-hours-by-client/google-calendar/)
- [Turn Each Cleaning Company's OneDrive Timesheets Into Payroll Hours: One Agent per Customer](https://getrush.ai/run/total-weekly-timesheets/onedrive/)

## Keep reading

- [Connect Jam to Rush once, then name it on any run](https://getrush.ai/integrations/jam/)
- [Start your first run from the developer API quickstart](https://getrush.ai/docs/quickstart/)
- [Rush pricing: Free, Pro and Max](https://getrush.ai/pricing/)
