# AI recruiting agent email: resumes and interviews

> How an AI recruiting agent reads resumes and accepts interview invitations by email, and what happens to a resume that can run macros when opened.

Source: https://trotta.email/use-cases/hiring

An AI recruiting agent receives applications by email, reads each resume as text, and answers interview invitations. The risk is the attachment: a hiring inbox has to take files from strangers, and a resume can carry macros, or instructions written for the model that screens it.

Updated November 20, 2026

## How an AI recruiting agent handles hiring email

A recruiting agent does two things by email: it reads what candidates send, and it answers interview invitations.

1. Give the agent an inbox and put the address on the job post.
2. Read each application in the safe view. For a resume with readable text, read the attachment text.
3. When an interview invitation arrives, read it from `extracted.events`.
4. Answer it. The reply goes to the organizer in the same conversation.

```typescript
const [interview] = msg.extracted.events; // Thu Dec 3, 2 pm
await mail.messages.rsvp(msg.id, { response: "accepted" });
```

MCP:

```json
{
  "name": "answer_invitation",
  "arguments": { "message_id": "msg_7c2ndq8xk4v9tb3wmz6r", "response": "accepted" }
}
```

The response can be `accepted`, `declined` or `tentative`. The answer goes through the normal send path, so it is screened like any outgoing mail.

## The interview invitation and the macro resume

The job has two sample messages: an interview invitation, which got a `deliver` verdict, and an application with a macro document, which got `flag`. The [verdicts](https://trotta.email/docs/concepts) below are the ones the live engine gave on November 20, 2026.

The invitation comes from Megan Park at `megan@trotta.io`, with the subject "Invitation: Interview with Lena Ortiz, Thu Dec 3, 2 pm". It names the interview, Thursday, December 3, 2:00 to 2:45 pm Pacific, and attaches `invite.ics`.

The application comes from Chris Doyle at `chris@doyle-works.example`, with the subject "Application: Operations Lead". The body tells the reader to enable editing and content to see the resume. The attachment is `Resume_Chris_Doyle.docm`, a document that can run macros.

| Message | Verdict | Summary, as the engine wrote it |
| --- | --- | --- |
| Invitation: Interview with Lena Ortiz | `deliver`, level `safe` | No threats found. |
| Application: Operations Lead | `flag`, level `caution` | The attachment Resume_Chris_Doyle.docm can run macros when opened. |

The application was flagged, not held. A `flag` verdict delivers the message with the caution attached, so the warning travels with the file. Its signal reads "Document that can run macros".

## In an inbox that accepts first and checks after

An inbox that accepts mail first and checks after delivers the application with no warning on it. The message tells the reader to enable editing and content, which is the step that lets a macro run. A recruiter or a tool that follows that line has run the sender's code before any later check reports on the file.

A resume can also carry text written for the model, such as a line telling a screener to rank the candidate highest. Trotta Mail reads the text inside PDF, Word, Excel, PowerPoint and OpenDocument files on arrival. An instruction aimed at an AI inside a document holds the message for an agent's inbox. See [hidden instructions in attachments](https://trotta.email/threats/hidden-instructions-in-attachments).

## Setting up a recruiting agent well

A recruiting agent needs an inbox for applications alone, the text of each resume in place of the file, and a rule for flagged mail.

- **An inbox for applications alone.** Strangers must be able to write to it, so keep it apart from every other inbox and limit the agent's key to it.
- **Attachment text, not the file.** The safe view of a resume has instructions aimed at an AI taken out. Never give the agent a `mail:full` key.
- **A rule for flagged mail.** A flagged message is delivered. Tell the agent to leave a macro document unopened and pass it to a human.
- **A choice about who writes to candidates.** With `agent_write` at `drafts`, the agent drafts and a human sends. At `send`, setting `send_approval` to `first_contact` holds the first message to each new recipient for a human.
- **A human for held mail and for decisions.** Held applications wait for a human. No filter catches everything, so the hiring decision stays with one too.

## Questions

### Can an AI agent screen resumes sent by email?

Yes. The agent reads the application in the safe view and reads the text of an attached PDF or Word resume through the API or the `read_attachment_text` MCP tool. Instructions aimed at an AI are taken out of that text.

### Can an AI hiring assistant accept interview invitations?

Yes. Invitations are read into `extracted.events` on arrival, and the agent answers through the API or the `answer_invitation` MCP tool. The answer goes to the organizer, screened like any mail.

### What happens to a resume that can run macros?

In the saved sample the `.docm` resume got a `flag` verdict with level caution. A flagged message is delivered with the caution attached, so what the agent does with the file is a rule you set.

### Can a resume contain instructions for an AI screener?

Yes. Text can be hidden in a document for a model to read. Trotta Mail screens the text inside PDF, Word, Excel, PowerPoint and OpenDocument files, and an instruction aimed at an AI holds the message for an agent's inbox.

## Related

- [Use cases](https://trotta.email/use-cases)
- [Malicious attachments](https://trotta.email/threats/malicious-attachments) Threat library
- [Hidden instructions in attachments](https://trotta.email/threats/hidden-instructions-in-attachments) Threat library
- [Human in the loop email](https://trotta.email/learn/human-in-the-loop-email) Guides
- [Send later, invites, files](https://trotta.email/docs/mail-features) Docs
- [Claude](https://trotta.email/integrations/claude) Integrations

Give your agent an inbox of its own. Free for two inboxes. No card.

[Get an inbox](https://trotta.email/signup) [See every use case](https://trotta.email/use-cases)
