What the agent does
This is for a software company that sells care plans to freelance web designers: a monthly fee the designer charges each client for keeping their site healthy, with the software handling the reports. Most of these designers host client sites on their own Netlify team. A care plan promises that someone notices when the contact form starts failing or a page gets slow, and the software's new feature keeps that promise: every Monday each designer finds a short health note per client site, drafted from what Netlify served last week, ready to read and send.
The company saves the agent once as a template with POST /o/{org}/agents, "connections": ["netlify"] (it connects a Netlify account of its own first, since a template names connections its creator has) and instructions that keep it to Netlify's read operations. When a designer turns the feature on, the backend makes their agent with {"template": "<template id>", "name": "care-<designer id>"}, calls POST /o/{org}/agents/{agent}/connections {"type": "mcp", "name": "netlify"}, and opens the authorize_url in a popup, where the designer signs in to Netlify. The company registers no Netlify app and stores only the agent id against the designer.
On a run the agent uses the get-projects operation to list the designer's sites and match them to the clients the app sends in input. For each site it uses Netlify's observability operations over the last seven days: get-counts with status_codes for the share of 4xx and 5xx answers, get-topk with urls filtered to StatusCode of 500 and above for the pages that failed, get-topk with urls sorted by P90 for the slowest pages, and get-counts with function_names when the site runs functions, such as the one behind a contact form. Where errors cluster, get-timeseries with edge_requests_count shows when the burst started and stopped.
From those numbers it writes one note per client in plain words: whether anything broke, which pages, when, and whether it is still happening. Netlify's source marks these operations read-only, and the template's instructions forbid every deploy, environment variable, form, access-control and extension operation, so a run can never redeploy a site or change its settings. Netlify reports latency in nanoseconds; the note converts it to milliseconds.
Start it with one API call
POST https://api.phoenix.so/o/{org}/sessions with this body:
{
"agent": "<agent id>",
"input": "Write this week's site health notes for 2026-11-09 00:00 to 2026-11-16 00:00 UTC (from_ts 1794182400000, to_ts 1794787200000). Clients and sites: Alder Dental (alder-dental), Brightside Yoga (brightside-yoga), Marlow Joinery (marlow-joinery). Use get-projects to find each site id. For each site: get-counts status_codes; get-topk urls with filter StatusCode >= 500, top 10; get-topk urls sorted by P90 DESC, top 5; get-counts function_names if the site has functions; and get-timeseries edge_requests_count with filter StatusCode >= 500 when there were any 5xx. Convert latency from nanoseconds to milliseconds. Return only JSON {sites: [{client, site, requests, pct_4xx, pct_5xx, failing_pages: [{url, count}], slowest_pages: [{url, p90_ms}], function_errors: [{name, count}], error_window: {start, end} or none, note}], unlisted_sites: [site]} where note is 2 to 4 plain sentences a client can read and unlisted_sites names every site get-projects returns that no client above uses. Read only: no deploy, env var, form, access-control, extension or project-name operation."
}- 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.
- 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.
- 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 agent drafts one health note per client from each client site's errors and slowest pages last week, ready for the designer to send. The session's answer is the JSON, which the app's webhook handler turns into those drafts in the designer's dashboard, with the failing and slowest pages listed under each. A site with nothing wrong gets a one-line note saying so, which is what most clients want to read.
What the designer checks before sending: that a burst of errors was not a deploy they made themselves and fixed within minutes, that a slow page is slow for visitors and not only for a crawler, and that the note's wording suits the client. How far back Netlify keeps this data depends on the designer's Netlify plan, so a designer on a plan that keeps less than a week gets a shorter window, and the note says which window it covers.
Run it on every Monday morning, per designer
The app's scheduler sends one POST /o/{org}/sessions per designer with the feature on, early on Monday in each designer's time zone, with their agent id as agent, the week's timestamps and their client list in input, and a request_id that is a UUID v5 of the designer id and the week, so a retried job starts no second run. Runs past the key's max_concurrent wait as queued and start as slots free.
A designer who gets a call from a client mid-week can press Check now on one site, and the app sends the same request for that site alone with the last 24 hours.
The use case this job follows, with its automation and trigger: Run an agent per customer task.
Why run it on Rush?
Each designer's Netlify sign-in belongs to them and sits in Rush's connection under their own agent, so the company never stores a Netlify token and one designer's agent can never read another designer's sites. A session's accounts names the Netlify connection it used, which lets the company answer a designer who asks what touched their team.
Each Monday is one session per designer, each on its own computer with a record of every Netlify call and what its model calls cost. The company adds those costs up per designer with GET /o/{org}/sessions?agent=<agent id> and can see the feature's cost beside the care-plan fee it supports.
Frequently asked questions
Does a free Netlify plan give a full week?
Not according to Netlify's MCP source, which says request data typically goes back 24 hours on free plans, 7 days on Pro and Business and 30 days on Enterprise, and clamps an older start to that limit. A designer on a free plan gets a daily note instead, sent each morning for the previous day.
Can the agent redeploy a broken site?
Netlify's server has deploy operations, but the template's instructions forbid them and the app's prompt repeats it. A health note reports; a fix is the designer's decision, made in their own Netlify team after they have looked.
What if a designer has sites for clients the app does not know?
The agent reads only the sites the prompt names. Sites in the designer's Netlify team that no client in the app points to are left out of the notes and listed by name in the answer's unlisted_sites, so the designer can add them to a client or ignore them.
Does the company see its designers' client data?
It sees what the runs return, which is request counts, page paths and notes, and the transcripts of its own agents' runs. It never holds the designers' Netlify credentials, and deleting a designer's agent disconnects their Netlify sign-in.
More Netlify jobs
More jobs like this: Run an agent per customer task
- Which Subcontractors Haven't Sent Their Lien Waivers This Month? Construction Software That Checks Each Contractor's OneDrive Before Payday (OneDrive)
- Is This Support Ticket a Known Bug? A Help Desk App Checks Each Customer's Sentry When a Ticket Arrives (Sentry)
- Which of Next Week's Home Inspections Are Missing an Address or Access Notes? Scheduling Software With One Agent per Inspector's Google Calendar (Google Calendar)
- Are Next Week's Viewings Ready to Go? A Property Management App's Check of Each Leasing Agent's Outlook Calendar (Microsoft Calendar)