Build a LINE and Discord Order Lookup Bot with n8n, LangBot and GPT-6 Astra
Описание и применение
Бот на LINE и Discord, использующий n8n, LangBot и GPT‑6 Astra, автоматически извлекает ID заказа, ищет его в API и возвращает статус в естественном языке, снижая ручную поддержку.
Задача
Customers ask “Where is my order?” via chat, but a model cannot determine shipment status without deterministic lookup.
Результат
The bot reliably answers order status queries, reducing manual support effort and providing consistent, natural‑language responses.
Рабочий процесс
- 1. Spin up Docker Compose with n8n, LangBot, and demo‑api services.
- 2. Configure n8n to receive webhooks from LangBot.
- 3. In n8n, parse incoming message to extract order ID using deterministic logic.
- 4. If ID missing or unknown, branch to a fallback response without calling GPT.
- 5. Call demo‑api to retrieve order details by ID.
- 6. Pass API response to GPT‑6 Astra for natural‑language explanation.
- 7. Return the formatted reply to the user via LangBot on LINE or Discord.
Доказательства
Where is my order? is a data lookup wearing the clothes of a chat question.
Missing IDs and unknown orders take a separate branch before any model call.
- Дата записи: 2026-09-21T12:30:33.705Z