Template ID: a2ef2e64-40e2-4c6a-99fc-767e3a30a963This template breaks down complex tasks into manageable steps by first creating a detailed plan, then executing it systematically.
Copy
curl -X POST "https://api.cloudcoding.ai/invoke" \ -H "Content-Type: application/json" \ -H "x-api-key: $CLOUDCODING_API_KEY" \ -d '{ "template_id": "a2ef2e64-40e2-4c6a-99fc-767e3a30a963", "variables": { "task": "Add user authentication with JWT tokens to this React application" }, "repo_url": "https://github.com/username/my-app", "github_token": "'$GITHUB_TOKEN'", "branch": "feature/auth", "haiku": false }'
Critical Limitation: You cannot change workingDir and use continueConversation: true in the same request. Each directory change requires a separate API call with a fresh conversation.
Work across different parts of your repository using separate API calls:
Copy
# ❌ INCORRECT - This example will NOT work as expected# The continueConversation with different workingDir will failcurl -X POST "https://api.cloudcoding.ai/invoke" \ -d '{ "messages": [ { "tools": "all", "content": "Migrate components to TypeScript", "workingDir": "./src/components" }, { "tools": "all", "content": "Now update hooks", "workingDir": "./src/hooks", "continueConversation": true // ❌ This will not work! } ] }'# ✅ CORRECT - Use separate API calls for each directory# First call - Componentscurl -X POST "https://api.cloudcoding.ai/invoke" \ -H "Content-Type: application/json" \ -H "x-api-key: $CLOUDCODING_API_KEY" \ -d '{ "messages": [ { "tools": "all", "content": "Migrate all components to TypeScript with proper type definitions", "workingDir": "./src/components" } ], "repo_url": "https://github.com/username/typescript-migration", "github_token": "'$GITHUB_TOKEN'", "branch": "migration/typescript", "haiku": false }'# Second call - Hookscurl -X POST "https://api.cloudcoding.ai/invoke" \ -H "Content-Type: application/json" \ -H "x-api-key: $CLOUDCODING_API_KEY" \ -d '{ "messages": [ { "tools": "all", "content": "Update the hooks to use TypeScript interfaces", "workingDir": "./src/hooks" } ], "repo_url": "https://github.com/username/typescript-migration", "github_token": "'$GITHUB_TOKEN'", "branch": "migration/typescript", "haiku": false }'# Third call - API Layercurl -X POST "https://api.cloudcoding.ai/invoke" \ -H "Content-Type: application/json" \ -H "x-api-key: $CLOUDCODING_API_KEY" \ -d '{ "messages": [ { "tools": "all", "content": "Update the API layer with TypeScript types", "workingDir": "./src/api" } ], "repo_url": "https://github.com/username/typescript-migration", "github_token": "'$GITHUB_TOKEN'", "branch": "migration/typescript", "haiku": false }'
The workingDir field allows you to focus the AI agent on specific parts of your repository:
Copy
{ "workingDir": "./src/components", "content": "Refactor all React components to use TypeScript"}
Important Limitation: When changing the workingDir, you cannot use continueConversation: true. Each directory change requires starting a fresh conversation. The AI agent gets mounted to the specified directory and cannot maintain context across different working directories.
Common Use Cases:
Focus on specific modules or directories
Large codebase organization
Component-by-component refactoring
Gradual migration workflows
Targeted testing and validation
Correct Usage Pattern:
Copy
# ❌ INCORRECT - This will not work as expected{ "messages": [ { "workingDir": "./src/components", "content": "Analyze React components" }, { "workingDir": "./src/utils", "content": "Now analyze utils", "continueConversation": true // ❌ Will not work with directory change } ]}# ✅ CORRECT - Each directory gets its own conversation{ "messages": [ { "workingDir": "./src/components", "content": "Analyze and refactor React components" } ]}
💬 Support: Contact our team for help with complex use cases
Pro Tip
Start with the Plan and Execute template (a2ef2e64-40e2-4c6a-99fc-767e3a30a963) for your first complex task. It breaks down work into manageable steps automatically.