Generating Apps with AI
Generate complete applications with LLMs
Because ObjectQL applications are defined primarily by Metadata (YAML/JSON) rather than Code (Classes/Functions), LLMs can generate complete, working backends in a single pass.
This is "Zero-Shot Microservice Generation".
The Workflow
- Prompt: You ask the AI to design a system (e.g., "A Property Management System").
- Generation: The AI outputs a set of
*.object.ymlfiles. - Execution: You drop these files into your project, and the API is instantly live.
Prompting Guide
To get the best results, use a prompt that enforces the ObjectQL schema format.
Template
Act as an ObjectQL Architect.
I need a backend for [APP_DESCRIPTION].
Please generate the object definitions in YAML format. Follow these rules:
- Use standard types:
text,number,boolean,select,date,lookup.- For relationships, use
type: lookupwithreference_to: <object_name>.- Include
required: truefor important fields.- Suggest 2-3 essential objects.
Output the YAML for each object in a separate code block.
Example: Real Estate CRM
User:
"I need a backend for a Real Estate Agency to track Properties and Agents."
AI Output:
Automating the Process
You can build tools to automate this loop.
1. The Generator Script
Imagine a simple CLI tool that takes a user description and writes files to disk.
2. Hot Reloading
Since ObjectQL can load metadata at runtime, you can build Self-Evolving Apps.
- The App receives a request: "Add a 'renovation_date' field to Property."
- The App calls an LLM to update the YAML.
- The App reloads the metadata registry.
- The new field is immediately available via API.
Summary
ObjectQL turns software development into a Content Generation task. Instead of generating complex imperative code (which is brittle), you generate simple declarative configurations (which are robust).