- Add ULTIMATE-Telegram-CMS-COMPLETE.json with all commands - Add Docker Event workflows with Gitea integration - Add comprehensive deployment guide for fresh installs - Add quick reference and testing checklist - Include all n8n workflow exports Commands: /start, /list, /search, /stats, /preview, /publish, /delete, .review Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
4.1 KiB
4.1 KiB
🚀 TELEGRAM CMS - QUICK START GUIDE
Installation (5 Minutes)
Step 1: Import Main Workflow
- Open n8n: https://n8n.dk0.dev
- Click "Workflows" → "Import from File"
- Select:
n8n-workflows/ULTIMATE-Telegram-CMS-COMPLETE.json - Workflow should auto-activate
Step 2: Verify Credentials
Check these credentials exist (should be auto-mapped):
- ✅ Telegram:
DK0_Server - ✅ Directus: Bearer token
RF2Qytq... - ✅ OpenRouter: Bearer token
sk-or-v1-...
Step 3: Test Commands
Open Telegram bot and type:
/start
You should see the dashboard! 🎉
📋 All Commands
| Command | Description | Example |
|---|---|---|
/start |
Main dashboard | /start |
/list projects |
Show draft projects | /list projects |
/list books |
Show pending reviews | /list books |
/search <term> |
Search everywhere | /search nextjs |
/stats |
Analytics dashboard | /stats |
/preview <ID> |
Preview item (EN+DE) | /preview 42 |
/publish <ID> |
Publish to live site | /publish 42 |
/delete <ID> |
Delete item | /delete 42 |
/deletereview <ID> |
Delete book review | /deletereview 3 |
.review <HC_ID> <RATING> <TEXT> |
Create book review | .review427565 4 Great! |
🔧 Companion Workflows (Auto-Import)
These workflows work together with the main CMS:
1. Docker Event Workflow
File: Docker Event.json (KEEP ACTIVE)
- Auto-detects new container deployments
- AI generates project descriptions
- Creates drafts in Directus
- Sends Telegram notification with buttons
2. Book Review Scheduler
File: Book Review.json (KEEP ACTIVE)
- Runs daily at 7 PM
- Checks for unreviewed books
- Sends AI-generated questions
- You reply with
.reviewcommand
3. Finished Books Sync
File: finishedBooks.json (KEEP ACTIVE)
- Runs daily at 6 AM
- Syncs from Hardcover API
- Adds new books to Directus
4. Portfolio Status API
File: portfolio-website.json (KEEP ACTIVE)
- Real-time status endpoint
- Aggregates: Spotify + Discord + WakaTime
- Used by website for "Now" section
5. Currently Reading API
File: reading (1).json (KEEP ACTIVE)
- Webhook endpoint
- Fetches current books from Hardcover
- Returns formatted JSON
🎯 Typical Workflows
Publishing a New Project:
- Deploy Docker container
- Get Telegram notification: "🚀 New Deploy: portfolio-dev"
- Click "🤖 Auto-generieren" button
- AI creates draft
- Get notification: "Draft created (ID: 42)"
- Type:
/preview 42to check translations - Type:
/publish 42to go live
Adding a Book Review:
- Finish reading book on Hardcover
- Get Telegram prompt at 7 PM: "📚 Review this book?"
- Reply:
.review427565 4 Great world-building but rushed ending - AI generates EN + DE reviews
- Get notification: "Review draft created (ID: 3)"
- Type:
/publish 3to publish
Quick Search:
- Type:
/search suricata - See all projects/books mentioning "suricata"
- Click action buttons to manage
🐛 Troubleshooting
"Command not recognized"
- Check workflow is Active (toggle in n8n)
- Verify Telegram Trigger credential is set
"Error fetching data"
- Check Directus is running: https://cms.dk0.dev
- Verify Bearer token in credentials
"No button appears" (Docker workflow)
- Check
Docker Event - Callback Handler.jsonis active - Inline keyboard markup must be set correctly
"AI generation fails"
- Check OpenRouter credit balance
- Model
openrouter/freemight be rate-limited, switch togoogle/gemini-2.5-flash
📊 Monitoring
Check n8n Executions:
- n8n → Left menu → "Executions"
- Filter by workflow name
- Red = Failed (click to see error details)
- Green = Success
🚀 Next Steps
- Test all commands - Go through each one in Telegram
- Customize messages - Edit text in Telegram nodes
- Add your own commands - Extend the Switch node
- Set up monitoring - Add error alerts to Slack/Discord
📞 Support
If something breaks:
- Check n8n Execution logs
- Verify API credentials
- Test Directus API manually:
curl https://cms.dk0.dev/items/projects
Your system is now LIVE! 🎉