Chatbot & Messaging Expert (2026 Edition)
English | Bahasa Indonesia
English
Orchestration & Integration
ai-llm-integration-expert: LLM-powered conversational AI and tool calling.
sse-websocket-streaming-expert: Real-time messaging protocols.
webhook-receiver: Secure webhook endpoints for messaging platforms.
async-queue-temporal-expert: Message queue processing for high-volume bots.
Description
Expert guide for building chatbots and integrating messaging platforms into applications. Covers WhatsApp Business API (Cloud API), Telegram Bot API, Discord.js v14, Slack Bolt, LINE Messaging API, and conversational AI patterns. Includes webhook verification, message handlers, interactive components (buttons, carousels), media handling, and AI-powered response generation.
Trigger Conditions
- Building a chatbot for WhatsApp, Telegram, Discord, or Slack.
- Integrating messaging platform APIs into existing applications.
- Creating AI-powered conversational agents on messaging platforms.
- Implementing webhook handlers for messaging notifications.
Platform Quick Reference
| Platform |
API Type |
Auth |
Message Types |
Webhook |
| WhatsApp Business |
REST (Cloud API) |
Bearer Token |
Text, Image, Template, Interactive |
✅ Verify token |
| Telegram |
REST (Bot API) |
Bot Token |
Text, Photo, Inline Keyboard, Callback |
✅ setWebhook |
| Discord |
Gateway + REST |
Bot Token |
Text, Embed, Components, Slash Commands |
Gateway events |
| Slack |
Events API + REST |
OAuth + Signing Secret |
Blocks, Modals, Slash Commands |
✅ Request signing |
Core Patterns
WhatsApp Business Cloud API
// Webhook verification + message handler
import { Hono } from 'hono';
const app = new Hono();
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.WA_VERIFY_TOKEN) {
return c.text(challenge!);
}
return c.text('Forbidden', 403);
});
app.post('/webhook/whatsapp', async (c) => {
const body = await c.req.json();
const message = body.entry?.[0]?.changes?.[0]?.value?.messages?.[0];
if (message?.type === 'text') {
await sendWhatsAppReply(message.from, `Echo: ${message.text.body}`);
}
return c.text('OK');
});
async function sendWhatsAppReply(to: string, text: string) {
await fetch(`https://graph.facebook.com/v21.0/${process.env.WA_PHONE_ID}/messages`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.WA_ACCESS_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ messaging_product: 'whatsapp', to, type: 'text', text: { body: text } }),
});
}
Telegram Bot
import { Bot, InlineKeyboard } from 'grammy';
const bot = new Bot(process.env.TELEGRAM_BOT_TOKEN!);
bot.command('start', (ctx) => ctx.reply('Welcome! How can I help?'));
bot.on('message:text', async (ctx) => {
const aiResponse = await generateAIResponse(ctx.message.text);
const keyboard = new InlineKeyboard()
.text('👍 Helpful', 'feedback_good')
.text('👎 Not helpful', 'feedback_bad');
await ctx.reply(aiResponse, { reply_markup: keyboard });
});
bot.callbackQuery('feedback_good', (ctx) => ctx.answerCallbackQuery('Thanks!'));
bot.start();
Orchestration & Integration
ai-llm-integration-expert, webhook-receiver, async-queue-temporal-expert
Bahasa Indonesia
Deskripsi
Panduan ahli untuk membangun chatbot dan mengintegrasikan platform messaging ke dalam aplikasi. Mencakup WhatsApp Business API, Telegram Bot API, Discord.js v14, Slack Bolt, dan pola AI percakapan.
Kondisi Pemicu
- Membangun chatbot untuk WhatsApp, Telegram, Discord, atau Slack.
- Mengintegrasikan API platform messaging ke aplikasi yang sudah ada.
- Membuat agen percakapan berbasis AI di platform messaging.
1---2name: chatbot-messaging-expert3description: Expert guide for chatbot and messaging platform integration (WhatsApp Business, Telegram Bot, Discord.js, Slack Bolt) and conversational AI / Panduan ahli integrasi chatbot dan platform messaging (WhatsApp Business, Telegram Bot, Discord.js, Slack Bolt) dan AI percakapan.4---56# Chatbot & Messaging Expert (2026 Edition)78[English](#english) | [Bahasa Indonesia](#bahasa-indonesia)910---1112<a name="english"></a>13## English1415### Orchestration & Integration16- **`ai-llm-integration-expert`**: LLM-powered conversational AI and tool calling.17- **`sse-websocket-streaming-expert`**: Real-time messaging protocols.18- **`webhook-receiver`**: Secure webhook endpoints for messaging platforms.19- **`async-queue-temporal-expert`**: Message queue processing for high-volume bots.2021### Description22Expert guide for building chatbots and integrating messaging platforms into applications. Covers WhatsApp Business API (Cloud API), Telegram Bot API, Discord.js v14, Slack Bolt, LINE Messaging API, and conversational AI patterns. Includes webhook verification, message handlers, interactive components (buttons, carousels), media handling, and AI-powered response generation.2324### Trigger Conditions25- Building a chatbot for WhatsApp, Telegram, Discord, or Slack.26- Integrating messaging platform APIs into existing applications.27- Creating AI-powered conversational agents on messaging platforms.28- Implementing webhook handlers for messaging notifications.2930---3132### Platform Quick Reference3334| Platform | API Type | Auth | Message Types | Webhook |35|----------|----------|------|---------------|---------|36| WhatsApp Business | REST (Cloud API) | Bearer Token | Text, Image, Template, Interactive | ✅ Verify token |37| Telegram | REST (Bot API) | Bot Token | Text, Photo, Inline Keyboard, Callback | ✅ setWebhook |38| Discord | Gateway + REST | Bot Token | Text, Embed, Components, Slash Commands | Gateway events |39| Slack | Events API + REST | OAuth + Signing Secret | Blocks, Modals, Slash Commands | ✅ Request signing |4041### Core Patterns4243#### WhatsApp Business Cloud API44```typescript45// Webhook verification + message handler46import { Hono } from 'hono';47const app = new Hono();4849app.get('/webhook/whatsapp', (c) => {50 const mode = c.req.query('hub.mode');51 const token = c.req.query('hub.verify_token');52 const challenge = c.req.query('hub.challenge');53 if (mode === 'subscribe' && token === process.env.WA_VERIFY_TOKEN) {54 return c.text(challenge!);55 }56 return c.text('Forbidden', 403);57});5859app.post('/webhook/whatsapp', async (c) => {60 const body = await c.req.json();61 const message = body.entry?.[0]?.changes?.[0]?.value?.messages?.[0];62 if (message?.type === 'text') {63 await sendWhatsAppReply(message.from, `Echo: ${message.text.body}`);64 }65 return c.text('OK');66});6768async function sendWhatsAppReply(to: string, text: string) {69 await fetch(`https://graph.facebook.com/v21.0/${process.env.WA_PHONE_ID}/messages`, {70 method: 'POST',71 headers: {72 Authorization: `Bearer ${process.env.WA_ACCESS_TOKEN}`,73 'Content-Type': 'application/json',74 },75 body: JSON.stringify({ messaging_product: 'whatsapp', to, type: 'text', text: { body: text } }),76 });77}78```7980#### Telegram Bot81```typescript82import { Bot, InlineKeyboard } from 'grammy';8384const bot = new Bot(process.env.TELEGRAM_BOT_TOKEN!);8586bot.command('start', (ctx) => ctx.reply('Welcome! How can I help?'));87bot.on('message:text', async (ctx) => {88 const aiResponse = await generateAIResponse(ctx.message.text);89 const keyboard = new InlineKeyboard()90 .text('👍 Helpful', 'feedback_good')91 .text('👎 Not helpful', 'feedback_bad');92 await ctx.reply(aiResponse, { reply_markup: keyboard });93});9495bot.callbackQuery('feedback_good', (ctx) => ctx.answerCallbackQuery('Thanks!'));96bot.start();97```9899## Orchestration & Integration100- `ai-llm-integration-expert`, `webhook-receiver`, `async-queue-temporal-expert`101102---103104<a name="bahasa-indonesia"></a>105## Bahasa Indonesia106107### Deskripsi108Panduan ahli untuk membangun chatbot dan mengintegrasikan platform messaging ke dalam aplikasi. Mencakup WhatsApp Business API, Telegram Bot API, Discord.js v14, Slack Bolt, dan pola AI percakapan.109110### Kondisi Pemicu111- Membangun chatbot untuk WhatsApp, Telegram, Discord, atau Slack.112- Mengintegrasikan API platform messaging ke aplikasi yang sudah ada.113- Membuat agen percakapan berbasis AI di platform messaging.