Okteto AI - Getting Started
Welcome to Okteto AI! This guide will help you get up and running quickly with AI-powered development agents in your Okteto environments.
📋 Prerequisites
Before you begin:
- ✅ Your administrator has enabled Okteto AI for your organization
- ✅ You have access to the Okteto Dashboard
- ✅ You can see the Agents tab in your dashboard
Don't see the Agents tab? Contact your administrator to request access.
🚀 Your First Agent in 3 Minutes
Step 1: Open the Agents Tab
Navigate to the Agents tab in your Okteto Dashboard.
Step 2: Choose Your Starting Point
You have two options:
Option A: Work with an Existing Repository
- Paste your repository URL (e.g.,
https://github.com/yourorg/yourrepo) - The agent will clone and analyze your codebase
- Perfect for adding features or fixing bugs
Option B: Start Fresh
- Select "New Project"
- Describe what you want to build
- The agent will create everything from scratch
Step 3: Describe Your Task
Write a clear, specific prompt. For example:
Create a Python FastAPI application with:
- User registration endpoint with email validation
- Login endpoint returning JWT tokens
- PostgreSQL database with SQLAlchemy
- Automated tests for all endpoints
Step 4: Launch and Monitor
- Press Enter or click Launch Agent
- Watch the real-time logs as your agent:
- Sets up the environment
- Installs dependencies
- Writes code
- Runs tests
- Validates the implementation
- Click on Open Editor to view an embedded Visual Studio Code where you can monitor and audit all code changes
Step 5: Review and Deploy
Once complete:
- Preview: Click any generated endpoints to see your app live
- Review: Check the code changes and test results
- Accept: Just ask the agent to create a pull request
💡 Quick Tips for Success
Writing Effective Prompts
Do This ✅
"Add a REST endpoint at /api/users/:id/avatar that accepts
image uploads (JPEG/PNG only, max 5MB), resizes to 200x200,
stores in S3, and returns the CDN URL"
Not This ❌
"Add image upload"
Common First Tasks
Start with these proven scenarios:
-
Add an API Endpoint
Add a health check endpoint at /health that returns
server status, database connectivity, and uptime -
Create a New Service
Create a Node.js microservice for sending emails with
SendGrid, including templates and retry logic -
Fix a Bug
Debug why the user authentication is failing with
401 errors after 15 minutes and implement a fix -
Add Tests
Write comprehensive unit tests for the OrderService
class with at least 80% coverage
📖 Download the Complete Prompt Guide
Want to master Okteto AI? Download our comprehensive prompt guide with:
- The 5-pillar framework that transforms frustrating AI interactions into production-ready solutions
- Advanced techniques for complex tasks
📥 Download the Okteto AI Prompt Guide (PDF)
🎯 Best Practices
1. Start Small, Think Big
- Begin with simple, well-defined tasks
- Build confidence with successful completions
- Gradually increase complexity
2. Provide Context
Good prompts include:
- What: The specific feature or fix needed
- Where: Relevant files, endpoints, or services
- How: Technical requirements or constraints
- Why: Business logic or user needs (when relevant)
3. Leverage Parallel Agents
Run multiple agents simultaneously:
- Agent 1: Adding new features to the frontend
- Agent 2: Optimizing database queries
- Agent 3: Writing documentation
4. Review Before Merging
Always:
- Run the preview environment
- Check test results
- Review code for security and best practices
- Validate against your requirements
5. Iterate and Refine
If the first result isn't perfect:
- Provide specific feedback
- Ask for modifications
- Guide the agent with additional context
🔧 Common Workflows
Feature Development Workflow
- Describe the feature with acceptance criteria
- Let agent implement the initial version
- Test in preview environment
- Request adjustments if needed
- Create PR when satisfied
Bug Fixing Workflow
- Describe symptoms and error messages
- Let agent investigate and propose fix
- Verify fix in preview environment
- Run regression tests
- Deploy fix via PR
Refactoring Workflow
- Specify refactoring goals (performance, readability, etc.)
- Define constraints (maintain API compatibility, etc.)
- Review changes carefully
- Validate all tests still pass
- Deploy incrementally