Quickstart
Use the links below to learn how to define and run a Workflow in Vellum using the Workflows SDK or pull a Workflow from the Vellum UI.
Learn how to define a Workflow in code
Learn how to pull a Workflow from the Vellum UI
Code-first
The instructions below will guide you through the process of creating a simple Workflow using the Vellum Workflows SDK. If you’re looking for instructions from a UI-first perspective (e.g. pulling an existing Workflow to run & modify locally via code), see the UI-first quickstart.
Next Steps
UI-first
The instructions below will guide you through the process of pulling an existing Workflow from the Vellum UI such that you can modify and run it locally using the Vellum Workflows SDK. If you’re looking for instructions from a code-first perspective (e.g. defining a Workflow in code and then running it in the Vellum UI), see the code-first quickstart.
Create a new folder for your project, setup and activate a virtual environment
Get a Sandbox ID from the Vellum UI
Go to a Workflow Sandbox in the Vellum UI and copy the ID from the URL. The ID is the last part of the URL:
For a URL like this: https://app.vellum.ai/workflow-sandboxes/28fbaf9c-b89e-4534-87f7-abcdefghijkl
The workflow_sandbox_id
is 28fbaf9c-b89e-4534-87f7-abcdefghijkl
Replace the workflow_sandbox_id
in your pyproject.toml
file with this ID.
Set your Vellum API key
You can find this at the bottom of the API Keys page in Vellum. This page can be found in the section of the left sidebar in Vellum, or going directly to https://app.vellum.ai/api-keys. Then, run: