# Workflows Beta
Stelace Workflows are the fastest way to run automated logic empowering Events, in a serverless fashion.
Here is a working example taken from Heroes starter kit. Stelace team gets notified via Slack in real-time when a visitor flags any hero:
For more details about Workflows, you can have a look at our API reference API.
# Environment variables
Workflows can have environment variables organized in contexts to safely inject secrets and other values during execution without hard-coding them in Workflow
In the example above, we use a context named
SLACK_WEBHOOK_URL variable. Environment variables loaded from
context can be accessed using
env. prefix in Workflows.
To set a context to be used in Workflows, private Configuration API API is the way to go. This requires a secret API key.