Get AI summaries of any video or article — Sign up free
Generative Agents: Simulating Human Behavior with ChatGPT thumbnail

Generative Agents: Simulating Human Behavior with ChatGPT

Venelin Valkov·
5 min read

Based on Venelin Valkov's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.

TL;DR

Generative agents can produce believable individual routines and emergent social coordination in a shared sandbox without hand-scripting every action.

Briefing

Generative agents built on ChatGPT can simulate believable, goal-driven human behavior inside a small virtual town—without hand-scripting every character action. In a sandbox inspired by The Sims, 25 autonomous agents share a shared environment, maintain memory of what happens, periodically reflect on that experience, and then plan and carry out concrete actions. The result is not just lifelike individual routines, but also emergent social dynamics such as coordination, relationship-building, and group scheduling.

A key demonstration starts with a single user-specified intent: one agent wants to organize a Valentine’s Day party. Over the next two in-game days, the agents autonomously spread invitations, form new acquaintances, ask others out, and coordinate so they arrive at the party at the right time. That chain of events matters because it shows how complex social outcomes can arise from simple starting goals when agents can remember, interpret, and act within an interactive world.

The system’s core architecture is organized into three repeating loops. First comes a memory stream: each agent records observations and events with timestamps. Second comes reflection: agents synthesize recent experiences into higher-order “reflections,” generated periodically when the importance of new events crosses a threshold. Third comes planning and action: agents use those reflections to produce a future sequence of steps—complete with a vocation, start time, and duration—then execute those steps in the environment. This structure is designed to keep behavior consistent over time while still allowing agents to adapt as their circumstances change.

The virtual world is a compact town with places like houses, a college dorm, a grocery store, a park, a bar, and a café. Each agent has an initial identity prompt (occupation, relationships, and seed memories) and then communicates with other agents in natural language. Rather than relying on rigid scripting, the architecture decides whether an agent walks by or engages in conversation based on context. In one example exchange, Tom Moreno and Isabella Rodriguez discuss local politics and personal views, illustrating how agents can sustain dialogue that feels grounded in their established relationships.

A “day in the life” demo follows Isabella Rodriguez, who wakes up early to prepare for the Valentine’s party at Hops Coffee. The timeline shows her running morning routines, working at the café, inviting others, shopping for supplies, creating a checklist, decorating, and setting up music—while other agents pursue their own schedules. The demo ends before the party’s outcome, but the setup demonstrates how memory, reflection, and planning translate a social goal into coordinated real-world-like preparation.

Overall, the approach frames interactive artificial societies as something more than scripted NPCs: it’s a system where agents can remember, reinterpret, and plan, producing both believable daily behavior and emergent group coordination from minimal instructions.

Cornell Notes

Generative agents combine ChatGPT-style language modeling with a structured loop of memory, reflection, and planning to produce human-like behavior in a small sandbox town. Each agent records events in a timestamped memory stream, periodically generates higher-order reflections from important recent experiences, and then plans time-bound actions (including vocation, start time, and duration). Agents also start with identity seed prompts describing occupation and relationships, and they communicate in natural language with nearby agents. A central test begins with one goal—organizing a Valentine’s Day party—and the system produces invitation spreading, new acquaintances, date requests, and coordinated arrival over two in-game days. This matters because it demonstrates complex social outcomes emerging from simple initial intents when agents can remember and adapt.

How does the system turn a single goal into coordinated social behavior over multiple days?

The party scenario begins with one user-specified intent: an agent wants to organize a Valentine’s Day party. The agents then operate through three loops: (1) they store what they observe in a timestamped memory stream, (2) they periodically generate reflections by synthesizing important recent events, and (3) they plan future steps with time-bound details (vocation, start time, duration) and carry them out. Because agents can remember interactions and reflect on what matters, they can decide to invite others, build relationships, and coordinate schedules so multiple agents show up at the right time.

What are the three main components in the generative agent architecture, and what does each do?

The architecture is built around memory, reflection, and action. Memory is a stream of recorded events (memory objects with timestamps). Reflection is a higher-order synthesis created periodically when the sum of importance scores for recent events crosses a threshold; it turns raw experiences into more usable internal context. Planning and action then use those reflections to generate a future sequence of steps, including a vocation and a schedule, which the agent executes in the environment.

How is the virtual world structured, and how does that affect what agents remember?

The sandbox town includes distinct locations such as houses, a college dorm, a grocery store, a park, a bar, and a café. The world is described as a graph-like structure, and each agent maintains a subgraph (or sub-tree) of the parts of the world relevant to it. This means agents’ memory and interactions are grounded in the local environment they inhabit, rather than being purely abstract.

What role do identity prompts and seed memories play in agent behavior?

Each agent starts with an initial prompt describing identity details—occupation, relationships, and seed memories—written as natural language. For example, John Lin is described as a pharmacy shopkeeper who loves helping people, living with his wife Maila and son Eddie, with known neighbors and colleagues. These seed memories shape how agents talk, whom they recognize, and what kinds of conversations they initiate.

How do agents interact with each other—do they follow scripted dialogue?

Dialogue is generated in full natural language, with no special coding between agents’ language. Agents decide whether to engage or pass by based on the generative agent architecture and local context. The example conversation between Tom Moreno and Isabella Rodriguez about elections and community views illustrates how established relationships and current context can drive realistic-feeling exchanges.

What does the Isabella Rodriguez demo show about day-to-day planning?

Isabella Rodriguez wakes up early because she is responsible for the Valentine’s party at Hops Coffee. Her day shows a consistent progression: morning routine, café work and customer interactions, inviting others, shopping for party supplies, creating a checklist, decorating, and setting up music. Even though the demo ends before the party outcome, the sequence demonstrates how a persistent goal is maintained through memory, reflection, and scheduled actions.

Review Questions

  1. Explain how memory, reflection, and planning interact to produce consistent behavior over time.
  2. In the Valentine’s party example, what mechanisms allow invitations and coordination to emerge from a single initial goal?
  3. Describe how identity seed prompts influence agent conversations and relationships in the sandbox town.

Key Points

  1. 1

    Generative agents can produce believable individual routines and emergent social coordination in a shared sandbox without hand-scripting every action.

  2. 2

    A timestamped memory stream records observations, while periodic reflections synthesize important recent events into higher-order context.

  3. 3

    Planning uses reflections to generate time-bound action sequences (vocation, start time, duration), helping behavior stay coherent across a simulated day.

  4. 4

    Agents begin with natural-language identity prompts and seed memories that define occupation, relationships, and conversational context.

  5. 5

    Agents communicate in natural language and decide dynamically whether to engage or walk by based on local context.

  6. 6

    A single goal—organizing a Valentine’s Day party—can trigger multi-day invitation spreading, relationship formation, and coordinated arrival.

  7. 7

    The demo of Isabella Rodriguez illustrates how a persistent social objective drives shopping, decorating, and scheduling actions across the day.

Highlights

Starting from one intent to host a Valentine’s Day party, agents autonomously spread invitations, form new acquaintances, and coordinate arrival times over two in-game days.
The architecture’s repeating loop—memory stream → reflection (triggered by importance thresholds) → scheduled planning—keeps behavior consistent while still adapting to new events.
Agents carry natural-language identity seed prompts (occupation and relationships), which shape how they talk and whom they recognize in conversations.
In the sandbox town, agents interact through natural language and context-based decisions about whether to converse or move on, enabling emergent social dynamics.
Isabella Rodriguez’s day demonstrates goal persistence: early wake-up, café work, invitations, grocery shopping, checklists, decorating, and music setup for the party.

Topics

Mentioned

  • Venelin Valkov
  • Andre Ker Patty
  • Lior
  • John Lin
  • Maila
  • Eddie Lynn
  • Julie
  • Yamamoto
  • Tom Moreno
  • Jane Moreno
  • Isabella Rodriguez
  • Giorgio Rossi
  • Klaus Mueller
  • Jennifer Moore
  • Sam Moore