chatbot-messaging-expert
Skill129 starsChanged 13 days agoMITView on GitHub
Chatbots & messaging APIs: WhatsApp Business, Telegram, Discord, Slack / Integrasi chatbot & messaging: WhatsApp, Telegram, Discord, Slack.
- Reads credentials
- Sends data out
In this repository372 other files it gives its agents.
- AGENTS.mdAGENTS.md
- rules/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/vibes-plug-anti-slop.mdcCursor rule
- .cursor/rules/vibes-plug-backend.mdcCursor rule
- .cursor/rules/vibes-plug-core.mdcCursor rule
- .cursor/rules/vibes-plug-devops.mdcCursor rule
- .cursor/rules/vibes-plug-frontend.mdcCursor rule
- .cursor/rules/vibes-plug-mcp.mdcCursor rule
- .cursor/rules/vibes-plug-skills.mdcCursor rule
- .cursor/rules/vibes-plug-testing.mdcCursor rule
- llms-full.txtllms.txt
- llms.txtllms.txt
- showcase/llms-full.txtllms.txt
- showcase/llms.txtllms.txt
- a2a-agent-protocol-expertSkill
- accessibility-testing-expertSkill
- adaptive-model-cascadeSkill
- affective-computing-emotion-aiSkill
- agentic-coding-workflow-expertSkill
- agentic-m2m-settlementSkill
- agentic-memory-architectSkill
- agentic-micro-economy-architectSkill
- ai-code-review-autonomousSkill
- ai-llm-integration-expertSkill
- ai-media-generation-expertSkill
- ai-prompt-engineering-expertSkill
- ai-safety-governance-expertSkill
- angular-expertSkill
- anti-slopSkill
- api-design-expertSkill
- api-gateway-proxy-expertSkill
- app-analyzer-optimizerSkill
- apple-ecosystem-expertSkill
- app-promo-media-expertSkill
- astro-framework-expertSkill
- async-queue-temporal-expertSkill
- authentication-identity-expertSkill
- autonomous-api-drift-healerSkill
- autonomous-red-teamerSkill
- autonomous-tdd-debuggerSkill
- biome-linter-formatter-expertSkill
- blockchain-web3-expertSkill
- brainstormingSkill
- browser-automation-expertSkill
- browser-extension-mv3-proSkill
- bun-runtime-expertSkill
- ci-cd-devops-architectSkill
- cloudflare-workers-expertSkill
- cloud-hosting-expertSkill
- coderabbitSkill
- compliance-gdpr-privacy-expertSkill
- composable-mach-architectSkill
- computer-use-os-agent-expertSkill
- context-window-engineerSkill
- cron-scheduler-expertSkill
- database-orm-expertSkill
- data-pipeline-etl-expertSkill
- data-telemetry-expertSkill
- data-visualization-expertSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 138
Mandatory Blue-Ocean Pairing: Always compose chatbot-messaging-expert with autonomous-api-drift-healer, formal-spec-z3-verifier, …
- Very specific: line 140
Pre-Disk Gate: Run vibes verify-gate and vibes skill auto-diff --json to inject <350-token slices and eliminate placeholder slop.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Chatbot & Messaging Platform Expert (2026 Edition)
English | Bahasa Indonesia
<a name="english"></a>
English
Orchestration & Integration
Connects and orchestrates with domain skills:
- UI & Chat Components:
senior-frontend,design-system-architect,ui-ux-pro-max,modern-web-guidance, andanti-slopfor web chat drawer widgets, message bubbles, typing indicators, quick reply chips, and streaming Markdown UI. - Visual Auditing:
visual-ui-auditorfor validating chat bubble contrast, mobile drawer responsiveness, and 1px borders. - AI & Realtime:
ai-llm-integration-expert,sse-websocket-streaming-expert, andvoice-ai-realtime-agentfor generative responses, RAG retrieval, and real-time socket connections. - Queue & Resilience:
async-queue-temporal-expertandrate-limit-abuse-preventionfor webhook ingestion, BullMQ job queues, and anti-spam protection. - Lifecycle:
brainstormingandzero-to-prod-orchestratorfor structured conversational system delivery. - Cross-Domain Synergy & Subagent Swarm Integration:
n8n-automation-expert,email-notification-expert
Description
Production guide for architecting, deploying, and scaling conversational bots across enterprise messaging platforms: WhatsApp Business Cloud API, Telegram Bot API (via grammY), Discord.js v14, Slack Bolt (Block Kit), and LINE Messaging API. Covers cryptographic webhook verification (Meta hub.challenge and Slack v0 HMAC signatures), interactive UI components (buttons, carousels, quick replies), session state persistence, media streaming, and integration with AI tool calling engines.
Trigger Conditions
- Integrating customer support or transactional notification bots for WhatsApp Business.
- Scaffolding Telegram automation bots with inline keyboards and deep linking.
- Building Discord slash command applications and voice channel event listeners.
- Developing Slack workspace applications with modal forms and Block Kit interactive layouts.
- Ingesting and verifying messaging webhooks with signature authentication.
Platform Quick Reference Matrix
| Platform | Protocol | Auth Mechanism | Primary Message Types | Webhook Verification |
| WhatsApp Business | REST (Meta Cloud API) | System User Token | Text, Interactive Buttons, Lists, Templates | hub.verify_token + hub.challenge |
| Telegram | REST (Bot API) | Bot Token | Text, Photos, Inline Keyboards, Web Apps | Secret token header (setWebhook) |
| Slack | Events API / Sockets | Bot Token + Signing Secret | Block Kit, Modals, Slash Commands | HMAC-SHA256 (v0=...) signature |
| Discord | Gateway (WebSockets) + REST | Bot Token | Embeds, Select Menus, Slash Commands | Ed25519 signature verification |
WhatsApp Business Cloud API Webhook Handler (Hono / TypeScript)
// src/routes/whatsapp-webhook.ts
import { Hono } from 'hono';
const app = new Hono();
// 1. Meta Webhook Handshake Verification
app.get('/webhook/whatsapp', (c) => {
const mode = c.req.query('hub.mode');
const token = c.req.query('hub.verify_token');
const challenge = c.req.query('hub.challenge');
if (mode === 'subscribe' && token === process.env.WHATSAPP_VERIFY_TOKEN) {
return c.text(challenge!, 200);
}
return c.text('Forbidden: Invalid verification token', 403);
});
// 2. Incoming Message Processing
app.post('/webhook/whatsapp', async (c) => {
const payload = await c.req.json();
const message = payload.entry?.[0]?.changes?.[0]?.value?.messages?.[0];
if (message && message.type === 'text') {
const senderPhone = message.from;
const incomingText = message.text.body;
// Acknowledge receipt immediately (WhatsApp requires <3s HTTP 200 response)
// Execute AI response generation asynchronously
c.executionCtx?.waitUntil(handleIncomingWhatsAppMessage(senderPhone, incomingText));
}
return c.json({ status: 'ok' }, 200);
});
async function handleIncomingWhatsAppMessage(to: string, prompt: string) {
// Call AI agent and send reply
await fetch(`https://graph.facebook.com/v21.0/${process.env.WHATSAPP_PHONE_NUMBER_ID}/messages`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.WHATSAPP_ACCESS_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
messaging_product: 'whatsapp',
to,
type: 'text',
text: { body: `AI Assistant: Processing your request...` },
}),
});
}Telegram Bot with Inline Buttons (grammY)
// src/bots/telegram-bot.ts
import { Bot, InlineKeyboard, webhookCallback } from 'grammy';
export const bot = new Bot(process.env.TELEGRAM_BOT_TOKEN!);
bot.command('start', async (ctx) => {
const keyboard = new InlineKeyboard()
.text('📦 Check Order', 'action_order')
.text('💬 Human Support', 'action_support')
.row()
.url('🌐 Open Web App', 'https://vibesplug.internal/app');
await ctx.reply(`Hello ${ctx.from?.first_name}! How can I assist you today?`, {
reply_markup: keyboard,
});
});
bot.callbackQuery('action_order', async (ctx) => {
await ctx.answerCallbackQuery({ text: 'Fetching order data...' });
await ctx.reply('Please reply with your Order Number (e.g., #ORD-12345).');
});Hard Guardrails (Declarative Invariants)
- Immediate Webhook Acknowledgment (< 3s Platform Timeout):
- Webhook endpoints for WhatsApp, Slack, and Telegram MUST acknowledge inbound delivery (
ack()or HTTP 200) within <3 seconds and offload LLM synthesis asynchronously via background queues. Blocking webhook responses with synchronous LLM calls is strictly prohibited.
- Webhook endpoints for WhatsApp, Slack, and Telegram MUST acknowledge inbound delivery (
- Mandatory Cryptographic Webhook Signature Verification:
- Webhook handlers MUST verify provider cryptographic signatures (
x-hub-signature-256HMAC-SHA256 on WhatsApp,x-slack-signaturev0 on Slack, Telegram secret token) before processing message payloads. Executing unverified webhook requests is strictly forbidden.
- Webhook handlers MUST verify provider cryptographic signatures (
- Bounded Session TTL & Ephemeral State Expiration:
- Conversation state and multi-step dialog contexts persisted in Redis or memory stores MUST enforce an explicit TTL <= 24 hours. Unbounded session accumulation is prohibited.
- Idempotent Inbound Message Deduplication:
- Inbound message processors MUST verify message IDs (
message.id,update_id, orevent_id) against a deduplication cache to prevent re-processing retried provider webhooks.
- Inbound message processors MUST verify message IDs (
Blue-Ocean Synergy & Anti-Commodity Protocol
- Mandatory Blue-Ocean Pairing: Always compose
chatbot-messaging-expertwithautonomous-api-drift-healer,formal-spec-z3-verifier,doku-mcp-server,agentic-m2m-settlement,post-quantum-crypto-migratorso commodity boilerplate is elevated into verified, self-healing production architecture. - Anti-Commodity Mandate: Eliminate brittle REST boilerplate: enforce OpenAPI/TypeSpec drift healing, idempotency keys, RFC 9457 Problem Details, and formal Z3 state-transition invariants.
- Pre-Disk Gate: Run
vibes verify-gateandvibes skill auto-diff --jsonto inject <350-token slices and eliminate placeholder slop.
Sovereign Execution, Token Efficiency & Invariants
| Dimension | Sovereign Mandate & Deterministic Contract |
| Frontier Model Cascade | Medium / High (Gemini 4 Neon, Gemini 4 Hydrogen, Gemini 4 Argon, GPT-5.6 Sol Medium, Claude Sonnet 5.5 High, Grok 4.7 High Fast) |
| Availability Fallback | Gemini 4 (Carbon/Hydrogen/Neon/Argon/Pro) -> Gemini 3.8 Flash; Claude Opus 5.5 -> Claude Opus 4.6 (Zero unhandled missing-model errors) |
| KV-Cache & Token Protocol | Pin static instructions & schemas at prompt prefix (kv-cache-prefix-optimizer); pass surgical CONTEXT_MAP.md slices (<250 tokens/call) during Swarm Fan-Out |
| SaaT CLI & MCP Dispatch | CLI: vibes skill exec chatbot-messaging-expert <audit|eval|verify|generate|blueprint> / MCP: vibes_skill_dispatch, vibes_ast_query, vibes_compile_cache, vibes_optimize_budget, vibes_verify_gate |
| NFR & Anti-Slop Invariants | Webhook ack latency P95 < 800ms (<3s platform timeout limit), 100% cryptographic signature verification, zero unauthenticated webhook processing; 100% complete zero-placeholder output verified via node scripts/check-anti-slop.js --strict |
<a name="bahasa-indonesia"></a>
Bahasa Indonesia
Integrasi Orkestrasi
Terhubung dan mengorkestrasi bersama skill domain:
- UI & Komponen Obrolan:
senior-frontend,design-system-architect,ui-ux-pro-max,modern-web-guidance, dananti-slopuntuk widget laci obrolan web (chat drawer), gelembung pesan, indikator mengetik, pill quick reply, dan antarmuka streaming Markdown. - Audit Visual:
visual-ui-auditoruntuk validasi kontras warna balon obrolan, responsivitas drawer mobile, dan border tajam 1px. - AI & Realtime:
ai-llm-integration-expert,sse-websocket-streaming-expert, danvoice-ai-realtime-agentuntuk jawaban generatif cerdas, RAG retrieval, dan koneksi socket dua arah. - Antrean & Ketahanan:
async-queue-temporal-expertdanrate-limit-abuse-preventionuntuk penyerapan webhook, antrean job BullMQ, dan pencegahan spam DDoS. - Siklus Hidup:
brainstormingdanzero-to-prod-orchestratoruntuk eksekusi sistem percakapan end-to-end. - Sinergi Lintas Domain & Integrasi Swarm Subagent:
n8n-automation-expert,email-notification-expert
Deskripsi
Panduan produksi untuk merancang, meluncurkan, dan menskalakan bot percakapan di berbagai platform perpesanan terkemuka: WhatsApp Business Cloud API, Telegram Bot API (via grammY), Discord.js v14, Slack Bolt (Block Kit), dan LINE Messaging API. Mencakup verifikasi webhook kriptografis (jabat tangan Meta hub.challenge dan tanda tangan HMAC Slack v0), komponen interaktif (tombol, list menu, keyboard inline), persistensi sesi pengguna, penanganan media, serta integrasi pemanggilan fungsi AI (tool calling).
Kondisi Pemicu
- Membangun bot layanan pelanggan (customer support) atau notifikasi transaksi otomatis di WhatsApp Business.
- Membuat bot otomasi Telegram dengan tombol inline interaktif dan integrasi Telegram Web App.
- Mengembangkan aplikasi Discord dengan slash command (
/order,/status). - Mengembangkan bot internal Slack dengan form modal interaktif (Block Kit).
- Memverifikasi webhook platform perpesanan agar kebal dari pemalsuan data (spoofing).
Pola Integrasi Slack Bolt (Slash Commands & Block Kit)
// src/bots/slack-app.ts
import { App } from '@slack/bolt';
const slackApp = new App({
token: process.env.SLACK_BOT_TOKEN,
signingSecret: process.env.SLACK_SIGNING_SECRET,
});
// Menangani perintah slash command: /faktur
slackApp.command('/faktur', async ({ command, ack, respond }) => {
// Wajib kirim ack() dalam 3 detik agar Slack tidak menampilkan error timeout
await ack();
await respond({
blocks: [
{
type: 'section',
text: {
type: 'mrkdwn',
text: `Halo <@${command.user_id}>, berikut adalah rincian faktur pesanan Anda:`,
},
},
{
type: 'actions',
elements: [
{
type: 'button',
text: { type: 'plain_text', text: 'Unduh PDF Faktur' },
action_id: 'btn_unduh_pdf',
style: 'primary',
},
],
},
],
});
});3 Aturan Emas Integrasi Platform Perpesanan
- Respons Webhook < 3 Detik: WhatsApp, Slack, dan Telegram akan memutus koneksi jika endpoint tidak mengembalikan HTTP 200 dalam 3 detik. Kembalikan respons 200 terlebih dahulu, lalu proses pembuatan jawaban AI secara asinkron di latar belakang (background job).
- Validasi Tanda Tangan Kriptografis: Selalu periksa tanda tangan incoming payload (
x-hub-signature-256di WhatsApp ataux-slack-signaturedi Slack) untuk mencegah pihak ketiga mengirim pesan palsu ke server Anda. - Penyimpanan Sesi Percakapan: Simpan konteks percakapan di Redis dengan TTL terukur agar pengguna dapat melanjutkan percakapan tanpa kehilangan konteks.
Sinergi Blue-Ocean & Protokol Anti-Komoditas
- Pasangan Wajib Blue-Ocean: Selalu komposisikan
chatbot-messaging-expertbersamaautonomous-api-drift-healer,formal-spec-z3-verifier,doku-mcp-server,agentic-m2m-settlement,post-quantum-crypto-migratoragar boilerplate standar naik kelas menjadi arsitektur produksi terverifikasi dan self-healing. - Mandat Anti-Komoditas: Hapus boilerplate REST rapuh: wajibkan deteksi drift OpenAPI/TypeSpec, idempotency key, error RFC 9457 Problem Details, dan verifikasi invarian state Z3.
- Gerbang Pra-Disk: Jalankan
vibes verify-gatedanvibes skill auto-diff --jsonuntuk menyuntikkan slice <350 token serta mencegah placeholder slop.
Matriks Eksekusi Berdaulat, Efisiensi Token & Invarian
| Dimensi | Mandat Berdaulat & Kontrak Deterministik |
| Kaskade Model Frontier | Medium / High (Gemini 4 Neon, Gemini 4 Hydrogen, Gemini 4 Argon, GPT-5.6 Sol Medium, Claude Sonnet 5.5 High, Grok 4.7 High Fast) |
| Invarian Fallback Ketersediaan | Gemini 4 (Carbon/Hydrogen/Neon/Argon/Pro) -> Gemini 3.8 Flash; Claude Opus 5.5 -> Claude Opus 4.6 (Bebas gagal saat model belum tersedia/kuota penuh) |
| Protokol Hemat Token & KV-Cache | Kunci instruksi & skema statis di prefix awal (kv-cache-prefix-optimizer); kirim potongan CONTEXT_MAP.md (<250 token/panggilan) saat Fan-Out |
| Eksekusi SaaT CLI & MCP | CLI: vibes skill exec chatbot-messaging-expert <audit|eval|verify|generate|blueprint> / MCP: vibes_skill_dispatch, vibes_ast_query, vibes_compile_cache, vibes_optimize_budget, vibes_verify_gate |
| Invarian NFR & Anti-Slop | Latensi ack webhook P95 < 800ms (batas timeout platform <3s), 100% verifikasi tanda tangan kriptografis, zero pemrosesan webhook tak terotentikasi; kode 100% tuntas tanpa placeholder diverifikasi melalui node scripts/check-anti-slop.js --strict |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

