Best Practices for AI Prompts for Building Apps

Alpha: Building apps with AI is currently in alpha. This feature is subject to change and may have bugs, issues, and limitations. We're actively improving it based on your feedback.

Writing effective prompts helps the AI agent understand your requirements and generate code that matches your vision. This article explains best practices for creating prompts that produce better results when building apps with AI.

Design your initial prompt

When you create your initial prompt to build an app, use Wix-specific terminology and describe your app's goals and users. This style helps the AI agent understand your requirements and generate code that matches your vision.

Wix-specific terminology

Use Wix platform-specific terms in your initial prompts to help the AI understand what you need, such as:

Describe your app's goals and users

Write specific, detailed prompts and avoid open-ended descriptions. Follow these guidelines:

  • Describe the goal, target users, and key features in a clear, concise way.
  • Explain how users interact with your app and what the user experience looks like. These details help the AI understand the context and generate appropriate code.

Note: View the sample prompts below the AI chat for examples of effective prompts.

Iterate on your app

After the initial build, you can prompt the AI to modify your app in the following ways:

  • When something doesn't work, copy and paste the exact error message from the console. The AI agent can read your code but can't run your app, so it needs the error message to understand what went wrong and suggest a fix.
  • Request to add extensions.
  • Describe UI changes you want implemented in your app.
  • Request to add permissions.

See also

Did this help?