A decentralized AI app that extracts tweets via a Chrome extension, analyzes sentiment using AI agents, and generates new tweets in a similar tone. Built with Next.js, Django, and Galadriel, it leverages on-chain AI to offer personalized tweet generation and sentiment insights based on past user activity.
-
Clone the repository:
https://github.com/silent-cipher/stakeStream.git cd stakeStream
-
Tnstruction to add chrome extension:
- Open Chrome browser and navigate to
chrome://extensions/
- Enable Developer mode by toggling the switch in the top right corner.
- Click on the
Load unpacked
button in the top left corner. - Navigate to the
extension
folder in the project directory and select it. - The extension should now be installed and visible in the extensions list.
- Open Chrome browser and navigate to
-
Install dependencies for the frontend (Next.js):
cd frontend npm install
-
Run the development servers:
- For Next.js (frontend):
npm run build npm start
- (Backend) is for tweet extraction and tweet id extraction:
cd backend virtualenv .venv source .venv/bin/activate pip install -r requirements.txt python manage.py runserver
-
Open your browser and navigate to
http://localhost:3000
for the frontend andhttp://localhost:8080
for the backend admin interface.
This decentralized AI app leverages Galadriel's on-chain AI technology to extract tweets from a user’s Twitter account using a Chrome extension. It analyzes tweet sentiment, style, and structure using AI agents and generates new tweets that match the user’s tone and voice. The app provides a user-friendly interface where users can input prompts to generate tweets with a custom heading, description, hashtags, and tags. It also includes detailed sentiment analysis, offering insight into each tweet’s emotional tone, keywords, and reasoning for the sentiment choice. Built with Next.js, Django, and Galadriel, the app integrates AI in a low-latency, verifiable manner, ensuring scalability and robustness. By blending data extraction, AI analysis, and decentralized tech, this tool simplifies personalized tweet generation and helps users understand their tweet patterns while leveraging AI to improve their social media engagement.
Manually analyzing and generating tweets in a consistent tone or sentiment can be challenging. Users often struggle to create tweets that align with their previous patterns, and understanding tweet sentiment adds complexity. This AI-powered app solves these problems by using AI agents to analyze past tweets and generate new ones in the same style. It provides personalized tweet suggestions, including headings, descriptions, hashtags, and tags, while offering sentiment analysis with detailed explanations. Built with Next.js, Django, and Galadriel, the app streamlines tweet generation and sentiment analysis, saving time and enhancing social media engagement.
This app utilizes AI to transform Twitter data into personalized tweet content. It extracts tweets using a Chrome extension, analyzes sentiment with AI agents, and generates new tweets in the user’s unique style. By learning from historical tweets, it produces relevant, engaging content while offering detailed sentiment analysis. Built with Next.js, Django, and Galadriel, the app simplifies tweet generation and enhances user engagement by providing tailored tweet suggestions and insights into tweet sentiment.
-
Extract Tweets Using a Chrome Extension:
The Chrome extension is designed to fetch tweets from a user's Twitter account based on specific search criteria or user ID. It automates the extraction process, gathering relevant tweet data efficiently and storing it for further analysis. -
Analyze Sentiment of User Tweets Using AI Agents:
Once the tweets are extracted and stored, AI agents analyze them to determine sentiment, tone, and style. This involves processing the text to understand the emotional context, identifying key phrases, and learning the user’s unique voice and preferences. -
Generate New Tweets Based on Learned Patterns Using AI:
Using the insights gained from the sentiment analysis, AI agents generate new tweets that mimic the user’s style and tone. Users can input prompts to guide the tweet generation, and the AI produces content with tailored headings, descriptions, hashtags, and tags. -
Present Users with Tweet Headings, Descriptions, Hashtags, and Tags:
The app delivers the generated tweets in a user-friendly format, including headings, descriptions, hashtags, and tags. This comprehensive presentation helps users easily publish new tweets that align with their established social media presence, enhancing engagement and consistency.
Here’s a detailed breakdown of the app’s features:
-
Tweet Extraction:
A Chrome extension is used to gather tweets from a user's Twitter account. It works based on search filters or specific user IDs, automating the collection of relevant tweets. This process ensures that the data used for analysis and generation is comprehensive and up-to-date. -
AI Tweet Generation:
Once tweets are extracted, AI agents analyze them to understand the user's style and tone. The app uses this analysis to generate new tweets that match the user's established voice. This involves creating content that aligns with the user's past tweet patterns, including similar language, tone, and structure. -
Sentiment Analysis:
The AI performs sentiment analysis on each tweet, evaluating the emotional tone and key phrases. This includes providing insights into why certain sentiments were detected, helping users understand the emotional impact of their tweets. The analysis includes keywords and explanations to clarify the sentiment choice.
- Frontend: Next.js
- Backend: Django
- AI Framework: Galadriel
- Data Extraction: Chrome extension
- Database: DB
-
Chrome Extension:
Extract tweets from Twitter based on user-defined criteria or ID. Automate data collection for analysis and generation tasks directly from the user's Twitter account. -
Home Page:
Set up AI agents using data extracted from tweets to tailor content generation and analysis. Manage and configure the agents to fit specific user needs and preferences. -
Tweet Generation Page:
Generate new tweets by entering prompts that guide the AI in creating content. Customize the output with specific headings, descriptions, hashtags, and tags. -
Sentiment Analysis Page:
Analyze individual tweets to determine their emotional tone and key phrases. Get detailed explanations and insights into the sentiment detected for each tweet.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Use this space to list resources you find helpful and would like to give credit to. I've included a few of my favorites to kick things off!
A special thank you to all the current contributors who have made this project possible. You can view the contributors