New: a fresh demo video from every deploy, called from your CIRelease demos

A fresh demo video from every deploy.

Call Director from your CI pipeline once a deploy succeeds and get a narrated video of the new feature, recorded on the build you just shipped. Nobody has to stop and record it.

how it works

One request after each deploy.

Director records the live build in a real browser, so the video always shows what you actually shipped.

example workflow

GitHub Actions, in one job.

Store your API key as a secret and the environment's id as a variable. The job fails if the demo does, and keeps the video as a build artifact.

release-demo.yml
# .github/workflows/release-demo.yml
# An example to adapt, not an official action. Any CI system works the same way.
name: Release demo
on:
  workflow_dispatch:
  deployment_status:

jobs:
  demo:
    if: github.event_name == 'workflow_dispatch' || github.event.deployment_status.state == 'success'
    runs-on: ubuntu-latest
    env:
      API: https://api.director.screenforge.co/api
      DIRECTOR_API_KEY: ${{ secrets.DIRECTOR_API_KEY }}
    steps:
      - name: Record the demo
        run: |
          id=$(curl -sf -X POST "$API/demos" \
            -H "X-API-Key: $DIRECTOR_API_KEY" -H "Content-Type: application/json" \
            -d '{
              "environmentId": "${{ vars.DIRECTOR_ENVIRONMENT_ID }}",
              "path": "/projects/new",
              "instruction": "Create a project from a template, then share it with a teammate."
            }' | jq -r '.data.id')

          while true; do
            demo=$(curl -sf "$API/demos/$id" -H "X-API-Key: $DIRECTOR_API_KEY")
            status=$(echo "$demo" | jq -r '.data.status')
            if [ "$status" = complete ] || [ "$status" = failed ]; then break; fi
            sleep "$(echo "$demo" | jq -r '.data.pollAfterSeconds // 15')"
          done

          echo "$demo" | jq '.data.outcome, .data.failure'
          test "$status" = complete
          curl -sfL "$(echo "$demo" | jq -r '.data.videoUrl')" -o release-demo.mp4

      - uses: actions/upload-artifact@v4
        with:
          name: release-demo
          path: release-demo.mp4

catch drift too

Re-check flows on every deploy.

A re-check doesn't record a video. It confirms the controls a flow relies on are still there, and flags the flow, and the articles built on it, if they aren't.

terminal
# Check a recorded flow still works, without recording
curl -X POST https://api.director.screenforge.co/api/environments/$ENV_ID/graph/flows/$FLOW_ID/reverify \
  -H "X-API-Key: $DIRECTOR_API_KEY"

# The check runs in the background. Read the flow once it's done:
# a status of "stale" means a control it relies on has changed
curl https://api.director.screenforge.co/api/environments/$ENV_ID/graph/flows/$FLOW_ID \
  -H "X-API-Key: $DIRECTOR_API_KEY" | jq -r '.data.status'

good practice

Keep release demos reliable.

A few habits that make automated demos worth publishing.

  • Record against staging or production with a test account, never a real customer's.
  • Keep each instruction to one flow. Two features make two short demos, which are easier to reuse.
  • Read outcome.goalMet before you publish, and use failure.remediation to decide whether to retry.
  • Download the video in the job: the videoUrl is signed and lasts an hour.
  • Plans run one demo at a time on Free and Starter, three on Pro and ten on Scale. A 429 means wait for one to finish.

faq

Questions, answered.

  • Not an official one. The API is one request to start a demo and one to read it, so any CI system can call it. The workflow on this page is a starting point to adapt.