Skip to content

Build apps

An app is a folder with an ai-app.yaml file. Start from a blueprint, then change settings or add your own Python.

Start from working code

The public repository has tested example apps for every use case and one example per feature, plus the Python SDK source (including how each blueprint works) and the JavaScript SDK. git clone https://github.com/Sandaal/ai-app-server.git

Learn the basics

  1. Your first app: a blueprint app, then an app with your own Python handler.
  2. Example apps: complete, tested apps for every use case, to copy and change.
  3. The ten blueprints: what each ready-made app does, and how to change their code.
  4. The ai-app.yaml file: every section, in one page.

Add features

I want to… Guide
answer from documents, websites, SharePoint, databases Documents and connectors
write my own routes in Python Python handlers
remember conversations, store data, search Storage, memory and search
let the model call my functions or MCP servers Agents, tools and MCP
have a person approve a step (refunds, publishing) Workflows and approvals
run work in the background, on a schedule, or on events Jobs, schedules and events
block or redact unsafe content Guardrails
put a chat box or upload on my web page Pages and web components
call an app from my code (JS, Python, curl, OpenAI SDKs) Call apps from your code
let Claude, Copilot or IDE agents use my app Publish apps to AI agents (MCP)
test my app and check answer quality Test and evaluate
see my own steps in traces Traces in your code
work in VS Code VS Code

The development loop

aiapp new knowledge-chat my-app --provider openai   # start from a blueprint
cd my-app
aiapp dev          # serve this folder; every save redeploys (a broken save keeps the last good code)
aiapp test         # run tests/ with scripted models
aiapp deploy       # a new immutable version, zero downtime
aiapp logs         # model calls: tokens, cost, latency
aiapp trace        # requests, step by step