Laravel AutoBuilder: Visual Automation Workflows | Mohamed Said       [Skip to content](#main)  [ ![](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MH.png) Mohamed SaidLaravel Backend Engineer ](https://msaied.com) - [Home](https://msaied.com)
- [Projects](https://msaied.com/projects)
- [Articles](https://msaied.com/articles)
- [Certificates](https://msaied.com/certificates)
- [About](https://msaied.com#about)

           [  Contact](https://msaied.com#contact) Menu 

Menu
----

Close 

 - [HomeStart here](https://msaied.com)
- [ProjectsCase studies](https://msaied.com/projects)
- [ArticlesEngineering notes](https://msaied.com/articles)
- [CertificatesCredentials](https://msaied.com/certificates)
- [AboutHow I work](https://msaied.com#about)
- [ContactGet in touch](https://msaied.com#contact)

  [Start a conversation](https://msaied.com#contact) [WhatsApp](https://wa.me/201094619204) [Email](mailto:hello@msaied.com) 

 1. [Home](https://msaied.com)
2. /
3. [Articles](https://msaied.com/articles)
4. /
5. [Laravel](https://msaied.com/articles?category=laravel)
6. /
7. Laravel AutoBuilder: Build Visual Automation Workflows in Your Laravel App

   [Laravel](https://msaied.com/articles?category=laravel) [Composer Pacakge](https://msaied.com/articles?category=composer-pacakge) 

 Laravel AutoBuilder: Build Visual Automation Workflows in Your Laravel App
===========================================================================

 Laravel AutoBuilder lets you design drag-and-drop automation workflows directly inside a Laravel app. Connect triggers, conditions, and actions visually—no listener edits required for routine rule changes.

 ![](https://cdn.msaied.com/01M22N44A70A5MC2S599JP0MPH.webp) [Mohamed Said](https://msaied.com#person) Published 27 Nov 2026 · Updated 30 Nov 2026 · 4 min read

ShareCopy linkCopied

 ![Laravel AutoBuilder: Build Visual Automation Workflows in Your Laravel App](https://cdn.msaied.com/839/00788b998da006f2c5774a37cd2ca409.png) 

  On this page +1. [What Is Laravel AutoBuilder?](#what-is-laravel-autobuilder)
2. [Core Concepts: Bricks and FlowContext](#core-concepts-bricks-and-flowcontext)
3. [Adding a Custom PHP Action](#adding-a-custom-php-action)
4. [Running and Inspecting Flows](#running-and-inspecting-flows)
5. [Installation](#installation)
6. [Key Takeaways](#key-takeaways)

 What Is Laravel AutoBuilder?
----------------------------

[Laravel AutoBuilder](https://laravel-news.com/laravel-autobuilder) is a package by [Jean-Marc Strauven](https://github.com/Grazulex) that embeds a drag-and-drop automation workflow editor directly inside your Laravel application. It connects **triggers**, **conditions**, and **actions**—called *bricks*—using a Vue Flow-powered canvas available at `/autobuilder`.

A practical use case: let staff configure a welcome notification when a user registers, or call an external API after an Eloquent record changes—without asking a developer to touch a listener each time.

Core Concepts: Bricks and FlowContext
-------------------------------------

Every workflow is built from three brick types:

- **Triggers** – start a flow (Model Created, webhook, cron schedule, manual)
- **Conditions** – gate the flow on field values or user roles; combine with AND, OR, or AtLeast gates
- **Actions** – log messages, create/update Eloquent records, make HTTP requests, or send Laravel notifications

Each run carries a `FlowContext` holding the payload and any variables set during execution. Fields that support dynamic values use double-brace expressions with dot notation:

```
Welcome, {{ model.name }}. Your account is ready.

```

Filters are also available—`{{ model.name | upper }}` converts the value to uppercase. Note that the key must match the trigger's payload key (e.g., `model.name`, not `user.name` for a Model Created trigger).

Adding a Custom PHP Action
--------------------------

AutoBuilder discovers custom classes under `app/AutoBuilder` by default. Custom actions extend the `Action` base class and implement a `handle(FlowContext $context): FlowContext` method.

Here is an action that normalises an email address from the flow context:

```php
namespace App\AutoBuilder\Actions;

use Grazulex\AutoBuilder\Bricks\Action;
use Grazulex\AutoBuilder\Flow\FlowContext;

class NormaliseContactEmail extends Action
{
    public function name(): string
    {
        return 'Normalise Contact Email';
    }

    public function description(): string
    {
        return 'Trim and lowercase the contact email address.';
    }

    public function icon(): string
    {
        return 'mail';
    }

    public function fields(): array
    {
        return [];
    }

    public function handle(FlowContext $context): FlowContext
    {
        $email = (string) $context->get('contact.email', '');

        return $context->set('contact.email', strtolower(trim($email)));
    }
}

```

`FlowContext::get()` checks variables before the original payload, so subsequent nodes in the flow read the normalised value automatically. The custom class appears as a node in the same visual editor as built-in actions.

Running and Inspecting Flows
----------------------------

Flows can be executed in several ways:

- **Test dialog** in the editor—accepts a raw JSON payload
- **Artisan command** for scripted or CI use:

```bash
php artisan autobuilder:run 'Contact signup automation' \
  --payload='{"contact":{"email":"  ALEX@EXAMPLE.TEST  ","subscribed":"yes"}}'

```

- **Queue** for event-triggered flows (requires a running queue worker)
- **Scheduler** for cron-based flows (requires Laravel's scheduler)

Execution history records each run's payload, variables, and logs. The editor's **Validate** button checks required fields and graph connections on demand. Flows can be imported and exported as JSON.

Installation
------------

Requires PHP 8.4+ and Laravel 12 or 13.

```bash
composer require grazulex/laravel-autobuilder
php artisan vendor:publish --tag=autobuilder-assets
php artisan vendor:publish --tag=autobuilder-migrations
php artisan migrate

```

Publish the config to adjust discovery paths, execution settings, and access controls:

```bash
php artisan vendor:publish --tag=autobuilder-config

```

The built-in middleware requires authentication. Define the `access-autobuilder` gate to restrict editor access to the appropriate staff members; the middleware only checks that gate if it has been defined.

Key Takeaways
-------------

- Workflows are built from triggers, conditions, and actions connected visually with Vue Flow.
- `FlowContext` passes data between nodes using dot-notation variable expressions.
- Custom PHP actions extend `Action` and are auto-discovered under `app/AutoBuilder`.
- Flows can run via the editor test dialog, Artisan, queues, or the Laravel scheduler.
- Execution history, JSON import/export, and a Validate button aid debugging and portability.
- Requires PHP 8.4+ and Laravel 12 or 13.

---

Source: [Laravel AutoBuilder: Build Visual Automation Workflows](https://laravel-news.com/laravel-autobuilder)

- [Laravel](https://msaied.com/articles?search=Laravel)
- [Automation](https://msaied.com/articles?search=Automation)
- [Workflows](https://msaied.com/articles?search=Workflows)
- [Composer Package](https://msaied.com/articles?search=Composer%20Package)
- [PHP](https://msaied.com/articles?search=PHP)

 Frequently asked questions 
---------------------------

  What is the difference between triggers, conditions, and actions in Laravel AutoBuilder?Triggers start a workflow (e.g., a model being created or a webhook firing). Conditions check data in the FlowContext—such as a field value or user role—before allowing the flow to continue. Actions perform the actual work, such as logging a message, updating an Eloquent record, making an HTTP request, or sending a Laravel notification.

   How do you pass data between nodes in an AutoBuilder workflow?Each workflow run has a FlowContext that holds the trigger payload and any variables set by actions. Nodes read values using double-brace dot-notation expressions like {{ model.name }} or {{ contact.email }}. FlowContext::get() checks variables before the original payload, so a node that updates a value makes the new value available to all subsequent nodes.

   What are the minimum requirements to install Laravel AutoBuilder?Laravel AutoBuilder requires PHP 8.4 or higher and Laravel 12 or 13. Install it with Composer, publish its assets and migrations, then run php artisan migrate. The editor is accessible at /autobuilder after installation.

   ![Mohamed Said](https://cdn.msaied.com/01M22N44A70A5MC2S599JP0MPH.webp)About the author
----------------

[Mohamed Said](https://msaied.com#person)Senior Backend Engineer specializing in Laravel, scalable SaaS platforms, APIs, and cloud infrastructure. I build secure, high-performance web applications that help businesses grow.

[About](https://msaied.com#about) [GitHub ↗](https://github.com/EG-Mohamed) [LinkedIn ↗](https://www.linkedin.com/in/msaiedm/) [WhatsApp ↗](https://wa.me/201094619204) [Email Address ↗](mailto:hello@msaied.com) [My CV ↗](https://drive.google.com/file/u/0/d/1MF20IPRJyzfy32mhEutjL5EpSls0w2Q8/view)  

   [Previous articlePun: Format, Lint, and Analyze PHP With One Rust Binary](https://msaied.com/articles/pun-format-lint-and-analyze-php-with-one-rust-binary)  

   On this page
-------------

1. [What Is Laravel AutoBuilder?](#what-is-laravel-autobuilder)
2. [Core Concepts: Bricks and FlowContext](#core-concepts-bricks-and-flowcontext)
3. [Adding a Custom PHP Action](#adding-a-custom-php-action)
4. [Running and Inspecting Flows](#running-and-inspecting-flows)
5. [Installation](#installation)
6. [Key Takeaways](#key-takeaways)

 ###  Have a technical challenge?

 Tell me what you’re building. I reply within two working days.

[Start a conversation](https://msaied.com#contact) 

   Related articles
-----------------

 [ ![](https://cdn.msaied.com/837/a736608b65db9fe102769f6c2479bef1.png) Laravel · 4 min read### Pun: Format, Lint, and Analyze PHP With One Rust Binary

26 Nov 2026 ](https://msaied.com/articles/pun-format-lint-and-analyze-php-with-one-rust-binary) [ ![](https://cdn.msaied.com/838/ce69ce2737d75831f3116e7d1bb8f541.png) Laravel · 3 min read### Form Request Model Lookups and PHP 8.6 Support in Laravel 13.44

24 Nov 2026 ](https://msaied.com/articles/form-request-model-lookups-and-php-86-support-in-laravel-1344) [ ![](https://cdn.msaied.com/834/bd4177ac22f4bab6c85e743e4f0051e6.png) Laravel · 3 min read### Laravel Black Friday and Cyber Monday Deals 2026

23 Nov 2026 ](https://msaied.com/articles/laravel-black-friday-and-cyber-monday-deals-2026) 

  Have a technical challenge?
----------------------------

Tell me what you’re building. I reply within two working days.

 [Discuss your project ↗](https://msaied.com#contact) 

  © 2026 Mohamed Said · Built with Laravel, meant to last.Senior Backend Engineer specializing in Laravel, scalable SaaS platforms, APIs, and cloud infrastructure. I build secure, high-performance web applications that help businesses grow.

 - [Home](https://msaied.com)
- [Articles](https://msaied.com/articles)
- [Certificates](https://msaied.com/certificates)
- [GitHub](https://github.com/EG-Mohamed)
- [LinkedIn](https://www.linkedin.com/in/msaiedm/)
- [WhatsApp](https://wa.me/201094619204)
- [Email Address](mailto:hello@msaied.com)
- [My CV](https://drive.google.com/file/u/0/d/1MF20IPRJyzfy32mhEutjL5EpSls0w2Q8/view)
- [Sitemap](https://msaied.com/sitemap.xml)
