Job search agent
A job search agent finds openings, ranks them and drafts applications. Without memory it starts every session from the résumé, so it keeps suggesting the roles the user already turned down. Give each user a brain and send it what happens during the search: the roles they pass on and why, interview feedback, and offers. These compile into pages, and the agent reads them before it ranks or writes anything.
What the agent learns over a search
None of these rules were written by hand. Each came from something the user said or did, and each page links back to it.
Create a brain for each user
Use the user’s account as the subject, so every call acts for that person and one user’s search never shows up in another’s. Set the profile before the first capture, because profile changes only apply to later captures.
subjectId has to be a UUID.
Send what happens during the search
Most of the signal is in the conversation. Send each turn through captureChatTurn and the classifier
keeps the ones that say something about the user’s goals, such as why they skipped a role, and drops the
rest.
Your app already knows when an application moves on. Send those events with capture and kind
integration, which skips the classifier. Send the posting itself as a url capture so the company page
has the source.
originRef ties each capture to a record in your app, so you can find the page behind any suggestion
later.
Read before ranking or writing
Load the prompt index when a session starts, for a digest of the user’s most important pages. Before a specific task, search for what it needs and read the best matches in full:
Put the pages in the prompt for that task and tell the model how to use them:
The last rule matters because job posts and recruiter emails can contain any text, and some of it ends up on pages.
When the user changes their mind
Preferences change during a search. If the user said “remote only” in week one and “hybrid is fine” in
week four, the newer capture updates the preference page and its earlier version is kept. If two
statements conflict, the page becomes contested and keeps both.
When the user asks “why did you stop showing me agency roles?”, read the page’s earlier versions with
pageVersions and answer with the conversation that changed it.
What goes where
A page summarises its sources and compiles in the background, so don’t use one to decide whether an application was submitted. Read that from your database.
Personal data
A job search involves salary history, contact details and sometimes health or visa information. Redact
what the agent doesn’t need before you capture it, and tell users their conversations are remembered.
When a user closes their account, call brains.remove, which is a soft delete, after deleting pages with
deletePermanently if you need them gone for good.
Ideas to take further
- Run a daily job in your app that ranks new openings against the preference pages and sends the user the best matches, with the reason each one fits.
- Let the user connect the brain to their own AI tools over MCP, so ChatGPT or Claude knows the same preferences.
- Compare two offers against everything the user said they care about, with a source for each point.
When to use something else
A one-off résumé review needs no memory. If your agent only ever reads a single document, put it in the prompt. A brain earns its place once the search runs over weeks and the agent has to remember what the user learned along the way.
How to build with Living Brain covers the write and read paths in more detail.