Altan
HomeDiscordStatus
HomeDiscordStatus
  1. Projects
  • What is Altan?
  • Support Options
  • Projects
    • Create Your First Project
    • App Navigation & Settings
    • Building Tips
    • The Art of Prompting
    • Publishing Your App
    • Rollback and Checkpoints
    • Instantly Resolve Errors
  • Databases
    • Introduction
    • Security
    • Technical Overview
  • AI Agents
    • What is an AI Agent?
    • Create your first AI Agent
    • Tools
    • Interacting with Your AI Agent
    • Technical Overview
    • Altan Frontend SDK
      • Altan Frontend SDK
  • Flows
    • Create your first Flow
    • Automation basics
    • Adding modules
    • Types of modules
    • Passing data
    • Filters
    • Debugging
    • Retrigger events
    • Version History
    • Overwrite connection
    • Task credits
  • Integration
    • Magic Link
    • Altan Integrator
    • Create your integration
  • Authentication
    • Authentication
  • Payments
    • Checkout Session
    • Object Storage
  • Media
    • Media
  • Partner Program
    • Who are our Partners?
    • Partner Program Benefits
    • How to import projects into Altan
    • How to export projects from Altan
    • Work collaboratively
    • How to start on Altan
    • Become an Altan Partner
  • API Reference
    • account
      • Create Account
      • Get Account Gq
      • Get Account Public
      • Get Account Usage
      • Patch Account
      • Delete Account
      • Get Account Users
      • Create Custom Webhook
      • Create Media
      • Create Media From Url
      • Create Multiple Media
      • Create Token
      • Create Agent
      • Upsert Flow
      • Fetch User Account Notifications
      • Create Altaner
      • Get Selected Template Version
      • Get Latest Template Version
      • Get Template Version
      • Invite User
      • Create Interface
      • Get Members
      • Get Account Connections
      • Get Apikey
      • Delete Apikey
    • project
      • Get Altaner
      • Create Project V2
      • Update Altaner
      • Delete Altaner
      • Get Altaner Flows
      • Clone Altaner
      • Update Altaner Positions
      • Create Altaner Component
      • Update Altaner Component
      • Get Altaner Component
      • Atomic Update Altaner Component
      • Delete Altaner Component
      • Duplicate Altaner
      • Create Idea
    • interface
      • Start Dev Server
      • Get Dev Status
      • Send Dev Error To Agent
      • Revise Interface
      • Get Dev Errors
      • Log Error
      • Create Or Overwrite File
      • Update File
      • Create Multiple Files
      • Read File
      • Read Multiple Files
      • Delete File
      • Rename File
      • Update Files Pattern
      • Search In Files
      • Search And Replace
      • Preview Updates
      • Install Libraries
      • List Tree
      • List Tree Json
      • Get Repo Status
      • List Branches
      • Create Branch
      • Delete Branch
      • Switch Branch
      • Clone Repo
      • Merge Branch
      • Commit Changes
      • Get Diff Changes
      • Accept Changes
      • Discard Changes
      • Push Changes
      • Pull Changes
      • Reset Repo
      • Get Repo Log
      • Restore Main
      • Get Public Interface
      • Get Interface By Name
      • Get Interface
      • Update Interface
      • Delete Interface
      • Get Interface Screenshot
      • Update Interface With Ai
      • Publish Interface
      • Vercel Webhook
      • Get Deployment Status
      • Add Collaborator
      • Get Deployment Logs
      • Fix Deployment With Ai
      • Add Domain
      • Get Domains
      • Remove Domain
      • Verify Domain
      • Add Env Variables
      • Get Env Variables
      • Delete Env Variable
      • Sync Env Variables
      • Rollback Deployment
      • Get Commit Details
      • Restore To Commit
    • flows
      • modules
        • Fetch Module
        • Update Flow Module
        • Delete Module
        • Fetch Graph Module
        • Rename Module
        • Update Position In Canvas
        • Update In Edge Filter
        • Update Route Condition Filter
        • Add Condition
        • Get Available Variables For Mappings
      • hooks
        • Get Webhook
        • Update Hook
      • executions
        • Get File Signed Url
        • Stream Execution
      • Fetch Flow Execution
      • Fetch Flow
      • Update Flow
      • Delete Flow
      • Get Latest Execution
      • Fetch Flow Schema
      • Get Flow From Hook
      • Get Flow Hook
      • Fetch Flow Executions
      • Fetch Flow Executions
      • Upsert Flow Module
      • Add Flow Module
      • Create Flow Duplicate
      • Clone Flow Modules
      • Paste Flow Modules
      • Delete Modules
      • Update Edge
    • media
      • Get Media Url
      • Delete Media
      • Get Multiple Media
      • Get 3D Media
      • Delete Model
      • Create 3D Model
    • agents
      • tools
        • Patch Tool
        • Patch Tool
      • authorizaiton requests
        • Create Authorization Request
        • List Authorization Requests
        • Get Authorization Request
        • Delete Authorization Request
        • Reject Authorization Request
      • Get Altan Agents
      • List Voices
      • Get Agent
      • Update Agent
      • Delete Agent
      • Get Agent
      • Create And Add Tool To Agent
      • Remove Tool And Space
      • Get User Agent Dm Room
      • Get Agent Gate
      • Get Agent Member Usage
  1. Projects

The Art of Prompting

What is Prompting?#

This guide is going to be like the 50 Shades of Prompts: Mastering AI Seduction
Most people think prompting is just typing a request into AI and hoping for the best. Wrong.
Prompting is the art of giving written instructions to guide the AI in building, modifying, or improving your app. The difference between getting a mediocre response and having AI build entire end-to-end apps for you comes down to how you prompt. Think of it as an interactive workflow—your prompts define what the AI creates.
The way you communicate with the AI determines the quality of the results. Since Altan leverages cutting-edge AI models, the way you structure your input significantly influences the outcome. The more context and clarity you provide, the better the results.
By mastering prompt engineering, you can:
Create stunning end-to-end apps
Debug faster with AI-generated solutions
Build and optimize apps effortlessly
Reduce time spent on trial and error
Achieve more accurate, predictable AI responses
And the best part? You don’t need to be an expert. With the right prompting techniques, you can unlock AI’s full potential in Altan—without wasting time on trial and error.

Why Prompting Is Critical for AI Development#

Unlike traditional coding, AI applications rely on structured communication. Providing AI with clear context, specific constraints, and step-by-step instructions ensures high-quality output. Mastering prompt engineering helps both developers and non-technical users build faster, debug smarter, and create complex apps.

Key Prompting Strategies#

Below are essential techniques to maximize the effectiveness of your prompts. These strategies are flexible—combine and experiment with them to suit your project’s needs.

1. Start with Context#

Providing background information helps the AI understand your objective before executing specific tasks. The more details you give, the better the AI will grasp what you want.
Example:
"I’m creating an app that helps users plan and track their daily habits. It should:
Allow users to set up personalized habit goals
Provide reminders and notifications
Track progress with visual reports
Offer motivational quotes or tips based on user activity
Start by designing the interface for setting up new habits and tracking progress."

2. Build in Steps (Prompt Iteration)#

Instead of requesting a fully built automation in one go, break it down into smaller tasks. This improves accuracy and reduces errors.
🚫 Avoid:
"Create a task management app with a simple to-do list and project tracking."
✅ Better Approach:
"Design a collaborative task management app for remote teams."
"Allow users to assign tasks, set deadlines, and track progress in real-time."
"Enable teams to comment, share files, and provide feedback directly on tasks."
"Integrate with calendar apps for deadline tracking and reminders."

3. Understanding the AI’s "Mindset"#

AI models, including those powering Altan, do not "understand" in a human way—they predict responses based on patterns. To guide them effectively:
Be explicit: Instead of “build a login page,” specify “create a login page using React, with email/password authentication”
Use formatting tricks: AI prioritizes the beginning and end of prompts—put important details upfront.
Explain relationships: Instead of “add a filter,” clarify “add a dropdown filter for categories that dynamically updates the results.”

4. Training Prompting#

A structured, labeled approach for clear AI instructions:
# Context
## Task
### Guidelines
#### Constraints
Example:
# Context: Building a task management app for remote teams
## Task: Create a dashboard layout
### Guidelines: Must include task lists, deadlines, and a priority indicator
#### Constraints: Keep it minimalistic and mobile-friendly

5. Enhance Prompt#

The quality of your prompts significantly influences AI output. The more refined your prompt, the higher the quality of the output you receive.
Provide as much detail as possible.
Use the "targeted edit" feature to precisely modify components.

6. Starting a New Project#

Use this proven structure for starting a new project:
1.
Start with "I need a [type] application with:"
2.
Elaborate on the tech stack—Frontend, styling, Authorization, Database.
3.
Define core features including main and secondary features.
4.
Direct the AI to start with a specific section, e.g.: "Start with the main page containing: [Detailed page requirements]."
We recommend beginning with a blank project and gradually building upon it.

7. Diff & Select#

Whenever you request Altan to implement a particular change in any file, it will rewrite the entire file or modify existing content. To ensure minimal changes, provide clear instructions specifying what should and shouldn’t be altered.

8. Lock Files#

Since Altan currently lacks a built-in file locking system, you can guide the AI by specifying:
Prompt:
"Please refrain from altering pages X or Y and focus changes solely on page Z."

9. Optimize for Mobile#

Ensure the app's mobile experience is optimized while maintaining its design and functionality.
Example Prompt:
"Ensure the dashboard layout adapts seamlessly to mobile, with touch-friendly buttons and responsive spacing."

10. Knowledge Base#

Providing detailed context about your project early on is crucial. Altan refers to this as "AI Knowledge." Ensure your project includes:
User Flow: Outline how users navigate your app.
Tech Stack: Define front-end, back-end, and database technologies.
Frontend Guidelines: Establish design principles, styling, and layout.
Backend Structure: Explain databases, authentication, and API endpoints.
You can see the AI Knowledge on your app Settings
Example:
"Before writing any code, review the AI Knowledge and share your understanding of my project."

11. Debugging Prompts#

If something isn’t working, describe the issue clearly instead of just saying “fix it.”
🚫 Unclear Prompt:
"The app layout is broken. Fix it!"
✅ Better Approach:
"After resizing the window, the sidebar overlaps with the main content. It should remain fixed on the left. Adjust the layout to maintain proper spacing."
If errors persist, try:
Retracing Your Steps – Review what you initially asked Altan to do.
Breaking It Down – Identify misaligned sections.
Using Images – Show Altan the UI result versus the intended outcome.
Debugging Prompt Example:
"Use chain-of-thought reasoning to identify the root cause of this error: [Paste Error Message Here]."

12. Using Role-Based Prompts#

Sometimes, assigning a role to the AI can enhance responses.
Example:
"Act as a senior front-end developer and optimize this React component for performance."

Final Thoughts#

Mastering prompt engineering isn’t just about better AI interactions—it’s about boosting efficiency, reducing development cycles, and unlocking new automation possibilities. Whether you're debugging workflows, optimizing AI outputs, or integrating complex automations, structured prompting helps you achieve your goals faster and with fewer headaches.
Focus on your big ideas—Altan and automation tools will handle the execution. Whether you're a seasoned developer refining 15-year-old code or a non-technical user crafting innovative applications, the right prompting strategy is your most powerful tool.
Modified at 2025-03-21 16:20:20
Previous
Building Tips
Next
Publishing Your App
Built with