The fastest path from “I need to do X” to a running automation. Describe a one-off task, let AI write the Python for you, review it, and run it immediately — or save it as a reusable workflow.
Quick Python turns a plain-English description into a Python script that runs against the Versus versus SDK — the same SDK available to Python Script steps inside full workflows. It’s ideal for the ad-hoc jobs that don’t warrant building a whole canvas: pull a value off a set of devices, generate a quick report, email a summary, or make a targeted change. You review and edit the generated code before anything runs, then choose whether to keep it.

Click the ⚡ button to open Quick Python Workflow. In Task description, write what you want in plain English — name the specific devices, values, or recipients where you can. Then click Generate Script (or press Ctrl + Enter).
For example: “Email me the current uptime and version of the core switches sw-core-01 and sw-dist-02.”

In a few seconds the dialog shows the Generated Python script in a full code editor. The code uses the Versus SDK — for example versus.devices(hostname=...) to resolve devices from inventory and versus.log(...) to write to the run log. Read it, and edit anything you like directly in the editor. Not quite right? Click Regenerate to have the AI take another pass (it can also refine the script it already produced).
Optionally give it a Workflow name — used only if you choose to save it.

You have two ways to execute it:
Either way, you land on the run detail page with step-by-step status and the full output log.
Both start from a plain-English prompt, but they produce different things:
| Quick Python | AI Workflow Generator | |
|---|---|---|
| Produces | One Python script | A multi-node workflow on the canvas |
| Best for | Ad-hoc, single-purpose tasks | Reusable, multi-step automations |
| Run without saving? | Yes — “Run Now” | No — always saved first |
| Where to launch | ⚡ in the top bar (any page) | Workflows → Generate with AI |
| Action | How |
|---|---|
| Open Quick Python | Click ⚡ in the top bar (any page) |
| Generate the script | Describe the task → Generate Script (or Ctrl + Enter) |
| Refine it | Edit inline, or click Regenerate |
| Run one-off | Run Now — executes without saving |
| Keep it | Save & Run — creates a reusable Python Script workflow |
| Extend later | Open the saved workflow in the Workflow Builder |
versus and integrations objects your script can call.