explaingit

tzz1289328163-tzz/one-sentence-ai-food-ordering

Analysis updated 2026-05-18

19HTMLAudience · vibe coderComplexity · 2/5Setup · easy

TLDR

A prototype that turns one natural language sentence into a food delivery recommendation, cart, and order flow.

Mindmap

mindmap
  root((AI Food Ordering))
    What it does
      One sentence request
      AI recommendation
      Explainable agent steps
      Cart and checkout
    Tech stack
      HTML CSS JS
      Node.js Express
      GLM AI
    Use cases
      Chat ordering demo
      Explainable AI flow
      Full order path demo
    Audience
      Vibe coders
      Prototypers
    Setup
      Add Zhipu API key
      npm install
      npm start
    Future ideas
      Real map delivery
      Payment risk checks
      User profiles
      Real database

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Prototype a chat style food ordering interface driven by natural language.

USE CASE 2

See how an AI agent explains its intent, extracted entities, and confidence for a recommendation.

USE CASE 3

Demo a full order flow from chat suggestion to cart to confirmation using seeded local data.

USE CASE 4

Learn how to proxy a GLM AI model through a small Express server.

What is it built with?

HTMLCSSJavaScriptNode.jsExpressGLM

How does it compare?

tzz1289328163-tzz/one-sentence-ai-food-orderingabduznik/portfolio-dumperadcbueno/flashcards
Stars191919
LanguageHTMLHTMLHTML
Setup difficultyeasyeasyeasy
Complexity2/52/51/5
Audiencevibe coderdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires a Zhipu (GLM) API key set in a local .env file.

In plain English

One Sentence AI Food Ordering is a prototype that turns a single natural language request, such as I want something light, under 30 yuan, and delivered fast, into a food delivery recommendation. It understands taste preferences, budget, delivery time, dietary restrictions, and address from one sentence, then suggests one to three matching restaurant options. The project is built as an explainable agent. Instead of just showing a recommendation, it displays the underlying intent it detected, the entities it extracted from the sentence, the missing information it still needs, its confidence level, any clarifying questions it asks the user, and the current step in its process. The full flow moves from a chat style request to intent recognition, entity extraction, filling in missing details, deciding whether to ask a clarifying question, searching for matching restaurants and dishes, filtering and ranking results, showing recommendation cards, adding items to a cart, and confirming the order. The application covers the complete ordering path, from the initial chat recommendation to a restaurant detail page, a shopping cart, order confirmation, and order history. The frontend is built with plain HTML, CSS, and JavaScript, and runs as static pages. The backend is a small Node.js and Express server that proxies requests to a GLM AI model from Zhipu for the natural language understanding and streaming responses. Everything can run locally without complex build tooling. To try it, a user copies the example environment file, adds their own Zhipu API key, installs the server dependencies, and starts the Express server, then opens the chat page in a browser. Restaurant and dish data is seeded locally rather than pulled from a real backend service or database. The README lists several directions for future work: connecting to a real map service for delivery addresses and distance based delivery fees, adding a review step before payment for address, amount, and coupon changes, building user profiles from order history, supporting multiple AI models instead of just GLM, and replacing local browser storage with a real database so actual restaurants could use it.

Copy-paste prompts

Prompt 1
Help me set up this project locally and connect my own Zhipu GLM API key.
Prompt 2
Explain how the intent recognition and entity extraction flow works in js/ai.js.
Prompt 3
Show me how to replace the local seed data in js/data.js with data from a real database.
Prompt 4
Help me add a new clarifying question step to the ordering agent flow.
Prompt 5
Walk me through how the Express server in server/index.js proxies requests to the GLM API.

Frequently asked questions

What is one-sentence-ai-food-ordering?

A prototype that turns one natural language sentence into a food delivery recommendation, cart, and order flow.

What language is one-sentence-ai-food-ordering written in?

Mainly HTML. The stack also includes HTML, CSS, JavaScript.

How hard is one-sentence-ai-food-ordering to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is one-sentence-ai-food-ordering for?

Mainly vibe coder.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.