For administrators

Automation

Workflow Automation

Build automations on a canvas: a trigger, some logic, and the actions that follow.

What this covers

Automating work: building a workflow from triggers, logic, AI and action nodes, testing it before it runs for real, publishing it, and watching what it did.

For admins and anyone building automations.

Before you start

Connectors must be set up before a workflow can reach anything outside GreenLane, and workflow editing is permission-gated. Always use Test Run Mode before publishing — it is the difference between a mistake you catch and one your customers catch.

How to create a workflow

When you would do this: automating something for the first time.

  1. Navigate to Settings > Automations > Workflows.

  2. Click + New Workflow. Enter a name, an optional description, and select the primary object type the workflow operates on (e.g. Opportunity, Contact, Account, Booking, Member).

  3. The visual canvas opens with a single Trigger node in the centre.

  4. Open the node palette by clicking the + Add Node button in the left toolbar, or by right-clicking an empty area of the canvas.

  5. The palette is organised into five categories: Triggers, Logic, Platform Actions, Connectors, and AI. Each category is colour-coded to match the node accent stripes.

  6. Click or drag a node type from the palette onto the canvas. The node appears at the drop location.

  7. Hover over the output port (small circle on the right edge) of a source node. A handle appears.

  8. Click and drag from the output port to the input port (left edge) of the target node. Release to create a wire.

  9. For Branch nodes, each named path has its own output port. Connect each port to the appropriate downstream node.

  10. To delete a wire, click it to select it and press Delete (or right-click and choose Remove).

<!-- SHOT: kb-crm-workflow-canvas-01 — a workflow on the canvas with trigger, logic and action nodes wired -->

How to configure a node

When you would do this: every node you add.

  1. Click any node on the canvas. The configuration panel opens on the right.
  2. The Configure tab shows the node's settings. Fill in the required fields:
    • For a Trigger node: select the trigger type and provide type-specific settings (collection, schedule, webhook URL, etc.).
    • For a Filter node: build a rule group with field, operator, and value conditions.
    • For an action node: select the action type and configure recipients, templates, field mappings, or connector operations.
    • For an AI node: select the operation, write or edit the prompt template, choose input fields, and map outputs.
  3. Use the Data Preview tab during a test run to inspect sample data.
  4. Use the Logs tab to review execution history for this specific node.

How to test before going live

When you would do this: always — before you publish.

  1. Click Test Run in the canvas toolbar.
  2. Choose Mock Data to enter test values manually (no side effects), or Live Record to select a real record (actions execute for real — confirm the warning).
  3. Watch the canvas animate. Each node transitions through pending, running, and success/error states.
  4. Click any node to inspect its input and output data. Fix issues and re-run.
<!-- SHOT: kb-crm-workflow-test-01 — Test Run Mode showing a run's results per node -->

How to publish a workflow

When you would do this: the test passed and it is ready to run for real.

  1. While building, click Save Draft to preserve your work without activating the workflow.
  2. Run a test (see Test Run Mode above) and fix any issues.
  3. Click Publish. The workflow immediately begins responding to its configured trigger.
  4. A version snapshot is saved automatically on every publish.

How to start a workflow from a record

When you would do this: running an automation on demand.

  1. Open a CRM record (Account, Contact, Opportunity, Member, Booking, etc.).
  2. Click the Automate button (lightning bolt icon) in the record action bar.
  3. Select a workflow from the dropdown. Only workflows your role has trigger permission for appear.
  4. If the workflow requires input parameters, fill in the form and click Run Workflow.
  5. A confirmation toast appears. The workflow executes asynchronously.
  6. To trigger across multiple records, go to the list view, select records with checkboxes, then click Actions > Run Workflow.

How to start from a template

When you would do this: someone has already built something close.

  1. Navigate to Settings > Automations > Templates.
  2. Browse templates by module (Golf, Hospitality, CRM, Support) or search by keyword.
  3. Click a template to preview its nodes, wiring, and a plain-language description of what it does.
  4. Click Use Template. The canvas opens pre-populated. Adjust triggers, recipients, and field references to match your data, then publish.

How to see what a workflow did

When you would do this: checking it worked, or finding out why it did not.

  1. Per-record: Open any record, go to the Activity tab, and select the Automation sub-tab. Each row shows workflow name, trigger type, start time, duration, and status (Success, Failed, Retrying, Cancelled). Click a row to expand the full step trace.
  2. All records (your runs): Navigate to Automations > My Executions in the left sidebar. The table shows all executions you have manually initiated, with date-range filtering.
  3. All records (admin view): Navigate to Settings > Automations > Monitoring. See the monitoring section under Admin Configuration below.

  1. Navigate to Settings > Automations > Monitoring.
  2. The dashboard shows, for each workflow:
    • Total executions in the selected time period (last 24 h, 7 d, 30 d, custom range).
    • Success count and failure count.
    • Success rate percentage.
    • Average execution duration (ms).
    • Last execution timestamp and status.
  3. Click any workflow row to drill into its execution log: a paginated list of every execution with start time, duration, triggering record, triggering user (or "Scheduler"), and status.
  4. Click any execution to view the full node-by-node trace, including input/output data and timing for each node.
  5. The Failures tab shows only failed executions across all workflows, sorted by most recent. Use this as a daily operational health check.
  6. The Dead-Letter Queue tab shows all action payloads that exhausted their retries. For each entry, review the payload and error, then choose Replay (re-attempt the action), Skip (mark as resolved without replaying), or Delete.
<!-- SHOT: kb-crm-workflow-history-01 — execution history with successes and a failure -->

How to handle failures

When you would do this: deciding what happens when a step fails.

Each node supports independent error handling settings accessible via the node's overflow menu or the Configure tab:

  • On Error — choose the behaviour when the node fails:
    • Stop — halt the entire workflow execution.
    • Continue — skip the failed node and proceed to the next node.
    • Retry — retry the node up to the configured maximum (0 to 5 attempts) with exponential backoff.
    • Error Path — route execution to a dedicated error-handling node (e.g. send an admin notification).
  • Max Retries — number of retry attempts (default: 3 for connector and payment actions, 0 for logic nodes).
  • Retry Delay — base delay in milliseconds. The engine applies exponential backoff automatically.
  • Idempotency Key — for payment and connector actions, define a template expression (e.g. {{record.id}}-{{action}}-{{timestamp}}) to prevent duplicate operations across retries.

How to set up connectors

When you would do this: before a workflow can reach anything outside GreenLane.

Customer connectors are configured in Settings > Connectors.

  1. Click + Add Connector. The connector catalogue shows all available connectors grouped by category (CRM, Analytics, Communication, Data Warehouse, Vertical, Generic).
  2. Select a connector (e.g. Salesforce). Follow the guided setup:
    • Authenticate — complete the OAuth 2.0 flow or enter an API key. Credentials are encrypted at rest.
    • Select Objects — choose which objects to sync (e.g. Accounts, Contacts, Opportunities).
    • Map Fields — map fields between the external system and GreenLane. Default mappings are provided; customise as needed. Each mapping has a sync direction (inbound, outbound, bidirectional) and an optional transform (lowercase, uppercase, trim, date format, or custom expression).
    • Configure Sync — set sync frequency (real-time, 5 min, 15 min, hourly, daily, weekly, manual), conflict resolution strategy (GreenLane wins, external wins, newest wins, manual), and whether to sync deletes.
    • Test Connection — the system validates authentication and performs a sample read.
  3. Click Save. The connector status changes to Connected and the initial sync begins.
  4. Connector health is shown on the Connectors page: status (Connected, Error, Syncing, Paused), last sync timestamp, last sync result, and record counts per object.

How to manage your templates

When you would do this: sharing a workflow pattern with the team.

  1. Navigate to Settings > Automations > Templates.
  2. Administrators with the perm:/workflows/admin permission can create, edit, and delete templates.
  3. To create a template from an existing workflow, open the workflow, click the overflow menu, and select Save as Template. Assign a module category (Golf, Hospitality, CRM, Support) and write a description.
  4. Templates are available to all users with workflow creation permissions.

Reference

Trigger types

Six trigger types start a workflow:

  • Record Change — fires when a record is created, updated, or deleted. Optionally restrict to specific fields via a Watch Fields list and apply filter conditions.
  • Schedule — fires on a cron-based schedule (daily, weekly, monthly, or a custom cron expression). An optional record filter selects which records the scheduled run applies to.
  • Webhook (Inbound) — fires when an external system sends an HTTP POST to a GreenLane-generated endpoint URL. Supports HMAC signature validation and payload-to-field mapping.
  • Manual / Button — fires when a user clicks a button on a record page, list view, or dashboard. Administrators define which object types and roles can trigger the workflow, and may require input parameters.
  • Connector Event — fires when a connected external system raises an event (record created, updated, or deleted in Salesforce, a new Slack message, etc.). Requires a configured connector instance.
  • API Trigger — fires when an authenticated API call hits a dedicated endpoint path. Accepts a request schema for payload validation.

Logic nodes

  • Filter / If — evaluates a rule group of conditions. Records that pass continue down the wire; records that fail are dropped or routed to a "false" output.
  • Branch — splits execution into multiple named paths, each with its own condition group. Includes an optional default path for records that match no branch.
  • Loop — iterates over a collection field, executing downstream nodes once per item. A safety limit (maxIterations) prevents runaway loops.
  • Delay / Wait — pauses execution for a fixed duration, until a date field arrives, or until a condition on the record becomes true. A maximum wait period prevents indefinite pauses.
  • Transform — reshapes data via field mapping, aggregation (SUM, AVG, COUNT, MIN, MAX), pivot, formula expressions, or merge operations. Formulas are arithmetic only: numbers, {{field}} values, + - * / % **, brackets, and Math.round, floor, ceil, trunc, abs, min, max, pow and sqrt. A formula that uses anything else, or divides by zero, gives no result.

AI nodes

AI nodes are powered by the same language models behind Finn AI. Each AI node accepts a prompt template with {{field}} placeholders, sends the rendered prompt to the selected model, and maps the response to output fields. Supported operations:

  • Classify — assigns one of a set of administrator-defined labels to a piece of text (e.g. classify support tickets as Billing, Technical, or General).
  • Summarise — produces a concise summary of a long text field such as a conversation transcript or case description.
  • Sentiment — detects positive, negative, or neutral sentiment and returns a confidence score.
  • Score Prediction — predicts a numeric score within a defined range based on input fields (e.g. predict churn likelihood from usage data).
  • Custom — freeform prompt for any AI task not covered by the built-in operations.

Every AI node runs on the same AI model, so there is no model to choose.

Platform action nodes

Platform actions are native GreenLane operations. They appear with an emerald accent stripe on the canvas.

Communication:

  • Send Email (Mailjet) — select a template or compose inline, set recipients from record fields, merge dynamic variables.
  • Post to Relay — send a message to an entity, team, or system channel with optional user/role mentions.
  • Send Notification — in-app notification with configurable priority and action URL.

CRM Operations:

  • Create Record — create a new record in any collection with field mappings from the workflow context.
  • Update Record — update fields on the triggering record or a related record via upsert logic.
  • Delete Record — remove a record (use with caution; audit-logged).
  • Create Task / CTA — create a task (Task, Call, Email, Meeting) with subject, priority, owner, and due-date formula.
  • Set Score — set, increment, or decrement a score dimension on an account.
  • Assign Owner — assign a record owner by specific user, round-robin, field value, or least-loaded strategy.
  • Log Timeline — write a custom timeline entry against an account or contact.

Payments (Stripe):

  • Create Subscription — create a Stripe subscription with plan, billing contact, frequency, and optional trial period.
  • Update Subscription — modify an existing subscription.
  • Process Payment — charge a one-time payment with amount, currency, and idempotency key. Leave the currency blank to charge in your organisation's currency.
  • Issue Refund — refund a payment in full or in part, with reason code and optional customer notification.

Vertical:

  • Sync Availability (Channex) — sync room or facility availability and rates to distribution channels.

Advanced:

  • Trigger Sub-Workflow — invoke another published workflow, passing data via an input mapping.

Customer connector nodes

Customer connectors are external systems configured per-tenant. They appear with an amber accent stripe on the canvas. Each connector supports create, update, upsert, delete, query, and custom operations against objects in the external system.

Available connectors (Priority 1 — ships now):

  • Salesforce — bi-directional sync of Accounts, Contacts, Leads, Opportunities, and custom objects. OAuth 2.0 authentication.
  • Generic Webhook — configurable inbound and outbound HTTP connector for any REST API. Supports OAuth 2.0, API key, bearer token, and basic authentication.

Available connectors (Priority 2 — Data & Analytics):

  • Google Analytics (GA4) — inbound pull of events, sessions, and users for lead scoring and engagement tracking.
  • Pendo — inbound pull of visitor data, feature usage, NPS scores, and guide interactions.
  • Snowflake — bi-directional data warehouse integration for BI reporting and enriched data.
  • AWS S3 — bi-directional file-based data exchange for CSV imports, report exports, and data lake integration.

Coming soon (Priority 3 — Communication):

  • Slack, Microsoft Teams, HubSpot.

Coming soon (Priority 4 — Vertical):

  • Handicap Master, ASSA ABLOY / Salto, Lightspeed / Square POS, Oracle OPERA / Mews PMS, Databricks, Xero, QuickBooks.

Each connector instance stores its authentication credentials (encrypted at rest), field mappings per object, sync frequency (real-time, 5 min, 15 min, hourly, daily, weekly, or manual), conflict resolution strategy, and sync filters.

Anatomy of a node card

Every node on the canvas follows a consistent card structure:

  • Header — category icon (coloured circle) + category label + overflow menu (rename, duplicate, disable, delete).
  • Title — editable node name.
  • Subtitle — one-line configuration summary (auto-generated from the node's settings).
  • Port dots — input port on the left edge, one or more output ports on the right edge. Wires snap to ports.
  • Accent stripe — 4 px left border colour coded by category:
    • Blue (blue-500) — Trigger nodes
    • Purple (purple-500) — Logic nodes
    • Emerald (emerald-500) — Platform Action nodes
    • Amber (amber-500) — Customer Connector nodes
    • Fuchsia (fuchsia-500) — AI nodes

The configuration panel

Clicking any node opens a right-side configuration panel with three tabs:

  • Configure — the node's settings form (trigger type, field selections, template pickers, prompt editors, connector operation, etc.).
  • Data Preview — shows sample data flowing through the node during a test run, so builders can verify field names and values before the data reaches downstream nodes.
  • Logs — per-node execution history showing status, duration, input/output payloads, and error details for past runs.

Test run mode

Before publishing, builders can validate a workflow using test run mode:

  • Click Test Run in the toolbar. Choose a test mode: Mock Data (enter values manually; side-effect actions are simulated) or Live Record (select a real record; actions execute against real data with a confirmation prompt).
  • The canvas animates execution in real time. Each node shows its status: pending (grey), running (blue pulse), success (green tick), error (red cross), or skipped (dashed outline).
  • Execution duration is displayed per node. Click any node during or after the test to inspect input/output data in the Data Preview tab.
  • If a node fails, the error is shown inline. Fix the configuration and re-run without leaving the canvas.

The template gallery

The template gallery provides ready-made workflow patterns organised by module:

  • Golf — new member welcome sequence, competition result notification, membership renewal reminder.
  • Hospitality — booking confirmation email, pre-arrival upsell, post-stay NPS survey, availability sync to OTAs.
  • CRM — lead qualification scoring, opportunity stage-change notification, account health alert, churn risk escalation.
  • Support — ticket classification (AI), SLA breach escalation, CSAT follow-up, first-response auto-reply.

Click a template to preview its nodes and wiring. Click Use Template to open the canvas pre-populated with the template configuration. Adjust triggers, recipients, and field references to match your data, then publish.

Version control

  • Every publish creates an immutable version snapshot.
  • The Versions tab lists all versions with author, timestamp, and a one-line change summary.
  • Select two versions and click Compare to see a visual side-by-side diff of added, removed, and changed nodes.
  • Click Restore on any version to create a new draft matching that version's configuration. Publish the draft to activate the rollback.
  • Undo/Redo (Ctrl+Z / Ctrl+Shift+Z) is available on the canvas for in-session editing.

Permissions

Workflow permissions are scoped through GreenLane's role-based access control:

  • Workflows access — needed to create, edit, save, publish, re-enable, move and delete workflows and folders. It comes with the Administration and Owner permission bundles, and club owners and admins always have it. Someone without it can't change a workflow, even with a direct link.
  • Each change is attributed to the person who made it, and a workflow or folder can only be changed by people at the club it belongs to.
  • Run and Test Run on the canvas also need Workflows access, and only work for a signed-in person at the club the workflow belongs to. A run always uses that club's own data. They can't be started with an API key or a partner integration.
  • perm:/workflows/trigger — trigger manual workflows from record pages and list views.
  • perm:/workflows/admin — access the monitoring dashboard, dead-letter queue, and template management.

Per-workflow trigger permissions allow administrators to restrict which roles can trigger a specific manual workflow.

The execution engine

The execution engine processes workflows asynchronously with the following guarantees:

  • Per-node retry — each node can be configured independently with 0 to 5 retry attempts.
  • Exponential backoff — retry delays increase exponentially (e.g. 1 s, 2 s, 4 s, 8 s, 16 s) to avoid overwhelming downstream systems.
  • Idempotency keys — payment and connector actions accept an idempotency key template to prevent duplicate operations on retry.
  • Dead-letter queue — actions that exhaust all retries are stored for manual inspection and replay.
  • Error path routing — a node's error handling can be set to route failures to a dedicated error-path node instead of stopping the workflow.
  • Concurrency limits — the engine respects per-tenant concurrency limits to prevent resource exhaustion.

Troubleshooting

IssueCauseFix
Workflow not triggering on record updateWatch Fields list is set and the updated field is not includedOpen the trigger configuration and add the relevant field to the Watch Fields list, or clear the list to watch all fields
Workflow executes but email is not receivedRecipient field resolves to an empty or invalid email addressCheck the record's email field; also check the Notifications module delivery log for bounce or suppression entries
Webhook action returns 401 UnauthorisedAPI key or token in the webhook header has expiredUpdate the credential in Settings > Integrations > Secrets Vault and reference the updated secret in the webhook action
Condition always evaluates to falseRelative date expression references a field that is null on the recordAdd an "Is Not Empty" condition before the relative date condition to guard against null values
Test run shows "No records match" for scheduled triggerRecord filter conditions on the scheduled trigger exclude all current recordsTemporarily relax the filter conditions to confirm execution, then tighten them again
Dead-letter queue growing unexpectedlyA downstream system is consistently returning errorsInvestigate the target system's availability; fix the integration or pause the workflow until the issue is resolved
Manual workflow not visible for a userUser's role does not have trigger permission for the workflowAdmin should open the workflow trigger settings and add the user's role to the permitted roles list
Version rollback did not take effectThe restored version was saved as a draft but not publishedAfter restoring, click Publish to make the rolled-back version active
Connector action fails with "Authentication expired"OAuth 2.0 access token has expired and the refresh token is invalid or revokedGo to Settings > Connectors, open the connector instance, and click Re-authenticate to complete a fresh OAuth flow
Connector action fails with "Rate limit exceeded"Too many API calls to the external system in the configured time windowReduce workflow execution frequency, add a Delay node before the connector action, or contact the external system provider to increase the rate limit
AI node returns "AI generation failed"The AI service was briefly unavailable or the Finn AI module is disabledCheck that the Finn AI dependency is enabled in Settings > Module Management, then run the workflow again
AI node returns unexpected classificationPrompt template does not provide enough context or classification labels are ambiguousRefine the prompt template with clearer instructions and more distinctive label descriptions; test with varied sample data
Inbound webhook times out (no execution)The external system is not sending the payload to the correct endpoint URL, or HMAC validation is failingVerify the endpoint URL in the trigger configuration matches the URL configured in the external system; check that the HMAC secret matches on both sides
Webhook trigger fires but payload fields are emptyField mapping in the webhook trigger does not match the actual payload structureUse the Data Preview tab during a test run to inspect the raw payload, then update the field mapping to match the actual JSON paths

Dependencies & Integrations

CRM: Workflow triggers subscribe to CRM record events. Workflow actions can create, update, and delete CRM records. Execution history for a workflow run appears on the triggering record's Activity tab.

Relay: The Post to Relay action sends messages to entity, team, or system channels. Relay channel events can trigger workflows (e.g. a message posted in a support channel triggers ticket creation).

Stripe: Platform action nodes create subscriptions, process payments, update subscriptions, and issue refunds via the Stripe integration. All payment actions support idempotency keys.

Mailjet: The Send Email platform action sends transactional email through Mailjet. Supports email templates with merge fields and dynamic variables.

Channex: The Sync Availability platform action keeps room and facility availability synchronised across distribution channels.

Finn AI: AI nodes use the same language model infrastructure as Finn. The dependency ensures that AI capabilities (classify, summarise, sentiment, score prediction) are available when the Finn AI module is enabled.

Customer Connectors:

  • Salesforce — bi-directional CRM sync for migration and co-existence scenarios.
  • Google Analytics (GA4) — inbound analytics data for lead scoring and engagement tracking workflows.
  • Pendo — inbound product adoption data for health scoring and churn prediction.
  • Snowflake — bi-directional data warehouse integration for BI and enriched data.
  • AWS S3 — file-based data exchange for bulk imports and exports.
  • Segment — CDP integration (coming soon).
  • Slack — workflow notifications to Slack channels and Slack activity ingestion.
  • Microsoft Teams — notification delivery for Microsoft-centric organisations (coming soon).
  • HubSpot — bi-directional CRM sync for SMB migration (coming soon).
  • Generic Webhook — connect any REST API without a dedicated connector.

Changelog

VersionDateChange
2.5.72026-11-07Custom code steps no longer run; a workflow that has one logs that it was skipped.
2.5.62026-11-07Formulas now accept arithmetic only.
2.5.52026-11-05Removed the model option from AI nodes: every node uses the same AI model.
2.5.42026-11-03AI nodes work again. AI nodes in a workflow now return a result instead of failing, and every node uses the same model.
2.5.32026-10-20Run and Test Run now need Workflows access. Running or test-running a workflow from the canvas is limited to signed-in people with Workflows access at the club the workflow belongs to, and a run always uses that club's own data.
2.5.22026-10-19Process Payment with no currency set now charges in your organisation's currency (Settings → General). It used to charge in pounds.
2.5.12026-10-12Workflow changes now need Workflows access. Creating, saving, publishing, re-enabling, moving and deleting workflows and folders is limited to people with Workflows access at the club the workflow belongs to. Each change is attributed to the person who made it. Dropping a workflow on "All Workflows" no longer moves it.
2.5.02026-09-21Rewritten as step-by-step tasks. Workflows now open with building, configuring and — before anything else — testing and publishing, with the node catalogue moved to reference. Testing before publishing is stated as the difference between a mistake you catch and one your customers catch.
2.4.02026-08-01Removed the "Sync Handicap (WHS)" platform action from the documented node palette, template gallery and integration list. GreenLane does not connect to the World Handicap System or any national handicap authority — handicaps are entered by the club or the member and stored on the member profile.
2.3.02026-04-21Added Workflow Marketplace as Wave 10 of the production-readiness programme (G6 differentiator)
2.2.02026-04-08Improved workflow engine wiring end-to-end for production readiness
2.2.02026-04-08Fixed audit-actions dynamic import to unblock the build
2.1.02026-03-18Customer connector framework, AI nodes, template gallery with Golf/Hospitality/CRM/Support templates, execution engine with per-node retry and exponential backoff, test run mode with per-node tracking
2.0.02026-03-17Visual canvas builder with React Flow, new node types, platform action separation
1.0.02026-03-17Initial documentation
Version 2.5.7 · Last updated 2026-11-07