project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4

BeforeLife Bar

Beforelife Bar is a Web3 social game where players chat with an AI bartender to earn tokens and write letters to connect with others. Deep conversations are rewarded with NFTs and in-game perks, creating a space for meaningful interactions in a cyberpunk bar.

BeforeLife Bar

Created At

Agentic Ethereum

Project Description

In an era dominated by information overload and fast-paced consumption, people's attention spans are shrinking, and deep conversations are becoming increasingly rare. Beforelife Bar seeks to create a sanctuary where individuals can rediscover the joy of meaningful interactions through AI-driven conversations and long-form written exchanges.

Project Overview Beforelife Bar is an innovative social chatting game that integrates AI interactions, social networking, and a Web3 economy. Set in a neon-lit, cyberpunk-style bar, players can engage in immersive conversations with an AI bartender, exploring profound thoughts and personal reflections. By building rapport with the bartender, players earn in-game tokens as rewards.

Beyond AI interactions, players can also write letters to each other, fostering deeper connections and self-expression. The game allows users to attach tokens to their letters as gifts, enhancing the value and warmth of social interactions.

Core Gameplay AI Bartender Interaction Players can enter the bar at any time to chat with the AI bartender about life, philosophy, or personal stories. The bartender evaluates the depth and quality of conversations, rewarding players with in-game tokens. As intimacy increases, players may unlock exclusive rewards, including limited-edition NFTs.

Letter Writing & Social Exchange Players can write and send letters to others, sharing thoughts, emotions, and reflections. Letters can include token-based gifts, making interactions more engaging and rewarding.

Web3 Economic System Earned tokens can be used to unlock in-game items, enhance the bar experience, or even exchange for unique NFTs. The blockchain mechanism ensures authenticity and uniqueness in messages and interactions, fostering a sense of immersion and belonging.

Our Vision In the age of AI, Beforelife Bar aims to provide a unique digital sanctuary where deep conversations thrive. Under the neon glow of a cyberpunk bar, the AI bartender is not just a listener but also an inspiration. Every letter written is a bridge connecting people in meaningful ways, rekindling the lost art of thoughtful dialogue.

How it's Made

Frontend: Built with Phaser and Next.js. Phaser handles most of the game-related logic, while Next.js, along with HTML, CSS, and TypeScript, is used for the frontend page structure and interactions.

Smart Contracts: Developed using Hardhat, featuring three contracts:

  1. ERC20 for in-game token.
  2. ERC721 for NFT rewards.
  3. Escrow Contract to facilitate secure transactions within the game.

AI Agent: Our agent is a multi-agent system designed to interact with users through dynamic evaluations, token issuance, and NFT creation. Built on OpenAI's Swarm framework, it uses a Python runtime for decision-making and a Node runtime for transaction handling. The Evaluate Agent assesses user intimacy based on chat and message bottle content, while the Transaction Agent processes token transfers and NFT creation.

Besides, our agent ensures privacy by storing sensitive data on Nillion's Secret Vault, safeguarding user content. This system fosters engagement through personalized rewards and incentivizes meaningful interactions.

background image mobile

Join the mailing list

Get the latest news and updates