Who it's for
This n8n workflow automatically generates AI-powered content about local news and publishes it across multiple social media platforms. The workflow runs on a schedule, fetches the latest news about a specific topic, creates relevant images with watermarks, and posts the content to various platforms including WordPress, Facebook, Telegram, LinkedIn, and Discord.
Features
- Scheduled Content Generation: Triggers every 4 hours to create fresh content
- AI-Powered News Collection: Uses LangChain agent with OpenAI and SerpAPI to find the latest news about a specific topic (Sirajganj district)
- Image Generation: Creates AI images based on the news content using OpenAI's image generation capabilities
- Watermarking: Automatically adds branded watermarks to all generated images
- Multi-Platform Publishing: Posts content and images to:
- WordPress (with featured images)
- Facebook
- Telegram
- LinkedIn (both profile and company pages)
- Discord
- Notification System: Sends confirmation messages via WhatsApp (Rapiwa), Telegram, and Gmail after successful posting
- Content Validation: Checks if news was found before proceeding with image generation and posting
Requirements
- OpenAI API credentials for content generation and image creation
- SerpAPI credentials for news search
- WordPress API credentials for posting articles and media
- Facebook Graph API credentials for page posting
- Telegram Bot API credentials for channel posting
- LinkedIn OAuth2 API credentials for profile and company page posting
- Discord Bot API credentials for channel posting
- Rapiwa API credentials for WhatsApp notifications
- Gmail OAuth2 credentials for email notifications
Configure Credentials
- OpenAI API: Set up credentials with access to GPT-4 and DALL-E models
- WordPress API: Configure access to your WordPress site
- Social Media APIs: Set up credentials for Facebook, Telegram, LinkedIn, and Discord
- Notification Services: Configure Rapiwa for WhatsApp and Gmail for email
Important Notes
- Topic Configuration: The workflow is currently set to fetch news about "Sirajganj district", but this can be modified in the "Add tropic" node
- Image Watermarking: All images are watermarked with "Sirajganj APP" and Playstore information
- Content Validation: The workflow includes a check to ensure news content exists before proceeding with image generation
- Platform-Specific Formatting: Each platform receives appropriately formatted content and image dimensions
- Notification System: After successful posting to all platforms, confirmation messages are sent via multiple channels
Support & Help