Build and Operate an Automation
An automation connects a supported trigger to configured actions. The editor has a mutable draft, publication creates the live definition, and each run records its execution and step invocations. Notification schedules use this workflow infrastructure through a specialized interface.
Prerequisites
Select the owning project and an admin with the required workflow actions. Confirm the deployment exposes the current Automations editor and its required feature/provider configuration. Integration tokens, recipient groups, templates, games and credential pools must exist before actions that need them can run.
Use a dedicated test group and attendee. Decide which business event starts the automation, which project records it may change, which destinations it contacts and what establishes completion. A visible step type does not create its credentials, data or external service.
Dashboard access and permissions
The project list is /p/{team}/{project}/admin-workflows on the dashboard host. Open the returned automation link to inspect its build and execution views. The list's name, status, trigger/step totals, last run and seven-day run summary describe configuration and recorded activity; inspect a run's detail and business outcome before treating those summaries as successful delivery.
The current policy mapping uses view_admin_workflows for listing/viewing and manage_admin_workflows for creating, updating and deleting. Manual execution, draft-test preflight/start, publication and version restore authorize an update operation; a read-only reviewer should not expect those controls to work. These mappings do not certify every nested endpoint or grant access to an action's destination. Verify the selected project, an allowed operator and an excluded operator in the deployed environment.
Run now is available for an active automation with a manual/send-now trigger. It starts real work using the live definition; a repeated start with the same idempotency token is deduplicated, while a new run identity can repeat effects. Use the run record for status rather than clicking Run now again. Use the separate draft-test workflow below when evaluating unpublished changes.
Configure the draft
- Open the project's Data → Automations surface where offered and create a named automation. Existing navigation/controller names can still use Admin Workflows internally.
- Open Build and select a trigger. In deployments using the configuration view, the corresponding controls appear under Configuration → Triggers/Automation Steps.
- Select the supported event, schedule, action or inbound endpoint settings. The editor's catalog limits combinations: a chosen trigger does not support every action/entity automatically.
- Add an action from the step catalog and configure its required inputs. Select actual project resources and integration tokens rather than entering an unrelated numeric ID.
- Connect prior outputs or trigger data using the offered token/input selectors. Inspect a representative preview before saving.
- Configure the test group, schedule/recurrence and active state as appropriate. Review any draft/readiness warnings.
- Save the draft, test it, then publish when its effects are verified.
A trigger qualifies an event; the step's audience and record bindings control its effects. For example, a social-post trigger should identify the intended stream, while its notification action still needs a recipient/template configuration. Test that an event from another stream does not start the intended behavior.
Choose and connect actions
The action catalog lists the registered action families and their test/retry behavior. The deployed editor filters these by trigger compatibility and feature availability. Current families include notifications, game points, attendee/group/credential changes, AI messages, exports/email, webhooks, external/Cvent synchronization, SFTP fetching and file import.
Each action has a declared output shape and version. Use the editor's token/output selectors to connect a later input. Referencing a field that the preceding action does not produce is a configuration error; publication validates supported references and input slots.
Keep different file handles distinct. A generated export can return an Export Log reference, while SFTP fetch returns a Workflow File reference. The downstream action must support that reference type. See SFTP Integrations and Workflow Files.
A webhook action can send a configured template body or an identifiers/context body. The receiver must follow that selected payload contract; there is no universal envelope for all workflow webhooks. Use Outgoing Webhooks (repository reference: /webhooks/outgoing) for signature/receiver guidance and inspect Webhook deliveries for the actual request/outcome.
Test the draft
Use Test run to inspect preflight warnings, choose a test attendee from the configured group and start one controlled run of the draft. A test does not publish the draft or replace the live definition.
| Action behavior | Effect in a test run |
|---|---|
| Execute | Runs against test context; group/credential/point and other executing actions can create real state |
| Restrict recipients | Message delivery is restricted to the configured test group; those are real deliveries |
| Dry run | The action records what it would do without the outbound call/dispatch |
The test runs in the automation's owning project; it does not create an isolated project. The selected attendee is the test event's subject, while configured groups, games, credential types, integrations and other resources remain the actual selected project resources. A test is triggerless, so trigger-payload/email tokens can render empty and preflight reports relevant warnings. Inspect explicit bindings before allowing an executing action to run.
Inspect the action catalog's actual mode. Webhook, sync and import actions are dry-run in the current registry; AI messages, exports and remote fetches execute. For SFTP development, use controlled files with remote deletion disabled. Do not interpret “test” as a universal sandbox for every provider or resource.
After the run starts, open Runs and its detail/timeline. Confirm expected outputs and persisted test-attendee changes. A started acknowledgment is not completed execution. Before publication, test missing required inputs and a controlled failure/recovery case as well as successful actions. A triggerless draft test does not verify trigger qualification. In a controlled project, publish/activate the intended definition and then submit both matching and nonmatching events to verify its trigger filters before a production launch.
Publish, enable and restore
The header shows the live version and unpublished change count. Publish changes opens readiness checks, the change list and a version note. Resolve blocking validation messages, publish, and verify the new live version number.
Normal runs keep using the live published definition until publication changes it. An execution captures its version when it starts, so editing/publishing does not rewrite an in-flight run. Draft testing uses its own draft snapshot.
Use Enable/Disable to control new starts through the supported lifecycle. Platform-wide start controls can refuse new execution with an explicit message. Disabling an automation is different from cancelling a run already in progress.
The Versions panel shows publication history and a restore operation. Restoring a prior version rewrites the draft; it does not automatically publish that draft. Review the restored configuration, then publish if it should become live. Version restore cannot reverse external calls or data mutations already performed by a run.
A restore can recreate missing inbound webhook/email triggers and issue new endpoint credentials. Inspect the restore result's recreated-trigger and missing-asset notices; retain newly disclosed credentials in the approved secret store and update the intended sender through the supported configuration process. Do not put the plaintext restore response in public issue reports. A surviving inbound trigger with an existing endpoint identifier is not automatically issued fresh credentials by this restore path; do not treat restore as blanket credential rotation or revocation. Test snapshots are not restorable published versions. Recheck readiness, bindings and inbound senders before publishing the restored draft.
Read run state
| Execution state | Meaning |
|---|---|
| Reserved | An execution has been reserved and has not yet entered normal running state |
| Running | Execution is in progress |
| Completed | The run finished according to its recorded step outcomes |
| Failed | An execution failure requires diagnosis |
| Cancelled | Cancellation ended the run; completed side effects may remain |
| Unresolved | Valid configuration/input did not resolve required data; inspect the recorded reason rather than treating it as a generic engine failure |
Use the app-owned execution state and detail messages. The underlying engine can use a different status vocabulary, especially for an unresolved outcome. Check each step invocation and the final business result rather than inferring success from a single engine/job status.
Relevant views include Runs, Batches, Skipped Occurrences, Webhook deliveries, Eventfinity Sync Records where applicable, and Versions. A skipped schedule occurrence is not necessarily a failed run; inspect the reason, occurrence/window and offered next action.
Run again versus retry
Run again starts a new execution on the current published version, using the original frozen event/subject but a new idempotency identity. It can repeat business effects. Use it only when a new run is the intended action and after inspecting the original result.
Retry from this step, when enabled and allowed, starts a linked execution on the original run's same version. It carries over completed step outputs and reuses inherited idempotency identities for rerun steps. The action's retry classification determines eligibility:
- Repeatable: can rerun an eligible completed/failed step because it deduplicates or converges to the same result.
- Retryable after failure: may rerun the failed step, but repeating a completed action could create another effect.
- Not retryable: the action cannot establish safe repetition through this recovery path once it ran.
Run again is refused for test executions. Start a new Test run from the header to retest the draft. An eligible failed test execution can use Retry from this step when enabled; it retains the original test snapshot, is_test flag and frozen test event/group, so action test modes persist. Dry-run actions have no external effect to repeat in that test path.
A retry control can be feature-disabled or refused by the run/action state. Do not bypass that refusal by manually replaying an external mutation. Retain the original run, version, failed step and recorded outputs when asking for operator help.
Cancellation and cleanup
Use Cancel run on an eligible active run and verify its recorded terminal state. Cancellation does not retract delivered messages, undo imports or restore external records automatically.
Deleting execution/history data and cancelling a run are separate actions. Review the selected records and associated files before cleanup, and retain the evidence needed to understand a business outcome. Worker restart, storage retention and disaster recovery remain in the separate operator runbooks.
Troubleshooting
| Symptom | Check |
|---|---|
| No run starts | Active/live version, trigger conditions, project/entity scope, schedule window and start availability |
| Draft changes have no live effect | Save versus publish, live version and the run's captured version |
| Publication blocked | Required resource/input fields, supported output references, trigger/action compatibility and readiness errors |
| Test reaches unexpected people/data | Test group/attendee, action test mode and actual recipient/resource scope |
| Run remains reserved/running | Invocation timeline and processing state; retain run ID for the operator |
| Run is unresolved | Specific missing/unmatched data and recorded reason; a well-formed request can still resolve no entity |
| External effect is duplicated | Run-again versus retry, inherited/new idempotency identity and receiver/provider records |
| File-consuming step fails | Correct file-reference type and prior step's actual outputs |
| Restore seems ineffective | Restore changes the draft; review and publish it to change the live definition |
Implementation reference
Reviewed against app/Http/Controllers/Admin/Automation/, app/Models/AdminWorkflow.php, AdminWorkflowExecution.php, AdminWorkflowStep.php, AdminWorkflowStepInvocation.php, app/Services/AdminWorkflowPublishingService.php, AdminWorkflowPublishValidator.php, the test/rerun/retry services, app/Workflows/WorkflowActions/WorkflowActionRegistry.php, app/Workflows/Enums/, resources/js/Dashboard/Pages/Admin/Projects/AdminWorkflows/Show.vue and its Build/Publish/Test/Versions/Run components at experience-portal commit b2963764af214eceb7bf35a7c5359d1235fcc75a on 2026-10-13. The previous commit's code is unchanged; the intervening commit updated release audit notes. Provider and project acceptance are recorded separately.