Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Build a LINE and Discord Order Lookup Bot with n8n, LangBot and GPT-6 Astra

说明与用途

使用 n8n、LangBot 和 GPT‑6 Astra 构建的 LINE/Discord 机器人,自动提取订单 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