This quickstart covers Managed Workflows — where Nen handles the agent loop for you. If you want to bring your own agent and control the loop yourself, see the Quickstart.
Minimal Workflow
Every Nen managed workflow is a Python file with arun() function, typed Pydantic models for input and output, and a version header.
The
__nen_version__ = "1.0.0" header tells the runtime which SDK version your workflow targets.What’s Happening Here
Define your input
Params is a Pydantic model validated from the JSON input you send via API. Invalid input returns a validation error before your code runs.Define your output
Result is validated and serialized to JSON when your function returns. The caller gets structured, type-safe data.Use the Agent
Agent is a VLM-powered controller. It takes a screenshot, decides what to do, and interacts with the virtual desktop.Add Secrets
If your workflow needs credentials, add aSecureParams model:
Trigger via API
Start your workflow with a POST request:To include
secure_workflow_params you need to HMAC-sign the request — the simple x-api-key flow above returns a 403 if secure_workflow_params is present. See Secure Parameters for the signing scheme.Next Steps
Run
Understand the workflow lifecycle and function signature
Agent
Master execute, verify, and extract
Computer
Direct keyboard, mouse, and file access
Models
Choose the right VLM for each task