What this workflow does
This n8n workflow takes research queries about Men’s Health Consulting and automatically creates SEO-friendly blog drafts.
It stops long manual research and writing work.
You get a ready blog draft posted in Telegram fast, saving many hours and avoiding mistakes.
Who should use this workflow
Marketers who want faster, better blog content can use this.
It’s for teams that want fresh, researched posts without spending many hours.
People using Telegram and n8n to connect tools will find it handy.
Tools and services used
- n8n: Automates the workflow nodes.
- OpenAI GPT-4o-mini: Writes blog content and metadata.
- Perplexity AI: Searches latest reliable data for blog facts.
- Telegram Bot API: Receives research queries and shares blog drafts.
- Langchain AI Agent: Connects AI models and tools, runs prompts.
Workflow Inputs, Processing, and Outputs
Inputs
- Research query text from a form submission in n8n using Form Trigger.
- Research query text from Telegram messages using Telegram Trigger.
Processing steps
- The LangchAIn AI Agent node receives the query and runs Perplexity AI search to collect updated, trustworthy content.
- Perplexity AI search workflow returns relevant facts about the query.
- A second Langchain AI Agent calls GPT-4o-mini to generate a full SEO-optimized blog post using researched data.
- Another AI Agent extracts important blog metadata: title, slug, and meta description following SEO rules.
- Structured output parser transforms metadata text into JSON fields for clean data handling.
- A Merge node combines blog content and metadata into one data package.
- The final combined blog draft is sent using Telegram node to a chat channel for review and sharing.
Outputs
- Complete, SEO-optimized blog draft in rich text.
- Structured blog metadata including search-friendly URL slug.
- Instant Telegram post with draft and metadata for feedback.
Beginner step-by-step: How to use this workflow in n8n production
Step 1: Import the workflow
- Download the workflow file from this page using the Download button.
- In the n8n editor, click “Import from File” and upload the downloaded workflow.
Step 2: Configure credentials and IDs
- Open each AI node and add your OpenAI API Key with GPT-4o-mini access.
- Set up your Perplexity AI credentials if needed.
- Configure your Telegram bot token in the Telegram nodes.
- Update chat IDs, folder names, or any placeholders for your environment.
Step 3: Test the workflow
- Submit a test query using the form or send a message to the Telegram bot.
- Watch the workflow run and verify a blog draft posts to the Telegram channel.
Step 4: Activate for production
- Turn on the workflow by enabling it in n8n.
- Make sure triggers listen for new queries.
- Monitor logs for any errors initially.
- Optional: Use self-host n8n for full control and reliability.
Customizations and extension ideas
- Edit AI Agent prompts to change industry focus or add keywords.
- Swap GPT-4o-mini with GPT-3.5 for cheaper API costs.
- Add nodes to publish blogs directly to CMS like WordPress.
- Include translation nodes for multiple languages.
- Change memory buffer size to keep longer AI chat context.
Troubleshooting main issues
Webhook not receiving form submissions
Check webhook URL and IDs exactly match between form and workflow nodes.
Resend form and watch logs.
OpenAI API call fails with 401 Unauthorized
Make sure OpenAI API Key is correct and active.
Update key in credentials if expired.
Telegram message not sent
Confirm chat ID is right and bot permissions allow posting.
Add bot to Telegram group if missing.
Pre-Production checklist
- Verify all API keys and Telegram tokens work and are valid.
- Test form submissions trigger workflow correctly.
- Test Perplexity AI search returns fresh results.
- Review AI prompts for correct messaging.
- Make sure test messages create final draft in Telegram.
- Backup workflow file before going live.
Summary and final results
✓ Workflow saves many hours by automating blog research and writing.
✓ Delivers SEO-ready blog drafts based on latest trusted data.
✓ Posts drafts directly on Telegram for fast team review.
✓ Reduces errors and mismatch in keywords and metadata.
✓ Supports easy production use with import and quick setup.
