← Back to home

NarrativeAI

# NarrativeAI is a blockchain-based platform that enables collaborative story creation through AI assistance and user voting. The platform combines AI-generated storytelling options with human decision-making to create unique, branching narratives.

Screenshots

NarrativeAI screenshot 1
NarrativeAI screenshot 2
NarrativeAI screenshot 3

Problem Statement

NarrationAI: Collaborative AI-Assisted StorytellingInspired by the groundbreaking social experiment Twitch Plays Pokémon (TPP), where thousands of players collectively controlled a single Pokémon game through chat commands, NarrationAI brings the magic of crowd-driven narratives to the blockchain era.NarrationAI is a decentralized platform that harnesses the power of collective creativity and cutting-edge AI to weave intricate, branching narratives. Just as TPP transformed gaming into a collaborative experience, NarrationAI revolutionizes storytelling by making it a shared, democratic process.On NarrationAI, stories unfold like never before. AI agents, powered by Galadriel's on-chain LLM capabilities, set the stage with captivating beginnings and offer multiple paths for the tale to unfold. But unlike traditional AI storytelling, the narrative's direction is in the hands of the community. Users vote on-chain to decide which path the story should take, creating a truly decentralized and unpredictable storytelling experience.NarrationAI combines the following technologies:Galadriel's on-chain AI for intelligent story generation and path creationBlockchain-based voting for transparent, tamper-proof decision makingNFT minting to immortalize completed stories and recognize contributorsJust as Twitch Plays Pokémon showed how chaos can lead to unexpected triumphs, NarrationAI demonstrates how collective decision-making can produce unique, engaging narratives. Our platform isn't just about creating stories; it's about forging a new form of digital literature where every reader is also a potential author.NarrationAI: Where AI meets human creativity, where every vote shapes a world, and where stories live forever on the blockchain. Join us in writing the future of collaborative storytelling. #StoryOnChain #AIStorytelling #DecentralizedCreativityKey ComponentsStory Initiation AI AgentUtilizes on-chain LLM to generate the story's beginning based on a given themeMaintains memory of story contextStory Pathfinder AI Agent(New)Creates four distinct creative outlines for story continuationEnsures each path is unique and engagingStory Continuation AI AgentExpands and enriches the chosen story pathMaintains consistency with previous story elementsIllustration AI AgentCreates image descriptions based on story contentIntegrates with image generation AI for visual storytellingEditor AI AgentReviews stories for coherence, style, and engagementProvides feedback and suggestions for improvementSmart Contract for VotingManages on-chain voting process for path selectionEnsures transparent and tamper-proof decision makingUser InterfaceWeb-based platform for user interactionsDisplays stories, facilitates voting, and showcases illustrationsUpdated WorkflowTheme AnnouncementPlatform announces a theme for story creationStory InitiationStory Initiation AI generates the beginning of the story based on the themePath GenerationStory Pathfinder AI creates outlines for 4 creative paths to continue the storyVoting PhaseUsers vote on their preferred path for story continuationVoting process managed by blockchain smart contractStory ContinuationStory Continuation AI expands the winning path, enriching the storyNew story segment is added to the main narrativeIllustration CreationIllustration AI generates image descriptions for the new story segmentImages created and added to enhance the narrativeEditing and RefinementEditor AI reviews the new segment, providing feedbackAI implements refinements based on editor suggestionsRepeatProcess repeats from step 3 (Path Generation) for further story developmentStory CompletionAfter a predetermined number of cycles or when a satisfactory ending is reachedCompleted story is minted as an NFT with fractional ownership for contributorsTechnical ImplementationBlockchain: Ethereum-compatible chain (e.g., Polygon) for smart contracts and votingAI Integration: Galadriel's on-chain LLM capabilities for all AI agentsFront-end: React-based web application for user interfaceBack-end: Node.js server to handle API requests and blockchain interactionsDatabase: IPFS for decentralized storage of story content and metadataUnique Selling PointsAI-guided storytelling with human decision-makingMultiple creative paths for each story segment, ensuring varietyDecentralized voting for collaborative story directionTransparent contribution tracking and ownershipEducational tool for creative writing and blockchain interactionFuture ExpansionsGenre-specific AI agents for specialized story creationMulti-language support for global collaborationIntegration with e-book platforms for wider distributionInteractive reader experiences allowing real-time voting on story direction

Solution

We started from Hardhat boilerplate for this project, wrote several on chain AI agent contract on Galadriel testnet. We wrote a python script to poll Galadriel on chain data and write user's queries and write them into a sqlite databse. We used express.js and sql.js to build a quick RESTful service for the frontend to query the database. And finally, we adopted styled-component and MUI to make our frontend pages looks better.

Hackathon

ETHGlobal Brussels

2024

Prizes

  • 🏆

    Best on - chain AI agent(s)3rd place

    Galadriel

Contributors