Create Daily Twitter Digest
Collects top tweets from selected accounts, ranks them by engagement, and emails you an AI-generated daily summary of key trends and insights.
Twitter Daily Digest Workflow
This workflow collects recent tweets from selected Twitter users, analyzes their engagement and content, and compiles a polished daily email digest summarizing the key posts and trends. It takes the heavy lifting out of monitoring influential accounts and delivers valuable insights straight to your inbox.
It performs the following steps:
- Triggers daily at 8 AM UTC to start the digest process.
- Parses input for Twitter usernames and the recipient email address.
- Fetches RSS feeds for each specified Twitter username using a proxy service.
- Extracts tweets from the RSS XML data, filters posts from the last 24 hours, and calculates engagement metrics.
- Scores tweets by engagement, recency, and user priority to rank their overall importance.
- Uses an AI model to generate a polished HTML email digest with top posts, key trends, explanations of significance, and summary stats.
- Sends the resulting email digest through Gmail to the specified email address.
What You Need
| Requirement | Description |
|---|---|
| Needle Account | An active platform account to run this workflow. |
| Twitter RSS Access | Access to Twitter RSS feeds (configured via Nitter proxy URLs). |
| Gmail Connection | A connected Gmail account used to send the outbound digest emails. |
| Environment Variables | Optional configuration: TWITTER_USERNAMES (comma-separated list), DIGEST_EMAIL (recipient email), and INCLUDE_WHY_IT_MATTERS (boolean). |
How The Flow Works
-
Scheduled Trigger Runs every day at 8 AM UTC to initiate the digest compilation.
-
Initialize Parameters Reads environment variables or falls back to default values to configure which Twitter accounts to track and where to route the final digest email.
-
HTTP Requests for RSS Feeds Queries the RSS URLs of each specified Twitter user to retrieve their most recent tweets in XML format.
-
Parse RSS XML and Extract Tweets Converts the raw RSS feed data into structured text, filtering out any posts older than 24 hours. It also extracts key engagement metrics like likes, retweets, and replies.
-
Score Tweets Assigns each tweet a unique score based on engagement numbers, how recent the post is, and user priority to ensure the most important posts rank at the top.
-
AI Digest Generation Feeds the structured and scored tweet data into an AI agent, prompting it to create a well-formatted, visually appealing HTML email. The AI highlights top posts, identifies overarching trends, provides reasons to care, and calculates quick statistics.
-
Send Email Delivers the final HTML digest email to your configured recipient address with a clear, informative subject line.
Output
At the end of the workflow, you receive a beautifully formatted daily email highlighting the top Twitter posts from your chosen accounts. You also get insightful trends spanning multiple users, context on why these updates matter, and quick statistics about the day's Twitter activity. This digest helps you stay informed on your industry with minimal reading time.
Notes
- The workflow relies on the availability of RSS feeds via Nitter or similar proxy services, which may occasionally be rate-limited.
- Engagement data is parsed from available RSS descriptions and might not always reflect the exact real-time counts on Twitter.
- The AI-generated email is styled with inline CSS for broad compatibility across different email clients, though it may render slightly differently depending on the recipient's email software.
- You can easily customize the tracked usernames and recipient email by setting environment variables before running the workflow.
Want to showcase your own workflows?
Become a Needle workflow partner and turn your expertise into recurring revenue.
