đ Reddit Sentiment Analysis for Apple WWDC25 with Gemini AI and Google Sheets
⥠751 views · đ Market Research & Insights
đĄ Pro Tip â HTTP Request scraping tends to break when sites update their markup. If youâre scraping a major platform, check if ScraperNode covers it â it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.
Description
This workflow automates sentiment analysis of Reddit posts related to Appleâs WWDC25 event. It extracts data, categorizes posts, analyzes sentiment of comments, and updates a Google Sheet with the results.
Preliquisites
- Bright Data Account: You need a Bright Data account to scrape Reddit data. Ensure you have the correct permissions to use their API. https://brightdata.com/
- Google Sheets API Credentials: Enable the Google Sheets API in your Google Cloud project and create credentials (OAuth 2.0 Client IDs).
- Google Gemini API Credentials: You need a Gemini API key to run the sentiment analysis. Ensure you have the correct permissions to use their API. https://ai.google.dev/â. You can use any other models of choice
Setup
- Import the Workflow: Import the provided JSON workflow into your n8n instance.â,
- Configure Bright Data Credentials:,
In the âscrap redditâ and the âget statusâ nodes, in Header Parameters find the Authorization field, replace
Bearer 1234with your Bright Data API key. Apply this to every node that utilizes your Bright Data API Key., - Set up the Google Sheets API credentials, - In the âAppend Sentimentsâ node, set up the Google Sheets API by connecting your Google Sheets account through oAuth 2 credentials. â,
- Configure the Google Gemini Credential ID,
- In the â Sentiment Analysis per commentâ node, set up the Google Gemini API by connecting your Google AI account through the API credentials. ,
- Configure Additional Parameters:,
- In the âscrap redditâ node, modify the JSON body to adjust the search term, date, or sort method.,
- In the âWaitâ node, alter the âAmountâ to adjust the polling interval for scraping status, it is set to 15 seconds by default.,
- In the âText Classifierâ node, customize the categories and descriptions to suit the sentiment analysis needs. Review categories such as âWWDC eventsâ to ensure relevancy.,
- In the âSentiment Analysis per commentâ node, modify the system prompt template to improve context.
customization_options
- Bright Data API parameters to adjust scraping behavior.
- Wait node duration to optimize polling.
- Text Classifier categories and descriptions.
- Sentiment Analysis system prompt.
Use Case Examples
- Brand Monitoring: Track public sentiment towards Apple during and after the WWDC25 event.
- Product Feedback Analysis: Gather insights into user reactions to new product announcements.
- Competitive Analysis: Compare sentiment towards Appleâs announcements versus competitors.
- Event Impact Assessment: Measure the overall impact of the WWDC25 event on various aspects of Appleâs business.
Target_audiences:
- Marketing professionals in the tech industry,
- Brand managers,
- Product managers,
- Market research analysts,
- Social media managers
Troubleshooting:
- Workflow fails to start. Check that all necessary credentials (Bright Data and Google Sheets API) are correctly configured and that the Bright Data API key is valid.
- Data scraping fails. Verify the Bright Data API key, ensure the dataset ID is correct, and inspect the Bright Data dashboard for any issues with the scraping job.
- Sentiment analysis is inaccurate. Refine the categories and descriptions in the âText Classifierâ node. Check that you have the correct Google Gemini API key, as the original is a placeholder.
- Google Sheets are not updating. Ensure the Google Sheets API credentials have the necessary permissions to write to the specified spreadsheet and sheet. Check API usage limits.
- Workflow does not produce the correct output. Check the data connections, by clicking the connections, and looking at which data is being produced. Check all formulas for errors.
Happy productivity!
đ Nodes Used
Google Sheets, HTTP Request, Filter, Google Gemini Chat Model, Text Classifier, Sentiment Analysis
đ„ Import
Download workflow.json and import into n8n:
Workflow menu â Import from File