MediumBuilding an AI social simulation with OASIS | by Feng Yueh | Towards AI
Sitemap
Towards AI

We train AI Engineers. We deploy Enterprise AI. Join 100K+ AI practitioners at Towards AI Academy or reach out for help making your company AI native. towardsai.com

Building an AI social simulation with OASIS

A walkthrough of persona design and multi-agent social simulation

8 min readJun 25, 2026

--

Press enter or click to view image in full size

Intro

What would people’s first reaction be if immortality became free and universally available starting today?

AI social simulation lets us explore exactly this kind of question. By giving LLMs distinct personas and placing them on a simulated social platform, we can observe how different agents might react to the same world-changing event.

In this article, I built a simulated Twitter/X feed with 35 AI agents representing people from 35 different countries. The starting point is a UN announcement about free immortality, posted as a seed post into the feed, and the agents react from there.

The full code for this project is available on GitHub.

Tools Used

The simulation is built in Python:

OASIS (CAMEL-AI) is the social simulation framework. It provides a simulated Twitter/X environment complete with a database, a recommendation system, and agent action types such as posting, liking, and following. Each agent in OASIS is backed by an LLM that reads its persona and decides what to do each round.

--

--

Towards AI
Towards AI

Published in Towards AI

We train AI Engineers. We deploy Enterprise AI. Join 100K+ AI practitioners at Towards AI Academy or reach out for help making your company AI native. towardsai.com