Quick Start
This guide walks you through building your first Voodflow workflow in under 10 minutes. The example workflow will:
- Run when a new user is created
- Send a welcome email to the new user
Prerequisites
- Voodflow installed and configured
- A Voodflow Credential (type
smtp) configured in/admin/credentials - A queue worker running (or
VOODFLOW_EXECUTE_SYNC=truefor testing)
Step 1: Register Your Eloquent Model
Before Voodflow can listen for lifecycle events from your User model, you must register it in the Model Integrations section.
- Navigate to Voodflow → Model Integrations in the Filament sidebar
- Click New Model Integration
- Set:
- Label:
Users - Model Class:
App\Models\User - Essential fields:
name,email
- Label:
- Save
This registration makes App\Models\User available for event-driven workflows and enables Eloquent lifecycle event descriptors.
In the same Model Integration: 5. Enable the Eloquent created lifecycle event (so the Event Trigger can react when users are created).
Step 2: Create an SMTP Credential
Before sending emails, you need to create a credential in Voodflow credentials:
- Open
/admin/credentials - Create a new Credential of type
smtp - Fill in your SMTP settings and save
Step 3: Create a New Workflow
- Navigate to Voodflow → Workflows
- Click New Workflow
- Set the name:
Welcome Email - New Users - Click Save — the visual workflow editor opens
Step 4: Add an Event Trigger
- In the editor canvas, click Add Node → Triggers → Event Trigger
- Configure:
- Event Class (field
eventClass):eloquent.created: App\\Models\\User
- Event Class (field
- Click Save Node
The Event Trigger node is the entry point of your workflow. It starts a run whenever your application creates a new User model instance.
Step 5: Add and Configure Send Mail
- Click the + handle on the Event Trigger node to add a connected node
- Choose Integrations → Send Mail
- In the Email Credential selector, pick the
smtpcredential you created in Step 4 - Configure:
- From Email:
no-reply@yourapp.com - From Name:
YourApp - To Email:
{{user.email}} - Subject:
Welcome to YourApp, {{user.name}}! - Body:html
<h1>Hi {{user.name}},</h1> <p>Thank you for registering. Your account is active at {{user.email}}.</p> <p>Best regards,<br />The YourApp Team</p> - Send as HTML: enabled
- From Email:
- Click Save Node
Step 6: Activate the Workflow
- In the workflow list, find your workflow
- Toggle the status from Draft → Active
The workflow is now event-driven and will execute every time a user is created.
Testing Manually
To test the workflow on demand, create a new User record in your application (for example from your registration flow).
After execution, navigate to Voodflow → Executions to inspect:
- Overall execution status (
success,failed,running) - Input/output data for every node
- Timing information per node
- Any error messages
Template Syntax Overview
Voodflow uses {{field}} double-brace syntax for dynamic value injection in text fields:
| Syntax | Description |
|---|---|
{{user.email}} | Access field from the current event payload |
{{input.name}} | Access field from the previous node's output |
{{variables.my_var}} | Access a workflow variable set by Set Variable node |
{{now}} | Current datetime (formatted per VOODFLOW_DATE_FORMAT) |
See Template Syntax for the full reference.