Build Your First Workflow
Create and execute a workflow in 10 minutes
Learn by building a simple greeting workflow with parameters and validation.
What You’ll Build
Section titled “What You’ll Build”A workflow that accepts a name and returns a personalized greeting.
Prerequisites
Section titled “Prerequisites”- Installation complete
- Text editor (VS Code recommended)
Create the Workflow
Section titled “Create the Workflow”-
Open the Code Editor from the header.

-
Create a new file called
hello_world.py:
from bifrost import workflow, param, ExecutionContextimport logginglogger = logging.getLogger(__name__)@workflow(name="hello_world",description="A simple greeting workflow",category="Examples")@param("name", type="string", label="Your Name", required=True)async def hello_world(context: ExecutionContext, name: str):"""Generate a personalized greeting."""logger.info(f"Generating greeting for {name}")greeting = f"Hello, {name}! Welcome to Bifrost."return {"greeting": greeting, "name": name} -
Hit
CTRL/CMD + Sto save. -
Navigate to Workflows → Examples → Hello World

-
Click Execute, enter your name, and click Run
Expected Result
Section titled “Expected Result”
{ "greeting": "Hello, Alice! Welcome to Bifrost.", "name": "Alice"}View Execution Logs
Section titled “View Execution Logs”Navigate to Executions to see all runs with logs and results.
Next Steps
Section titled “Next Steps”- Writing Workflows Guide - Full workflow reference
- Using Decorators - Advanced decorator features
- Create Dynamic Forms - Build UI for your workflows