Create Automation Project
Summary
The Create Automation Project screen offers three distinct pathways for adding a new project to the Smart Automation Framework: importing an existing JSON project file, generating a project automatically with an AI model from a natural-language description, or creating a blank project by providing only a name. All three pathways end at the Edit Project screen where the full project configuration can be reviewed and refined before saving.
Screen on arrival
Features
- AppBar "Create new project" — back arrow navigates to the Project Overview screen without creating a project.
- Option 1 — Upload from JSON:
- "Upload Project JSON" button (with upload icon) — opens the device file picker filtered to
.json files. The selected file is parsed and validated; if the JSON contains valid projectname, projectdescription, and agenttype fields the project is saved and the Edit screen opens.
- If required fields are missing an error message is shown inline.
- Option 2 — Generate with AI:
- Prompt TextField (hint "Enter your project idea here…", multiline 10 lines) — the natural-language description of what the project should do. Must be at least 16 words before generation is allowed.
- "Generate Project" ElevatedButton — sends the prompt to the AI writing agent (
FullScreenProjectWritingAgent). While generating, a CircularProgressIndicator and a LinearProgressIndicator (30-second progress timer) are shown. The button is disabled during generation.
- On completion the generated project is saved and the Edit screen opens for review.
- Option 3 — Create empty project:
- Project name TextField (label "Project name", hint "Enter project name…") — the only required input for an empty project.
- "Create Empty Project" ElevatedButton — creates a blank project with the given name and opens the Edit screen immediately.
Scenarios
Import a project from a JSON file
- Tap the Upload Project JSON button.
- In the file picker, locate and select a
.json project definition file.
- The app validates that
projectname, projectdescription, and agenttype are present in the JSON.
- If valid, the project is saved to the device and the Edit Project screen opens so you can make any adjustments.
- If invalid, an error message identifies the missing fields.
Generate a project with AI
- Type a clear, detailed description of what you want the automation to do in the prompt field (at least 16 words).
- Tap Generate Project.
- A progress indicator appears; the AI model produces a structured project definition (this typically takes up to 30 seconds).
- When generation completes, the project is saved and the Edit Project screen opens for review and any final edits before the first run.
Create a blank project and configure it manually
- Type a name into the Project name field.
- Tap Create Empty Project.
- The Edit Project screen opens with only the name populated. Fill in the description, main prompt, execution schedule, and any other settings.
- Tap Save in the Edit Project screen to persist the project.