Whizan Cloud ServicesDocumentation Hub
Documentation/Developer Tools/Whizan Flow (Automation Pipelines)

Whizan Flow (Automation Pipelines)

Supported:Visual Workflow BuilderTypeScript Flow DSLWebhook Integrations

When to Use This Service

Ideal Use Cases
  • Multi-stage deployment workflows (e.g. Run tests -> Migrate Database -> Cutover Frontend -> Post Slack message)
  • Gated production deployments requiring team approval before proceeding
  • Automated failure recovery and zero-downtime rollback pipelines
  • Cross-service synchronization triggered on deployment completion
When to Choose Another Workload
  • Simple single-service builds (standard automated deployment already handles atomic rollbacks)
  • High-throughput sub-millisecond data transformation pipelines

How to Use & Deploy

Option 1Deploy via Web Console

  1. 1Go to 'Whizan Flow' in the sidebar.
  2. 2Click '+ New Workflow' or choose from pre-built production templates.
  3. 3Add pipeline steps: build triggers, database migrations, sanity probes, and notifications.
  4. 4Configure trigger events (e.g. on git push to main, or on manual trigger).
  5. 5Enable the workflow and monitor step-by-step visual execution logs.

Option 2Deploy via CLI & Terminal

Deploy instantly from your local workspace terminal using the global Whizan CLI:

$ whizan flow run --name deploy-production
Or prompt your AI Coding Assistant (Cursor / Antigravity MCP):
“Set up a Whizan Flow workflow to run prisma migrate and notify slack after deploy”

Practical Project Example

workflow.ts
import { defineWorkflow, step } from "@whizan/flow";

export default defineWorkflow({
  name: "Production Release Pipeline",
  trigger: "on_deployment_cutover",
  steps: [
    step("Run Database Migrations", async ({ exec }) => {
      await exec("npx prisma migrate deploy");
    }),
    step("Smoke Test Health Check", async ({ probe }) => {
      await probe("https://api.mycompany.com/health", { expectedStatus: 200 });
    }),
    step("Notify Engineering Team", async ({ notify }) => {
      await notify.slack("#deployments", "🚀 Production cutover completed successfully!");
    })
  ]
});

Configuration Reference

Parameter / SettingDescriptionDefault / Recommended
Trigger ModeEvent that starts the workflow (Git Push, Deployment Cutover, or Manual)Manual
Failure StrategyAction taken if a step fails: ABORT, ROLLBACK, or CONTINUEROLLBACK
Step ApprovalsRequire manual approval from a workspace admin before executing critical stepsDisabled

Best Practices & Pro Tips

Tip 1Always include an automated health check step before posting public notifications.
Tip 2Use step approvals for production database migrations to prevent accidental schema changes.