Overview
Social Pulse brings the voice of public discourse into every analysis. By integrating Twitter/X data, Argument Cartographer shows not just what experts and journalists say, but what everyday people are discussing, debating, and feeling about each topic.Social Pulse uses the official Twitter API v2 to fetch recent, relevant tweets sorted by engagement and relevance.
Real-Time Data
Tweets from the last 7 days, refreshed with each analysis
AI Summary
Gemini generates neutral summaries of sentiment and discussion themes
Top Tweets
Most engaging tweets (likes, retweets) surface key viewpoints
Rich Metadata
Engagement metrics, timestamps, and author information
How It Works
Query Generation
When analyzing a topic, the AI generates a focused 2-4 word search query optimized for Twitter.Example: “Should AI be regulated?” → “AI regulation”
Twitter API Search
System searches Twitter using official API v2 with filters:
- Language: English
- Exclude: Retweets (original content only)
- Sort: Relevancy (engagement-weighted)
- Limit: 20 tweets
Data Enrichment
API returns:
- Full tweet text
- Author info (name, handle, profile image)
- Engagement metrics (likes, retweets, replies, impressions)
- Timestamp (UTC)
AI Analysis
Gemini reads all 20 tweets and generates:
- Sentiment summary (positive/negative/mixed)
- Key discussion points
- Emerging themes
- Notable perspectives
Twitter API Integration
Search Parameters
Query Filters
- Language Filter
- Retweet Exclusion
- Relevancy Sort
lang:en - English tweets onlyWhy: Keeps analysis focused and enables accurate AI sentiment analysisFuture: Multi-language support plannedRate Limits
Data Schema
Example Tweet Object
AI-Generated Summary
The “Social Pulse” summary is generated by Gemini analyzing all retrieved tweets:Example Summaries
- Mixed Sentiment
- Polarized
- Emerging Consensus
UI Components
Tweet Card Display
Tweets are rendered in visually rich cards:Social Pulse Panel
The side panel layout:Benefits & Use Cases
Ground Truth Check
Compare expert analysis with grassroots public opinion
Sentiment Gauge
Quickly assess if topic is polarizing or consensus-building
Emerging Narratives
Spot new talking points before they reach mainstream media
Diverse Voices
Access perspectives beyond traditional news sources
Example Scenarios
Policy Debate
Policy Debate
Scenario: Analyzing a proposed healthcare reform billExpert sources show policy details, cost estimates, impact studiesSocial Pulse reveals:
- Personal stories of insurance struggles (emotional dimension)
- Specific provisions people care about (vs. media focus)
- Regional differences in sentiment
- Misinformation spreading in real-time
Tech Controversy
Tech Controversy
Scenario: Debate over AI chatbot safetyExpert sources discuss technical specifications, risk assessmentsSocial Pulse reveals:
- User experience stories (positive and negative)
- Competing priorities (safety vs. accessibility)
- Emerging use cases experts haven’t considered
- Community-driven solutions
Cultural Issue
Cultural Issue
Scenario: Book banning in schoolsExpert sources provide legal analysis, educational researchSocial Pulse reveals:
- Parent concerns (specific passages, age appropriateness)
- Student perspectives (often missing from news)
- Librarian professional insights
- Community organizing efforts
Limitations
Known Issues
Low-Volume Topics
Low-Volume Topics
Problem: Niche topics may have < 20 tweetsResult: Empty state or sparse feedWorkaround: System gracefully handles empty results with informative message
Spam & Bots
Spam & Bots
Problem: Twitter has bot accounts and spamMitigation: Relevancy sort tends to filter these out (low engagement)Future: Implement bot detection scoring
Language Mixing
Language Mixing
Problem:
lang:en filter isn’t perfect - code-switching and multilingual tweets slip throughImpact: Occasionally irrelevant tweets in non-EnglishFuture: Secondary language detectionRecency Bias
Recency Bias
Problem: API only returns last 7 days of tweets (free tier)Impact: Historical topics have no social dataWorkaround: “No recent tweets” message for older topics
Privacy & Ethics
All tweets displayed are public - we only access data users have chosen to share publicly on Twitter. No private DMs, protected accounts, or deleted content.
Ethical Considerations
- Attribution: Every tweet links back to original with author credit
- Context: We show full tweet text, not cherry-picked quotes
- No amplification of hate: Future: content moderation filters
- Transparency: Users see the AI’s summary AND raw tweets
Configuration
Disable Social Pulse
To run without Twitter integration:Adjust Tweet Count
Alternative Social Sources (Future)
Roadmap for additional social listening:Community discussions, long-form debates, niche subreddits
YouTube Comments
Video-specific discourse, expert creator communities
News Comments
Direct reactions to journalism, contextual discussion
Mastodon/Fediverse
Decentralized social media, different demographics
Next Steps
Narrative Radar
See how Social Pulse integrates with curated topics
Creating Analyses
Tips for topics that generate rich social data
External Integrations
Technical details of Twitter API integration
Configuration
Customize social pulse behavior
