# Which Candidates Emailed Us and Never Heard Back? A Recruiting App's Daily Check of Each Recruiter's Outlook

A recruiting software company makes one agent per recruiter, signed into their Outlook with read access, that lists each candidate still waiting on a reply.

[Run this on Rush](https://cloud.getrush.ai/run/find-candidates-waiting-on-a-reply/outlook/). Opens the console with this prompt ready to send. Connect Outlook there first.

## What the agent does

This is for a company that sells candidate-tracking software to small recruiting agencies. Its recruiters live in Outlook: a candidate replies to an outreach email with their availability, asks about the salary range, or sends an updated CV, and the reply lands among fifty others. The tracking software knows every candidate and their stage, but not that one of them wrote back on Tuesday and is still waiting. The company saves one agent as a template that names Outlook with read access, and makes one agent from it per recruiter, each signed into that recruiter's own mailbox.

The company connects its own Outlook first, then saves the template with `POST /o/{org}/agents {"name": "Reply check", "harness": "claude", "instructions": "…", "connections": [{"name": "outlook", "access": "read"}]}`. When a recruiter turns the feature on, its backend calls `POST /o/{org}/agents {"template": "<template id>", "name": "replies-<recruiter id>"}`, then `POST /o/{org}/agents/{agent}/connections {"type": "app", "name": "outlook"}`, and opens the `authorize_url` in a popup for that recruiter alone. The read level asks Microsoft for `Mail.Read` and `Contacts.Read` only. The software stores the agent id against the recruiter and registers no Microsoft app of its own.

On a run the software puts the recruiter's active candidates in the prompt: name, email address, role and stage. The agent reads the inbox through Microsoft Graph, `GET /me/mailFolders/inbox/messages` with a `$filter` on `receivedDateTime` for the last ten days and `$select` limited to `from`, `subject`, `receivedDateTime`, `conversationId` and `bodyPreview`, following `@odata.nextLink`. It keeps messages from the candidates' addresses. For each conversation it reads `sentitems` for the same `conversationId` and finds the recruiter's latest sent message. A candidate whose newest email is later than the recruiter's newest reply in that thread, or who has no reply at all, is waiting.

For each waiting candidate it returns how long they have waited in working hours, the subject, and one line on what the email asks for, read from the preview: a question, availability for an interview, a document, a decline. Declines are listed separately, since they need a polite close rather than a fast answer. Emails from addresses that are not on the candidate list are ignored and never quoted. The agent cannot send anything: the read level gives it no permission to, and the template's instructions say to return a list and nothing else.

## Start it with one API call

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

```json
{
  "agent": "<agent id>",
  "input": "List candidates waiting on a reply from this recruiter. Candidates (name, email, role, stage): Priya Nair, priya.nair@example.com, Payroll Manager, interview; Tom Okafor, t.okafor@example.net, Senior Accountant, screening; Lena Fischer, lena.f@example.org, Finance Director, offer. Read the inbox with GET /me/mailFolders/inbox/messages, $filter receivedDateTime ge 2026-11-09T00:00:00Z, $select from,subject,receivedDateTime,conversationId,bodyPreview, following @odata.nextLink. Keep only messages from the candidate addresses above. For each conversationId, read /me/mailFolders/sentitems/messages filtered on that conversationId and find the newest sent message. A candidate is waiting if their newest message is later than that, or nothing was sent. Return only JSON: {waiting: [{name, email, role, subject, received_at, working_hours_waiting (Mon-Fri 09:00-18:00 Europe/London), asks (question, availability, document, other), summary (one line)}], declined: [{name, email, subject, received_at}]}. Ignore every other sender. Do not send, draft, move or flag any email."
}
```

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 run lists the candidates who emailed and never heard back, each linked to their record, and the candidates who declined apart from them. The answer is JSON in the session's `result` and in the `run.completed` webhook. The tracking software shows it as a Waiting on you list at the top of the recruiter's day, and the recruiter answers from Outlook as they always do. The candidates who declined appear in their own short list so the recruiter can close them out and move them to the right stage.

What the recruiter checks: a candidate who was answered by phone, which no inbox can show and which stays on the list until the recruiter replies by email or the software marks it handled; a thread where a colleague replied from another mailbox; and the one-line summary, which comes from the email's preview and not from any attachment. The list is a prompt to reply, not a record of who was contacted.

## Run it on every working day, per recruiter

The software's scheduler sends one `POST /o/{org}/sessions` per recruiter at 8 a.m. in that recruiter's time zone, with their agent id as `agent`, today's candidate list in `input`, and a `request_id` that is a UUID v5 of the recruiter id and the date, so a retried job starts no second run. An agency of twelve recruiters gets twelve runs at once; runs past the key's concurrent limit wait `queued` and start as slots free.

A recruiter back from a day off can press Check now, which starts the same request with a wider date range. Each run is its own session, readable later if a candidate complains that nobody answered.

## Why run it on Rush?

Each recruiter signs in on Microsoft's own page, and that sign-in belongs to their agent alone: one recruiter's runs cannot read another's mailbox, and the software company never holds a Microsoft token. The session lists in `accounts` which mailbox each run read, and `GET /o/{org}/sessions?account=<email>` answers which runs touched it, which is what an agency asks before it lets software near recruiters' email.

One template serves every recruiter, so adding a field, such as flagging candidates who mention a competing offer, is one `PATCH` to the template. Every run has its own computer and a record of what its model calls cost; `GET /o/{org}/sessions?agent=<agent id>` lists one recruiter's runs with their `total_cost_usd`, which the company needs to price the feature per seat.

## Frequently asked questions

### Does the agent read every email in the recruiter's inbox?

It lists the last ten days' messages with only the fields named in `$select`, then keeps those from the candidate addresses in the prompt. Microsoft issues a token with every Outlook permission the recruiter granted Rush, so the limit on what it reads comes from the prompt and the template's instructions, and the transcript shows each call.

### Can it reply to candidates for the recruiter?

Not with this template. It names Outlook at the read level, which asks Microsoft for `Mail.Read` and `Contacts.Read` only. A template that drafts replies would name the send level, and each recruiter would sign in again to grant it.

### What happens when a recruiter leaves the agency?

The software deletes that recruiter's agent with `DELETE /o/{org}/agents/{agent}`, which disconnects the Outlook account stored for it. The recruiter's mailbox is never reachable by another recruiter's agent in the meantime.

### Does the candidate need to know about this?

The agent reads email the recruiter already received and returns a list to the recruiter. Whether to tell candidates how their emails are processed is the agency's decision under its own policies; the software company should make clear to agencies what the feature reads.

## More Outlook jobs

- [Which Customer Quote Requests Have We Not Answered? A Wholesale Distributor's Morning Check of Each Sales Rep's Outlook](https://getrush.ai/run/find-quote-requests-with-no-reply/outlook/)
- [How Can Agency Software Pull Every Certificate of Insurance Request Out of Each Agency's Outlook Inbox? One Read-Only Agent per Agency](https://getrush.ai/run/list-certificate-requests-from-the-inbox/outlook/)
- [Turn a Week of Carrier Renewal Emails in Outlook Into One Renewal List for Your Agency](https://getrush.ai/run/list-policy-renewals-from-carrier-emails/outlook/)

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

- [Find Personal-Training Clients With No Next Session Booked in Each Trainer's Google Calendar](https://getrush.ai/run/find-clients-without-a-next-session/google-calendar/)
- [Which Customers Are Paying Us Slower? Cash-Flow Software That Checks Each Manufacturer's QuickBooks Monthly](https://getrush.ai/run/find-customers-paying-slower/quickbooks/)
- [Which Days Next Week Have Nothing Scheduled? Gym Marketing Software That Checks Each Gym's Buffer Queue Every Friday](https://getrush.ai/run/find-empty-days-in-next-weeks-queue/buffer/)

## Keep reading

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