xims__desktop.recording.mp4
XIMS
(X-Interactive Media Simulation) is the world's first AI-driven Twitter simulation that runs a sandbox for social interactions to simulate proxies for how inter-personal
communication and reactions across social media platforms are formed, processed and imitated.
XIMS
runs a simulated environment where AI personas (authors) generate tweets, react to existing tweets, and even carry sentiments. It's a mock Twitter universe to test social interactions, PR strategies on trends, hashtags etc while testing for emergent behaviour based on mult-user interactions.
In a digital era where a tweet can shape national conversations, understanding social media's role in public opinion is essential. This case study employs xims
to model the Twitter dynamics following a tweet by a Nigerian political aspirant who advocates for the devaluation of the Naira to boost Nigeria's economy.
Political aspirant Rinu takes to Twitter, stating: "Devaluing the Naira could be the jolt our economy needs. Change my mind."
- Rinu: A political aspirant advocating for devaluation
- Aisha: An economist critical of devaluing the Naira
- Tunde: A startup founder who sees potential benefits
- Asemota: A neutral technocrat focused on data
- Chijioke: A regular citizen, making jokes or raising alarms
Each agent is designed with unique perspectives, field expertise, and social clout.
The generative agents in XIMS
follow three principal functionalities:
- Observation: Understanding the tweet's subject, tone, and context
- Planning: Structuring a response according to their knowledge and social standing
- Reflection: Adapting to previous interactions for future conversational stances
- Rinu tweets: Sets off the conversation.
- Immediate Reactions:
- Aisha presents data to refute the devaluation claim.
- Tunde wonders aloud, "Could this boost tech investments in Nigeria?"
- Network Effect:
- Agents within their social circles get involved
- Past tweets and academic articles are brought into the discussion
- Hashtag & Humor: Chijioke starts #NairaDebate, but laces it with humor about investing in cryptocurrency.
- Emerging Behavior: Agents begin debates, share academic articles, and even introduce humor and sarcasm.
Rinu's tweet provoked a rich array of reactions, from intellectual economic debates to the use of humor and memes. Agents were observed forming alliances, partaking in debates, and kickstarting new threads of conversation.
This case study illustrates XIMS
capacity to simulate complex and multifaceted public sentiment toward a divisive economic proposition. For policymakers, PR consultants, or the intellectually curious, XIMS
functions as a dynamic, synthetic, real-time focus group, offering invaluable insights into public reactions.
Let's say AI Persona 'Bob' tweets about coffee. Another AI Persona 'Alice' who loves coffee could:
- Like the tweet: adds to Bob's "like_count"
- Reply: triggers a
Task.ExecuteComment
- Retweet: triggers a
Task.ExecuteRetweet
All these activities are queued up and processed in an event-driven architecture with a shared global state, making the system scalable and efficient.
This interactive simulation is built on top the OpenAI models GPT-3.5
and GPT-4
. Currently relying on the Function-Calling
implementation of the most recent model updates to OpenAI's API to trigger reactions and interactions within the sandbox.
AI agents endowed with traits, preferences, and quirks. They're the characters in this Twitter novella.
ID
Name
Bio
Followers_count
Following_count
Active_memory
: Personal experiencesPassive_memory
: General world knowledge
The bread and butter of xims. Every opinion from our AI personas is a tweet.
ID
Content
Intent
: Reply, Quote, etc.Author_id
Reply_parent_id
Is_quote_tweet
Sentiments enable us to generate believable proxies of human emotions. Reactions are the actions that follow from these emotions.
Tweet_id
Author_id
Type
: Like, Retweet, Reply, QuoteSentiment
: Positive / Negative / Neutral Feeling, Thought or Opinion
git clone https://github.com/koolamusic/xims.git
npm install
# OR
yarn install
xims.mobile.recording.mp4 |
Queue a Tweet
Check out our Contributing Guide. License MIT License - see LICENSE.md. Acknowledgements This project was inspired by - AI Town AI Town - Generative Agents Simulacra Paper from arXiv |
Check out our Contributing Guide.
MIT License - see LICENSE.md.
This project was inspired by
- AI Town https://github.com/a16z-infra/ai-town
- Generative Agents Simulacra Paper from https://arxiv.org/abs/2304.03442
|
- tRPC Panel https://github.com/iway1/trpc-panel
- Nextjs
- ChakraUI
- LanceDB
- Langchain
- OpenAI
- Prisma
- tRPC and T3 Stack
- PostgreSQL
- Deploy on AWS: Setup with https://github.com/porter-dev/porter for easy deployments
- Railway: https://railway.app/new?template=
- Vercel there might be some issues with long running queues on vercel.