How to Use AI in Slater to Write JavaScript Code

Slater offers powerful AI features to assist in writing JavaScript code efficiently. With customizable editor options and model selections, users can tailor the AI output to their workflow.

Using AI in the Slater Editor

1. Choose Your Editor Mode

  • Code: Focuses purely on generating code.
  • Code + Tools: Provides code suggestions alongside additional tools for enhanced productivity.
  • Tools Only: Access supporting tools without direct code suggestions.

Tip: Always have one of the tools options selected to access AI-powered features.

2. Write a Prompt for AI

  • Type a clear and specific prompt describing the JavaScript functionality needed.
  • The more detailed the prompt, the better the AI can assist.

3. Review and Use AI Output

  • After submitting a prompt, the AI will generate a response.
  • Click the copy button to quickly paste any suggested code into the editor.

Screenshot 2026-01-10 at 8.32.23 AM.png


Account Features and Model Selection

  • Pro Accounts: Gain access to the latest AI models, offering advanced capabilities and improved code suggestions.
  • Free Accounts: Use lower-cost AI models for basic code generation and assistance.

Adjusting AI Settings in Project Settings

  • Navigate to Project Settings > Chat Settings.
  • Code Only Mode: Enable this to receive only code output (no explanations) from the AI.
  • Model Selection: Choose the desired AI model based on your account type.
  • System Prompt: Add or modify a system prompt to guide the AI’s behavior and results.
Jared Malan