diff --git a/src/components/robot/pages/RobotCreate.tsx b/src/components/robot/pages/RobotCreate.tsx index 0e44a023..fa6959db 100644 --- a/src/components/robot/pages/RobotCreate.tsx +++ b/src/components/robot/pages/RobotCreate.tsx @@ -267,13 +267,14 @@ const RobotCreate: React.FC = () => { - Record yourself + Manual Mode - You control the browser + Capture actions step-by-step + setGenerationMode('agent')} sx={{ @@ -284,271 +285,289 @@ const RobotCreate: React.FC = () => { transition: 'all 0.2s', '&:hover': { borderColor: '#ff00c3', - } + }, + position: 'relative' }} > + {/* Beta Tag */} + + Beta + + - AI Powered + AI Mode - AI will take care of everything + Describe the task. It builds it for you. - - {generationMode === 'agent' && ( - - - setExtractRobotName(e.target.value)} - label="Robot Name" - /> - - - - setAiPrompt(e.target.value)} - label="Extraction Prompt" - /> - - - - - LLM Provider - - - - - Model - - - - - {/* API Key for non-Ollama providers */} - {llmProvider !== 'ollama' && ( + {generationMode === 'agent' && ( + setLlmApiKey(e.target.value)} - label="API Key (Optional if set in .env)" + value={extractRobotName} + onChange={(e) => setExtractRobotName(e.target.value)} + label="Robot Name" /> - )} - {llmProvider === 'ollama' && ( setLlmBaseUrl(e.target.value)} - label="Ollama Base URL (Optional)" + multiline + rows={3} + value={aiPrompt} + onChange={(e) => setAiPrompt(e.target.value)} + label="Extraction Prompt" /> - )} - - - )} + }} + disabled={!url.trim() || !extractRobotName.trim() || !aiPrompt.trim() || isLoading} + sx={{ + bgcolor: '#ff00c3', + py: 1.4, + fontSize: '1rem', + textTransform: 'none', + borderRadius: 2 + }} + startIcon={isLoading ? : null} + > + {isLoading ? 'Creating & Running...' : 'Create & Run Robot'} + + + )} - {generationMode === 'recorder' && ( - - - - )} - + {generationMode === 'recorder' && ( + + + + )} +