Backend AI

The Backend AI handles your entire backend — application code, APIs, database operations, and cloud infrastructure.

What It Does

Backend AI manages both your application code and the infrastructure it runs on. It writes server-side functions, configures cloud resources, and handles deployment — all as a unified workflow.

Cloud Functions & APIs

Write backend functions that run on the server — REST endpoints, webhooks, and business logic.

Process form submissionsHandle user authenticationRun business logic

Database Operations

Create queries, triggers, and data validation rules.

Save data to collectionsQuery and filter recordsSet up data hooks

Infrastructure

Provision and configure cloud resources — S3 buckets, email services, CDNs, and more.

Create S3 bucketsConfigure SES emailSet up CloudFront

Security

Implement access control, authentication, and data validation.

User authenticationRole-based accessInput validation

Supported Backend Types

AppsAI uses a template-driven architecture. Choose the backend framework that fits your needs:

Parse Server

Full-featured BaaS with cloud functions, user management, and real-time queries.

Express.js

Minimal, flexible Node.js framework for custom REST APIs.

Serverless

AWS Lambda functions with API Gateway for event-driven architectures.

Supabase

Open-source Firebase alternative with PostgreSQL and real-time subscriptions.

How to Use It

Describe backend functionality in your requests:

Creating an endpoint

"Create an API that sends a welcome email when a user signs up"

Infrastructure

"Set up an S3 bucket for user file uploads"

Full feature

"Add video uploads with S3 storage and a cloud function to process them"

Example: Parse Server Cloud Function

Here's what a typical cloud function looks like with the default Parse Server template:

// src/cloud/main.ts

Parse.Cloud.define('submitContactForm', async (request) => {
  const { name, email, message } = request.params;

  // Validate input
  if (!name || !email || !message) {
    throw new Error('Missing required fields');
  }

  // Save to database
  const Contact = Parse.Object.extend('Contact');
  const contact = new Contact();
  contact.set('name', name);
  contact.set('email', email);
  contact.set('message', message);
  await contact.save();

  return { success: true, message: 'Form submitted' };
});

Tips for Backend Features

  • Describe what the function should do, not how to implement it
  • Mention security requirements like "only logged-in users can access"
  • For full-stack features, the AI will coordinate with Canvas AI automatically
  • Backend AI handles both code AND infrastructure — no need to coordinate separately