Social Media AI Agent - Telegram

For Telegram, automate the curation and sharing of trending GitHub discussions from Hacker News every 6 hours. This workflow generates engaging Twitter and LinkedIn posts using AI, streamlining social media content creation and distribution while ensuring no duplicate posts are made.

7/8/2025
26 nodes
Complex
schedulecomplexmarkdownfilternoopairtablelinkedintwitterschedule triggerlangchainsticky notetelegramwaitautomationadvancedapiintegrationcroncommunicationbot
Categories:
Data Processing & AnalysisSocial Media ManagementCommunication & MessagingSchedule TriggeredComplex Workflow
Integrations:
MarkdownFilterNoOpAirtableLinkedInTwitterSchedule TriggerLangChainSticky NoteTelegramWait

Target Audience

This workflow is ideal for:
- Social Media Managers: Those looking to automate the process of curating and sharing content from GitHub to platforms like Twitter and LinkedIn.
- Developers and Tech Enthusiasts: Individuals who want to showcase their projects or interesting GitHub repositories to a wider audience without spending too much time on social media management.
- Content Creators: Users who need to generate engaging posts quickly and efficiently, ensuring their content reaches the right audience at the right time.
- Small Business Owners: Entrepreneurs seeking to leverage social media for marketing their tech-related products or services, while maintaining a consistent online presence.

Problem Solved

This workflow addresses the challenge of manually tracking and sharing trending GitHub discussions from Hacker News. By automating the curation of relevant content and generating concise, engaging posts for Twitter and LinkedIn, it saves users significant time and effort. Additionally, it helps prevent duplicate postings, ensuring that the content shared remains fresh and relevant. The integration of AI for content generation enhances the quality and appeal of the posts, making them more likely to engage the audience.

Workflow Steps

  • Schedule Trigger: The workflow is triggered every 6 hours to fetch the latest content from Hacker News.
    2. Crawl HN Home: It retrieves the homepage of Hacker News to gather the latest discussions.
    3. Extract Meta: The workflow extracts metadata, focusing on GitHub links from the discussions.
    4. Filter Unposted Items: It filters out any posts that have already been shared to avoid duplication.
    5. Visit GH Page: For each unposted GitHub link, the workflow visits the page to gather more information.
    6. Convert HTML To Markdown: The HTML content from the GitHub page is converted into Markdown format for better readability.
    7. Generate Content: Using AI, the workflow generates tailored posts for Twitter and LinkedIn based on the extracted information.
    8. Validate Generate Content: It checks if the generated posts meet the required criteria (e.g., character limits, content quality).
    9. Filter Errored: Any posts that encounter errors during validation are filtered out for further review.
    10. Create Item: Valid posts are added to an Airtable database for tracking.
    11. Ping Me: A notification is sent via Telegram to inform the user about the generated posts.
    12. Wait for 5 mins before posting: The workflow pauses for 5 minutes before finalizing the posts.
    13. Post to Social Media: Finally, the generated content is posted to Twitter and LinkedIn, and the status in Airtable is updated accordingly.
  • Customization Guide

    Users can customize the workflow by:
    - Adjusting the Schedule: Modify the trigger interval to suit your needs (e.g., change to every hour or daily).
    - Changing Content Sources: Add or replace the source of content (e.g., integrate with other platforms or forums).
    - Modifying Post Content: Edit the AI-generated prompts to adjust the tone or style of the posts according to your brand voice.
    - Updating Airtable Fields: Customize the Airtable database schema to include additional fields relevant to your content strategy.
    - Adding More Social Media Platforms: Integrate additional nodes for posting to other platforms such as Facebook, Instagram, or Reddit.
    - Implementing Error Handling: Enhance the error handling steps to include notifications for failed posts or issues with content generation.