Custom Apps - AI Creation Platform

Build custom applications with AI on top of the platform's modular infrastructure.

In all URLs below, replace XXX with your AI Apps Account ID, found in your account settings.

What Are Custom Apps?

The AI Creation Platform and how custom apps fit into the modular architecture
Show / Hide
Custom Apps is the core of the AI Creation Platform. The platform is built on a modular architecture where pre-built global apps handle everything that is too complex or too critical for AI to write reliably -- things like email delivery, SMS broadcasting, AI model integrations, payment processing, database management, and hosted websites. These global apps are production-tested, fully featured, and available to every account.
Custom apps fill in the gaps. They let you build exactly the functionality that is missing for your specific use case, on top of the foundation that the global apps already provide. Your custom app can call any global app command as a built-in function, store its own data, manage its own admin pages, and expose its own API endpoints, webhooks, and scheduled tasks -- all without managing servers, databases, or infrastructure.
The best approach to building with this platform:
1. Start with the global apps. Look at what is already available -- email, SMS, AI chatbots, AI calls, web hosting, and more. Even if you only need part of an app's functionality, it is already built and you only pay for what you use.
2. Connect apps together with Chain Commands. The visual logic editor lets you create automation sequences that call any combination of global and custom app commands in order, with conditional logic and variable passing between steps.
3. Build custom apps for what is missing. Whatever specific functionality, data storage, or unique logic your project still needs -- that is what custom apps are for.
Keep each custom app small and focused.
The most effective custom apps do one thing well. Even if a task involves a few API commands, a webhook, and a scheduled job, keep it all centered on one clear purpose. This makes the AI much better at writing solid code and making good design decisions. If you need multiple pieces of functionality, create multiple small apps and connect them with Chain Commands. You can create as many custom apps as you want.
AI alone cannot build entire applications from scratch -- anyone claiming otherwise is not being honest. What AI can do is write focused functions that plug into an existing structure. This platform provides that structure: database storage, API routing, security, billing, background job processing, and connections to every global app. The AI only needs to write the unique logic for your specific task, using pre-made building blocks for everything else.

How the AI App Builder Works

The guided conversation that builds your app step by step
Show / Hide
Building a custom app is a conversation. You open your app in the admin panel and chat with the AI assistant, describing what you want your app to do. The AI asks questions to understand your requirements, then guides you through a structured 3-step process: Ideas, Config, and Code. Each step must complete before the next one begins, and you can go back and refine any step at any time.
The conversation is persistent -- you can close the browser and come back later, and the AI remembers everything you have discussed. As you describe features, the AI checks them against the global apps already on the platform and will tell you when an existing app already handles what you are asking for, so your custom app only contains what is truly new.
You control every step. The AI will not move to the next phase until you explicitly confirm you are satisfied with the current one. If you change your mind after code has been written, you can go back to the Ideas or Config step and the AI will update everything that follows.

Step 1: Ideas (App Summary)

Defining what your app needs to do
Show / Hide
The first step collects your requirements into a complete App Summary -- a plain-text outline of everything the custom app must do. Describe what data needs to be stored, what actions the app should perform, what triggers should start those actions, and any third-party services it needs to connect to. The AI asks follow-up questions to fill in gaps and produces a written summary of the full specification.
What to include in your description:
- What information the app needs to store and manage
- What actions users or systems should be able to trigger via API
- Whether anything needs to run automatically on a schedule
- Whether external services need to send data to your app via webhook
- How the app connects to other apps on the platform (email, SMS, AI, etc.)
You can run the Ideas step as many times as needed. Each time, the AI updates the App Summary without removing anything you have already confirmed. Review the summary carefully before moving on -- it is the foundation for everything that follows.

Step 2: Config (App Design)

Designing the technical structure before any code is written
Show / Hide
Once you confirm the App Summary, the AI designs the complete technical structure of your app. This is called the App Design Config -- a detailed description of every PHP function the app needs, organized by type: API commands, background jobs, webhooks, scheduled tasks, and database fields. No code is written at this stage. The AI describes what each function does, what data it takes in, what it returns, and how it interacts with the rest of the platform.
What the design covers:
API Commands -- secure endpoints that users or systems call through the API. Each command has a name, input fields, output fields, and a description of its behavior.
Background Jobs -- the same as API commands but run as background processes for bulk or long-running operations.
Webhooks -- open endpoints where third-party services can send data directly to your app via URL.
Scheduled Tasks -- functions that run automatically at set times via the platform's cron system.
Database Fields -- the data structure your app stores and manages, with field names and default values.
The AI will never design functions that duplicate what global apps already do. If your app needs to send an email, the design will call the email broadcast app through AppBridge rather than building email functionality from scratch.

Step 3: Code (App Functions)

AI writes all PHP functions based on the confirmed design
Show / Hide
Once you confirm the App Design Config, the AI writes all the PHP code for your app. Every function defined in the design is created with the exact behavior described. The code uses the platform's built-in functions for all database operations, file storage, and connections to global apps -- your custom code never touches raw database credentials, API keys, or infrastructure directly.
Built-in functions available to your custom app code:
CustomDatabaseQuery -- reads a row from your app's database storage.
CustomDatabaseUpdate -- writes or updates a field in your app's database storage. Creates the row automatically if it does not exist.
AppBridge -- calls any command from any global app on the platform, exactly as if it were called through the API. All authentication, billing, and error handling is built in.
WriteCustomAppFile -- stores files that need to be web-accessible, like images or generated content.
The generated code is validated for safety before it can run. The platform checks for prohibited operations like direct database access, hardcoded credentials, or unsafe system calls. If validation fails, the code is saved but not executed, and you can review and fix it in the admin panel.
You can re-run the Code step at any time to regenerate the functions. If you make changes to the App Summary or Design Config after code has been written, run the steps in order again (Ideas, then Config, then Code) so everything stays in sync.

Custom Admin Pages

Managing your app's data through auto-generated admin interfaces
Show / Hide
Custom apps can have their own admin area pages for managing data. Each page is defined by a slug configuration that controls what fields are shown, how records are listed, and what actions are available (create, edit, delete, search). The AI can create and edit these pages at any point during the conversation -- just ask it to set up an admin page for a specific type of data.
What admin pages provide:
- A list view showing all records with sortable columns and optional filters
- An edit view with form fields for each record's data
- Create, update, and delete capabilities controlled by permission flags
- Optional bulk editing and data export
- Connection to your app's database fields so data flows between the admin interface and your API commands
Admin pages are independent from the 3-step build process. You can ask the AI to create or modify an admin page at any time, whether you are still in the Ideas phase or have already generated code.

Admin: Managing Custom Apps

Creating and organizing your custom apps
Show / Hide
The Custom Apps list page shows all the custom apps on your account. From here you can create new apps, manage existing ones, and open any app to start or continue the AI-guided build conversation. Each app has a name, optional description, and notes field for your own reference.
App Fields
FieldDescription
Name The display name for this custom app. Used to identify it in the admin panel and app list.
Description Optional description of what this app does. For your reference only.
Notes Optional internal notes. Not used in execution.
You can create as many custom apps as you want. Each app is billed at 25 cents per day plus normal storage and usage fees that vary based on what the app does and how often it runs. There is no limit on the number of apps per account.

How Endpoints Work

Two ways to call each endpoint - read this first
Show / Hide
App Command (API Call)
POST your request to https://api.aiappsapi.com with your API key and account ID in the POST body. The fields described in each section below go inside the jsonData POST field as a JSON-encoded string. Use this method when your server is making the call and you have your API credentials available.

Mode / Webhook (Direct URL)
POST directly to the endpoint URL shown in each section. The fields go in the POST body as standard form fields (the same fields you would include in an HTML form POST). Use this method for provider webhooks, website forms, or any third-party system that sends form data. No API key is required -- the account ID is part of the URL.
Custom apps use a unique calling pattern. Unlike global apps where the app name identifies the app, all custom apps share the app name custom. A separate field called appID identifies which specific custom app to run. This applies to all API calls, webhooks, and background jobs for custom apps.

Running Custom App Commands

app: custom  |  command: (varies per app)
Show / Hide
To call a custom app command through the API, set the app to custom and include the appID field to identify which custom app to run. The command name and the fields in jsonData depend on what your specific custom app was designed to do -- they are defined during the Config step when the AI designs the app's API commands.
POST App Command URL
https://api.aiappsapi.com     app: custom     command: (your command name)

Required Fields
Field NameField KeyNotes
App ID appID The unique identifier for your custom app. Found in the admin panel on the app's edit page.
Command-Specific Fields
Field NameField KeyNotes
Input Fields var1, var2, ... The fields your command accepts depend entirely on how the app was designed. Check the App Design Config in the admin panel to see what fields each command expects. Include them as key-value pairs in the jsonData.
Custom app commands work exactly like global app commands once they are running. The response format, billing, and error handling all follow the same platform standards. Your custom functions return the same structured response that any global app command would.

Webhooks and Background Jobs

Receiving external data and running scheduled tasks
Show / Hide
Webhooks:
If your custom app includes webhook endpoints (defined as modes in the design), external services can POST data directly to your app's URL. The URL follows the standard mode pattern with your account ID and the mode name. The app ID is included in the posted data so the platform knows which custom app to route to.
POST Webhook URL
https://api.aiappsapi.com/XXX/custom/(mode name)?appID=(your app ID)
Background Jobs:
Commands defined as background jobs in the design run as server-side processes that can handle bulk or long-running operations. They are triggered through the same API call pattern as regular commands, but the platform queues them to run in the background instead of returning an immediate response.
Scheduled Tasks:
Functions defined with a schedule in the design run automatically at the specified time via the platform's cron system. Scheduled tasks do not receive any input data -- they are designed to look up whatever they need from the database and perform their work independently.
All three of these -- webhooks, background jobs, and scheduled tasks -- use the same custom app code and have full access to CustomDatabaseQuery, CustomDatabaseUpdate, AppBridge, and all other platform functions. The only difference is how they are triggered.