Low-code app building
Build one useful AI app—two ways.
This page explains two practical routes for turning a business idea into a working AI application. The OpenAI SDK route gives you a code-based application with a server, controlled data access, integrations, and room to grow into a customer-facing product. The ChatGPT Sites and Codex route helps you create a focused internal tool by describing the workflow in plain language, reviewing the first version, and refining it through conversation.
Both routes begin with the same discipline: define one useful job, provide reliable context, keep consequential actions under human approval, and test the result with realistic cases. Use the comparison below to decide which route fits your project, then follow the step-by-step example to build a support-policy assistant and understand what changes when you move from a learning prototype to a more integrated business system.
Version 1
Build with the OpenAI SDK.
The SDK route is for teams that need to place an AI capability inside a real application. You build the interface and server, keep the API key on the server, decide which business data the model can access, and connect the workflow to approved tools or systems.
It gives you more control over authentication, logging, evaluation, costs, and future integrations. That control also means more responsibility: someone must maintain the code, protect data, test the model’s behavior, and define what happens when the answer is uncertain.
01 · ScopeWrite one job: “help a specialist draft a policy-grounded reply; never send it.” Define what evidence must appear and who approves.
02 · InterfaceCreate a simple form for the question, customer facts, and policy selection. Show the resulting draft and its cited sources.
03 · ServerKeep the API key on a server—not in browser code. The server receives the form data, applies business rules, and calls the model.
04 · ContextSend only the approved policy excerpt and case facts needed for this decision. Add source names and timestamps.
05 · EvaluateTest 20 realistic cases. Score source accuracy, missing details, unsafe claims, review time, and corrections.
import OpenAI from "openai";
const client = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });
const response = await client.responses.create({
model: "your-approved-model",
input: "Draft a reply using only the supplied policy and case facts."
});
This is an illustrative server-side pattern, not a complete production application. Review the current OpenAI Responses API reference ↗ before implementing.
Version 2
Build with ChatGPT Sites and Codex.
The ChatGPT Sites and Codex route is for learning, prototyping, and focused internal tools. You describe the user, task, inputs, rules, and desired result in plain language; Codex creates a first version that you can inspect and improve through targeted requests.
This route makes it easier to move from an idea to a testable workflow without writing all the initial code yourself. It is best when the scope is narrow and the data is reviewed or supplied as examples, while more complex live integrations and operational controls may require the SDK route.
A guided build loop
DescribeState the user, job, rules, and success measure.
BuildCodex creates the first working version.
ReviewTest the main workflow and inspect the result.
RefineRequest specific changes and controls.
DeployShare with the intended audience.
Starter prompt
Build a lightweight internal support-policy assistant.
User: a support specialist.
Input: customer question, product, and policy category.
Output: a short draft reply plus the policy source used.
Rules: do not send email, do not promise refunds, and show
“Needs human review” before the specialist copies a response.
Use sample policy data for the first version. Include a page that
shows 20 test cases and the metrics we should review.
ReviewCheck the structure, labels, calculations, and main workflow as a real user would. Ask for specific changes, such as “make sources visible above the draft.”
DeployPublish only after checking the content and access audience. Treat the first release as a pilot, not a production system.
Know the limitChatGPT Sites is designed for focused lightweight tools. It does not directly connect to live data sources today, so use sample or reviewed data for this version.
OpenAI describes ChatGPT Sites as a way to create and share lightweight sites or apps from Codex, starting from a plain-language description. See the official ChatGPT Sites guide ↗.