Bagaimana Cara Kerja Fitur Kirim Judul via Telegram untuk Generate Artikel Otomatis?

Fitur paling populer di sistem auto-content: **kirim satu pesan Telegram, artikel lengkap terpublish otomatis**. Tidak perlu buka laptop, tidak perlu login WordPress, tidak perlu copy-paste. Cukup HP di tangan, ketik command, 3 menit kemudian — artikel live di website.

Artikel ini mengurai **cara kerja fitur kirim judul via Telegram untuk generate artikel otomatis** — dari setup bot, format command, parsing input, workflow trigger, hingga artikel terpublish. Lengkap dengan diagram alur, kode parsing, error handling, dan fitur advanced (schedule, multi-niche, approval).

Overview Alur: Dari Pesan Telegram ke Artikel Live

USER (HP) TELEGRAM N8N WORKFLOW WORDPRESS
┌─────────────┐ ┌─────────────┐ ┌────────────────────────────────────┐ ┌─────────────┐
│ Ketik: │ ──── HTTPS ──▶ │ Bot API │ ──── Webhook ▶ │ Telegram Trigger (Webhook/Poll) │ │ │
│ /artikel │ (getUpdates)│ (BotFather) │ /webhook/ │ → Set (Parse & Normalize) │ │ │
│ Judul SEO │ │ │ telegram │ → Load Config (Niche/Schedule) │ │ │
│ │ │ │ │ → Research LSI (SerpAPI/Default) │ │ │
│ │ │ │ │ → AI Outline (6-8 H2) │ │ │
│ │ │ │ │ → Loop: AI Write Section (8x) │ │ │
│ │ │ │ │ → Merge + FAQ Schema + Meta │ │ │
│ │ │ │ │ → HTTP Request: WP Publish │ ──────▶ │ Post Created│
│ │ │ │ │ → Telegram Notif (Link + ID) │ │ │
└─────────────┘ └─────────────┘ └────────────────────────────────────┘ └─────────────┘
│ │
└──────────────────────────◀────────────────── Notifikasi: “✅ Artikel Terpublish: Link…” ◀──────────┘

Total waktu: 2-5 menit (tergantung kecepatan AI API). User hanya butuh kirim 1 pesan.

Setup Telegram Bot (Sekali Saja)

  1. Buka @BotFather di Telegram
  2. Kirim /newbot
  3. Nama: Auto Content Bot (bebas)
  4. Username: auto_content_bot (harus unik, akhiran bot)
  5. Copy Bot Token: 123456789:ABCdefGHIjklMNOpqrsTUVwxyz
  6. Dapatkan Chat ID:
    • Personal: kirim pesan ke bot → buka https://api.telegram.org/bot/getUpdates → cari "chat":{"id":123456789}
    • Grup: tambah bot ke grup → kirim /start → getUpdates → cari "chat":{"id":-1001234567890} (negatif = grup/channel)
  7. Promote bot jadi Admin di grup/channel (untuk kirim notifikasi)

Format Command Telegram

Command Dasar: Generate & Publish Langsung

/artikel Judul Artikel SEO Anda

Contoh:

/artikel Cara Memasak Rendang Padang Asli Minang
/artikel Tips Memilih Laptop Gaming Budget 10 Jutaan 2026
/artikel Review iPhone 16 Pro Max: Worth It atau Overrated?

Command Advanced: Generate dengan Parameter Tambahan

/artikel [judul] | keyword:[keyword utama] | niche:[kategori] | words:[target kata] | tone:[gaya bahasa] | schedule:[YYYY-MM-DD HH:MM]

Contoh:

/artikel Cara Memasak Rendang | keyword:resep rendang padang | niche:kuliner | words:4000 | tone:ramah praktis | schedule:2026-11-25 07:00
/artikel Review Laptop Gaming | keyword:laptop gaming murah | niche:teknologi | words:3500 | tone:teknis analitis

Parameter Optional (semua boleh skip):

Parsing Command di n8n (Node Set: Parse Command)

Node Set setelah Telegram Trigger (nama: Parse Command):


// Input: {{$json.message.text}} (contoh: "/artikel Cara Memasak Rendang | keyword:resep rendang | niche:kuliner")

const rawText = $json.message.text.trim();
const chatId = $json.message.chat.id;
const userId = $json.message.from.id;
const username = $json.message.from.username || 'unknown';

// 1. Hapus prefix command
const withoutPrefix = rawText.replace(/^\/artikel\s*/i, '').trim();

// 2. Parse parameter (format: key:value | key:value)
const params = {
  judul: '',
  keyword: '',
  niche: '',
  words: 3000,
  tone: 'natural-profesional',
  schedule: null,
  approval: false,
  image: false,
  custom_instructions: ''
};

if (withoutPrefix.includes('|')) {
  // Ada parameter pipe-separated
  const parts = withoutPrefix.split('|').map(p => p.trim());
  params.judul = parts[0]; // bagian pertama = judul
  
  parts.slice(1).forEach(part => {
    const [key, ...valParts] = part.split(':');
    const val = valParts.join(':').trim();
    const k = key.toLowerCase().trim();
    
    if (k === 'keyword') params.keyword = val;
    else if (k === 'niche') params.niche = val;
    else if (k === 'words') params.words = parseInt(val) || 3000;
    else if (k === 'tone') params.tone = val;
    else if (k === 'schedule') params.schedule = val;
    else if (k === 'approval') params.approval = val === 'true';
    else if (k === 'image') params.image = val === 'true';
    else params.custom_instructions += (params.custom_instructions ? '; ' : '') + part;
  });
} else {
  // Hanya judul, tanpa parameter
  params.judul = withoutPrefix;
}

// 3. Normalisasi judul & slug
const judulClean = params.judul.trim().substring(0, 200);
const slug = judulClean
  .toLowerCase()
  .replace(/[^a-z0-9\s-]/g, '')
  .replace(/\s+/g, '-')
  .replace(/-+/g, '-')
  .replace(/(^-|-$)/g, '')
  .substring(0, 80);

// 4. Auto-extract keyword jika kosong
let keywordUtama = params.keyword;
if (!keywordUtama) {
  // Hapus kata umum: cara, bagaimana, tips, trik, tutorial, panduan, review
  keywordUtama = judulClean
    .replace(/^(cara|bagaimana|tips|trik|tutorial|panduan|review|apakah|bisakah|mengapa|kenapa)\s+/i, '')
    .replace(/\s+(terbaik|terbaru|2024|2025|2026|terkini|terupdate)$/i, '')
    .trim();
}

// 5. Output untuk node berikutnya
[
  {
    json: {
      // Original data
      raw_text: rawText,
      chat_id: chatId,
      user_id: userId,
      username: username,
      message_id: $json.message.message_id,
      timestamp: $now.format('YYYY-MM-DD HH:mm:ss'),
      
      // Parsed parameters
      judul: judulClean,
      judul_raw: params.judul,
      slug: slug,
      keyword_utama: keywordUtama,
      niche: params.niche || 'default',
      target_words: params.words,
      tone: params.tone,
      schedule: params.schedule,
      approval_required: params.approval,
      generate_image: params.image,
      custom_instructions: params.custom_instructions,
      
      // Metadata
      source: 'telegram',
      run_id: $runId || $now.format('YYYYMMDDHHmmss') + '_' + Math.random().toString(36).substr(2, 6)
    }
  }
]

Workflow Trigger: Webhook vs Polling

Parameter Format Default Fungsi
keyword keyword:kata kunci utama Auto-extract dari judul Focus keyword untuk SEO
niche niche:kategori default (config niche default) Pilih prompt template & config niche
words words:angka 3000 Target word count artikel
tone tone:deskripsi gaya natural-profesional Tone of voice untuk AI
schedule schedule:YYYY-MM-DD HH:MM Sekarang (instant) Jadwal publish (simpan ke calendar)
approval approval:true/false false (config niche) Butuh human approval sebelum publish
image image:true/false false (budget) Generate featured image via AI

Setup Webhook (Production)

  1. Pastikan n8n accessible via HTTPS public (contoh: https://auto.domainanda.com)
  2. Di node Telegram Trigger → Mode: Webhook
  3. Webhook URL: n8n auto-generate (contoh: https://auto.domainanda.com/webhook/telegram)
  4. Klik tombol Set Webhook di node config
  5. Test: kirim /artikel Test → cek execution log

Setup Polling (Development/Testing)

  1. Di node Telegram Trigger → Mode: Polling
  2. Polling Interval: 3000 (3 detik)
  3. Test: kirim /artikel Test → cek execution log

Flow Setelah Parsing: Branching Logic

Node IF setelah Parse Command (nama: Route by Schedule):

  • True (Scheduled): {{$json.schedule !== null && $json.schedule !== ''}}
    • → Google Sheets Append: simpan ke Content_Calendar dengan status Scheduled
    • → Telegram Reply: ✅ Terjadwal: {{$json.judul}} pada {{$json.schedule}} WIB (Niche: {{$json.niche}})
    • → Workflow END (Cron scheduler akan eksekusi nanti)
  • False (Instant): Lanjut ke Auto Content Pipeline
    • → Load Config (by niche)
    • → Research LSI
    • → AI Outline → Write Loop → Merge → Publish → Notif

Telegram Reply Format (Instant Generate)

Node Telegram Send Message (setelah Publish sukses):

✅ Artikel Terpublish Otomatis!

📝 {{$json.judul}}
🔗 Link: {{$json.wp_response.link}}
🆔 Post ID: {{$json.wp_response.id}}
📊 Words: ~{{$json.target_words}} | H2: {{$json.qc.h2_count}} | KW: {{$json.qc.keyword_density}}%
🏷️ Niche: {{$json.niche}}
⏱️ Duration: {{$json.duration_sec}} detik
📅 {{$now.format('DD MMM YYYY, HH:mm:ss WIB')}}

#AutoContent #n8n #SEO #{{$json.niche}}

Inline Keyboard (Opsional):

Buttons: [
  ["🔗 Buka Artikel", "{{$json.wp_response.link}}"],
  ["📝 Edit di WP", "{{$json.wp_response.link.replace('/','/wp-admin/post.php?post=' + $json.wp_response.id + '&action=edit')}}"],
  ["🔄 Generate Ulang", "/regen {{$json.run_id}}"]
]

Error Handling & Notifikasi Gagal

Node Error Trigger (canvas terpisah, connect ke Telegram):

❌ Auto-Content Gagal

📝 Judul: {{$json.judul || 'Unknown'}}
🏷️ Niche: {{$json.niche || 'Unknown'}}
⚠️ Error: {{$json.error.message}}
📍 Node: {{$json.error.node.name}}
🆔 Run ID: {{$json.run_id}}
⏰ {{$now.format('DD MMM YYYY, HH:mm:ss WIB')}}

{{$json.error.response?.body?.substring(0, 200) || 'No response body'}}

Common Error & Auto-Reply ke User:

Aspek Webhook (Direkomendasikan) Polling
Real-time Ya (instant) Delay 1-3 detik (interval)
Butuh Domain/HTTPS Ya (public URL) Tidak (jalan localhost/VPS tanpa domain)
Setup Caddy/Cloudflare Tunnel + Set Webhook Cukup enable Polling di node
Reliability Tinggi (Telegram retry otomatis) Tinggi (long polling)
n8n Cloud Support (domain n8n.cloud) Support
Error Auto-Reply ke Telegram User
401 Unauthorized ❌ Gagal: Kredensial WordPress tidak valid. Hubungi admin.
403 Forbidden ❌ Gagal: Permission ditolak. User WP butuh role Editor/Administrator.
429 Rate Limit ⏳ Sistem sibuk, silakan coba lagi 5 menit. Atau gunakan /schedule untuk nanti.
AI Timeout ⏳ AI sedang sibuk, mencoba ulang… (otomatis retry 2x)
Validation Failed ❌ Artikel tidak lolos quality check: {{$json.qc_failed_reasons}}. Silakan perbaiki judul/instruksi.

Fitur Advanced: Command Tambahan

Command Fungsi Contoh
/schedule YYYY-MM-DD HH:MM Judul Jadwalkan artikel (simpan ke calendar) /schedule 2026-11-25 07:00 Cara Memasak Rendang
/regen Regenerate artikel yang gagal/perlu revisi /regen 20261124073000_abc123
/status Cek status artikel (pending/processing/done/failed) /status 20261124073000_abc123
/list [niche] [limit] List artikel terbaru (dari log sheet) /list kuliner 5
/stats [hari] Statistik volume & success rate /stats 7 (7 hari terakhir)
/pause [niche] Pause auto-generate untuk niche (admin only) /pause teknologi
/resume [niche] Resume niche yang di-pause /resume teknologi
/help Tampilkan daftar command & format /help

Implementasi Multi-Command (Node Switch)

Node Switch setelah Telegram Trigger (sebelum Parse):

  • Value: {{$json.message.text.split(' ')[0].toLowerCase()}}
  • Cases:
    • /artikel → Parse Command (Instant)
    • /schedule → Parse Schedule → Save to Calendar
    • /regen → Load Run ID → Re-execute Pipeline
    • /status → Query Log Sheet → Reply Status
    • /list → Query Log Sheet → Reply List
    • /stats → Query Log Sheet → Reply Stats
    • /pause → Update Config Niche status=paused
    • /resume → Update Config Niche status=active
    • /help → Reply Help Text
    • Default → Reply: “Command tidak dikenali. Ketik /help untuk bantuan.”

Security: Hanya User Terotorisasi

Node IF di awal (setelah Trigger):

{{['123456789', '987654321', '-1001234567890'].includes($json.message.chat.id.toString())}}
  • True → Lanjut proses
  • False → Telegram Reply: “❌ Anda tidak berhak menggunakan bot ini.” → Stop

Untuk tim/VA: tambahkan Chat ID mereka ke array allowlist. Untuk grup: gunakan Chat ID grup (negatif).

Template Siap Pakai: Telegram Bot Integration Include di Kelas

Workflow Auto Content SEO di Kelas n8n Karyawan AI sudah include:

  • ✅ Telegram Trigger (Webhook & Polling mode)
  • ✅ Parse Command node (support semua parameter: keyword, niche, words, tone, schedule, approval, image)
  • ✅ Switch node untuk multi-command (/artikel, /schedule, /regen, /status, /list, /stats, /pause, /resume, /help)
  • ✅ Security allowlist (configurable via variable)
  • ✅ Instant generate flow + Scheduled flow (Google Sheets Calendar)
  • ✅ Success notif dengan inline keyboard (Buka, Edit, Regen)
  • ✅ Error notif detail + auto-reply user-friendly
  • ✅ Rate limit handling (Wait + Retry)
  • ✅ Approval flow (Telegram button Approve/Reject → Webhook wait)
  • ✅ Logging ke Google Sheets (Publish_Log + Content_Calendar)

Setup: Import workflow → Isi Bot Token & Chat ID di Credentials → Set Webhook (atau enable Polling) → Test /artikel Test Judul → Active.

⚡ Kirim Judul lewat Telegram, Artikel Live 3 Menit — Siap Pakai

Command parsing, scheduling, approval, error handling, multi-command, security — semua include di template kelas.

AMBIL WORKFLOW TELEGRAM BOT INTEGRATION

FAQ: Fitur Kirim Judul via Telegram

Bisa pakai WhatsApp / Discord / Slack instead of Telegram?

Bisa. n8n support: WhatsApp Business API (via Twilio/Gupshup/360dialog), Discord (bot token), Slack (bot token + signing secret). Ganti node Telegram Trigger dengan node platform target. Logic parsing & workflow sama. Template kelas include Telegram (gratis, reliable, file support), tapi bisa di-adaptasi.

Apakah bot bisa di-tambah ke grup dengan banyak member (VA tim)?

Bisa. Tambah bot ke grup → promote Admin → allowlist Chat ID grup (negatif). Semua member grup bisa kirim /artikel. Log akan capture username pengirim untuk accountability. Approval flow: hanya admin (allowlist user ID) yang bisa klik Approve/Reject.

Bagaimana handle judul dengan karakter khusus (emoji, tanda kutip, pipe)?

Parse command node sudah handle: (1) Emoji di-judul dipertahankan (di-strip saat slugify), (2) Tanda kutip di-escape, (3) Pipe | sebagai delimiter parameter — jika judul mau pakai pipe, escape: \| atau gunakan parameter judul: eksplisit. Contoh: /artikel Review "iPhone 16" | keyword:iphone 16 review.

Bisa generate multiple artikel sekaligus (batch) via satu command?

Bisa. Format: /batch judul1 || judul2 || judul3 (delimiter ||). Atau kirim file .txt/.csv ke bot → n8n parse file → loop generate. Template kelas include versi batch via file upload (Telegram support document upload).

Apakah aman expose webhook URL publik? Bisa di-hack?

Webhook URL n8n mengandung random path (contoh: /webhook/telegram/a1b2c3d4) — sulit ditebak. Tambahan security: (1) Allowlist Chat ID di workflow, (2) Secret token di header (Telegram support X-Telegram-Bot-Api-Secret-Token), (3) Cloudflare WAF rule: allow only Telegram IP ranges (149.154.160.0/20, 91.108.4.0/22, dll). Template kelas include security checklist.

Kesimpulan

Fitur kirim judul via Telegram untuk generate artikel otomatis adalah “killer feature” sistem auto-content: mobile-first, zero friction, real-time feedback. Dengan command parsing yang robust, scheduling fleksibel, approval flow, error handling, dan security — Anda punya **content production system di genggaman tangan**.

Jangan bangun dari nol. Template Auto Content SEO di Kelas n8n Karyawan AI sudah include semua fitur di atas — import, isi Bot Token, set Webhook, test, active. Sistem siap produksi dalam 30 menit.

🎯 HP Jadi Content Command Center — Kirim Judul, Dapat Artikel

Telegram bot integration lengkap: parsing, scheduling, approval, error handling, multi-command, security.

DAFTAR KELAS & DAPATKAN TELEGRAM BOT TEMPLATE

Scroll to Top