How to Build an AI Employee With a Knowledge Graph (Not Just Another Agent) A developer detailed how to build an AI employee using a knowledge graph, contrasting it with typical AI agents. The approach, exemplified by the Roster project, uses a graph to store state, ownership, and history, enabling agents to work across extended periods by waking on events, reasoning, acting, and recording results. The post includes a minimal TypeScript implementation and a scheduling mechanism for future tasks. An AI agent can take an action. An AI employee needs to know what happens next. Most AI agents look something like this: Think → Act → Observe → Repeat That's fine for short-lived tasks. But an AI employee needs to work across hours, days, and weeks. It needs to remember: That's where graph engineering becomes interesting. This is the architecture behind Roster https://get-roster.com : software that can own work the way an employee does, not just fire off a single tool call. Events wake someone up. A graph holds state, ownership, and history. The agent reasons, acts, writes the result back, then sleeps until the next event. For Roster, the loop looks like this: Event ↓ Graph ↓ Agent ↓ Action ↓ Graph Update ↓ Sleep ↓ Wake Again Let's build a tiny version. Imagine an AI employee called Maya. Her job is simple: Follow up with sales leads. Her world contains: Maya ↓ owns Lead ↓ belongs to Company ↓ contacted Email ↓ replied to Customer We don't need a massive graph database. We just need nodes and relationships. Here's a minimal TypeScript graph: type Node = { id: string; type: string; data: Record