Skip to content

Scheduled Workflows

Last updated Sep 5, 2026

Scheduled Workflows (/admin/ai/workflows) turn Buzzy into an automated publishing engine. You can define recurring content directives—such as daily news roundups, weekly quizzes, or morning listicles—and Buzzy will generate, format, illustrate, and categorize the posts on your schedule.

How workflows work

A workflow combines an editorial brief with an execution schedule:

[ Laravel Task Scheduler ]
          │ (Triggers on schedule: hourly / daily / weekly / monthly)
          ▼
[ AIWorkflowDispatcher ] ──> Leased DB Lock (prevents duplicate execution)
          │
          ▼
[ Queue Worker / Horizon ] ──> Dispatches `RunAIWorkflow` job
          │
          ├─► Invokes target LLM with topic directive & format settings
          ├─► Generates and attaches AI featured cover image (optional)
          ├─► Assigns author, category, tags, and language
          └─► Saves post as Draft (or Publishes immediately)

Creating a new workflow

Navigate to Admin > AI Content Agent > Workflows and click Add Workflow:

  1. Workflow name: A descriptive identifier for internal tracking (e.g. Daily Tech Headlines, Friday Viral Quiz, Weekly Movie Roundup).
  2. Content format:
    • News Article: Set your target word count (200–3,000 words).
    • Listicle: Define the exact number of list items.
    • Quiz: Choose Trivia or Personality, and set the question count.
    • Poll: Specify the number of poll options.
  3. Topic directive: The prompt instructions evaluated on every run. You can provide evergreen directives or dynamic prompt guidelines:
    Compile the top emerging developments in artificial intelligence, robotics, and generative media over the past 24 hours. Focus on practical consumer and business impact.
  4. Run interval: Choose how often the workflow fires:
    • Hourly: For high-volume breaking news feeds.
    • Daily: For morning or evening digests.
    • Weekly: For weekend specials or curated rankings.
    • Monthly: For comprehensive monthly recaps.
  5. Tone & model: Select your writing style and target model. Leave model as Default to use the global AI settings.
  6. Generate featured image: Toggle on to automatically render and attach a custom cover image matching the generated headline.
  7. Post category & author: Select the category where posts should be filed and assign a specific site user or editorial persona as the author.
  8. Initial post status:
    • Draft: Post is saved in your draft queue for editorial review and fact-checking.
    • Publish immediately: Post goes live automatically upon successful generation (subject to global review rules).
  9. Active: Toggle on to enable scheduled execution.

Technical execution requirements

Workflows depend on Laravel's standard scheduler and background queue workers:

1. Cron scheduler setup

Ensure your hosting server executes the Laravel scheduler every minute. Add this cron entry to your server:

* * * * * cd /path-to-your-buzzy && php artisan schedule:run >> /dev/null 2>&1

Buzzy registers four distinct scheduler tasks with overlapping protection:

  • ai-workflow-hourly
  • ai-workflow-daily
  • ai-workflow-weekly
  • ai-workflow-monthly

2. Queue worker

Workflows are dispatched to your queue so long-running LLM generation does not block web requests. Ensure your queue worker or Laravel Horizon is running:

php artisan queue:work --queue=default,high --tries=3

For production supervisor configurations, refer to the Cache & Queue documentation.


Editorial safety and review guardrails

Automated publishing requires safeguards to protect editorial reputation and ensure quality:

The "Require review before publish" master switch

Navigate to Admin > Settings > Plugins > AI Content Agent > Automation workflows:

  • Require review before publish: When enabled, Buzzy forces all workflow posts to save as drafts, overriding any individual workflow set to "Publish immediately".
  • Your editorial team can inspect, fact-check, and polish the drafted stories in Admin > Posts > Drafts before hitting Publish.

Concurrency and lease locks

To prevent race conditions on multi-server clusters or long-running requests, Buzzy acquires an exclusive atomic database lock (AIWorkflowDispatcher) with an automated lease expiration before starting generation. If a queue job stalls, the lease expires safely without deadlocking future runs.

Tracking generation logs

Every workflow run creates a permanent audit record. Click View generation history on any workflow card, or visit:

/admin/ai?filter[workflow_id]={id}

This filtered view displays total tokens consumed, execution time, output status, and direct links to the generated posts.

Was this helpful?