Developer Guide

Creating an Agent App

How to register a new Agent App on the AssistMe platform.

There are two ways to create an Agent App:

  1. Developer Portal (in-app UI) — for most developers
  2. Edge Function API (HTTP) — for automation and CI/CD

Via the Developer Portal

Navigate to DeveloperRegister New App inside the AssistMe app. The registration form collects:

Basic Information

FieldRequiredDescription
App NameYesDisplay name shown in the store (e.g., "My Weather App")
SlugYesUnique identifier, auto-generated from name. Lowercase letters, numbers, and hyphens only. Must start and end with a letter or number.
DescriptionNoShort description shown in store listings
CategoryNoOne of: productivity, health, education, social, finance, lifestyle, utility, entertainment. Defaults to utility.
Long DescriptionNoDetailed description shown on the app detail page
Brand ColorNoHex color for the app icon background. Choose from 8 preset colors. Defaults to #6366f1 (indigo).
Icon URLNoCustom icon image URL
TagsNoSearchable tags for discoverability (array of strings)

Agent Configuration

FieldDefaultDescription
System PromptInstructions that define the agent's persona and behavior
ModelClaude Sonnet 4.6AI model. Options: Claude Sonnet 4.6, Claude Haiku 4.5, Claude Opus 4.6
Temperature0.7Creativity level (0 = deterministic, 1 = maximum creativity)
Max Tokens1024Maximum response length (1–32,768)
Welcome MessageFirst message displayed when a user opens the app
Suggested PromptsUp to 4 quick-start prompts shown as tappable buttons
ToolsCapabilities the agent can use
Memory EnabledOffWhether the agent remembers context across sessions
Max Context Messages50Number of conversation history messages to include (1–500)

Available Tools

ToolDescription
web_searchSearch the web for information
code_execExecute code snippets
image_genGenerate images
file_readRead files
calculatorPerform calculations
calendarAccess calendar data
remindersManage reminders
knowledge_baseQuery a knowledge base

Via the API

Send a POST request to the agent-app-register edge function:

curl -X POST "${SUPABASE_URL}/functions/v1/agent-app-register" \
  -H "Authorization: Bearer ${AUTH_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "slug": "my-weather-app",
    "name": "My Weather App",
    "description": "Get personalized weather forecasts",
    "category": "utility",
    "color": "#3b82f6",
    "system_prompt": "You are a weather assistant. Provide accurate, concise weather information.",
    "model": "claude-sonnet-4-6",
    "temperature": 0.5,
    "max_tokens": 2048,
    "tools": ["web_search"],
    "welcome_message": "Hi! Ask me about the weather anywhere in the world.",
    "suggested_prompts": [
      "What is the weather today?",
      "Will it rain this week?",
      "What should I wear tomorrow?"
    ],
    "memory_enabled": false,
    "max_context_messages": 50,
    "tags": ["weather", "forecast"],
    "long_description": "Get detailed weather forecasts for any location worldwide."
  }'

Validation Rules

The registration endpoint enforces these rules:

  • slug: Must match /^[a-z0-9][a-z0-9-]*[a-z0-9]$/ — lowercase alphanumeric with hyphens, no leading/trailing hyphens, minimum 2 characters
  • name: Required, non-empty after trimming
  • category: Must be one of the 8 valid categories (if provided)
  • temperature: Must be between 0 and 1 (if provided)
  • max_tokens: Must be an integer between 1 and 32,768 (if provided)
  • max_context_messages: Must be an integer between 1 and 500 (if provided)
  • slug uniqueness: Returns HTTP 409 if the slug is already taken

What Happens After Registration

  1. The app is created with status draft
  2. Your user ID is set as the developer_id — only you can publish versions
  3. The app is visible only to you in the Developer Portal
  4. To make it available to users, you need to publish a version and pass review