Formatting data in Shuffle with Liquid

Liquid formatting in Shuffle keeps playbook parameters and conditions readable and testable. This page covers when to use it, when to choose other options, and how to verify values before enabling a workflow.

On this page

Formatting data in Shuffle with Liquid before it reaches an app action

An analyst or engineer often inherits alert fields in the wrong shape. One source sends timestamps in mixed formats, a list of affected hosts arrives with blank entries, and usernames carry stray whitespace and inconsistent casing. The app action downstream expects clean, predictable values, so the playbook fails or, worse, quietly matches nothing. Liquid formatting in Shuffle is the layer where those values are reshaped inside the workflow, before they are passed into an action parameter or evaluated in a condition. It covers filters for dates, lists and string cleanup, applied to values from earlier actions, triggers or variables. It does not change what the source tool sends, and it does not replace an app that understands the source's API.

Choose between Liquid, a change at the source and a new app by asking where the problem belongs. If one tool consistently emits a format, fixing its export or query is usually cheaper than repeating the same transformation in every playbook. If the value needs a lookup, a normalization against a reference system or a call with its own authentication, an app is the better home for that logic. Liquid suits small, deterministic reshaping: trimming a value, splitting a delimited string, removing empty entries from a list or converting a timestamp to the format a destination expects. Teams should record which fields they reshape and why, because each transformation becomes a dependency that someone must maintain when the source changes.

The exact filter names, argument order and syntax for dates and lists must be confirmed against the Shuffle version you run, since Shuffle's documentation and behavior change between releases. Check the current Shuffle configuration docs and your own release notes, then test each expression with the workflow's test feature, such as the Repeat back to me action, using real sample alerts that include the messy cases. Keep inline Python out of shared tenants unless your governance allows it, because code that runs inside a workflow can read data from other workflows and handle secrets that belong to other teams. Confirm with your platform owner which tenants share an instance before writing any expression that touches credentials or cross-tenant data.

Choosing between Liquid, inline Python and upstream fixes

This table compares four places to handle messy data in a Shuffle playbook: Liquid expressions, inline Python, a dedicated app or SDK action, and a fix in the source tool. Read each row as a question to ask about your playbook, and treat the shared-tenant and testing columns as the deciding factors when several people edit the same workflows.

OptionBest fitWho can maintain itShared-tenant risk and testing effort
Liquid in parameters and conditionsDate formatting, list selection, string trimming and simple conditions on a single valueAny analyst who can open the workflow editorLow risk and quick to check with Repeat back to me, but long expressions become hard to read and review
Inline Python code blockLogic Liquid cannot express, such as parsing nested structures or multi-step transformsEngineers comfortable with Python and the runtime environmentHigher risk in shared tenants because code runs with access to the execution context, so review and restrict who can add it
Dedicated app or SDK actionTransforms reused across several playbooks or needed by many tenantsDevelopers who version, test and ship the app containerMost testable and reviewable, with added effort to build, version and update the app
Fix in the source toolData that is wrong or inconsistent at the origin, such as a field format the alert product can changeThe owners of the source system or its integrationRemoves the transform from Shuffle entirely, but depends on another team's change schedule and approval
Choosing for a shared tenantPlaybooks used by several teams or customersPlatform owner sets the rules for which option is allowedPrefer Liquid and reviewed apps, and confirm your own policy on inline code before enabling it

Where formatting belongs by situation

When a value needs reformatting for one action, such as trimming whitespace from an address or converting a timestamp before it reaches a ticket field, put the Liquid expression directly in that action's parameter. The change stays next to the step it affects, so an analyst reading the workflow sees the input and output together. This is usually the lowest-maintenance placement because nothing else depends on the transformed value.

  • Keep the expression short: One or two filters stay readable in a parameter field, while long chains are hard to review and test.
  • Test with Repeat back to me: Run the step against a real sample from a previous execution so you see the rendered value before the action runs.
  • Avoid hidden reuse: If a later step needs the same transformed value, move it to a shared step rather than copying the expression.
  • Check the input type: Filters behave differently on strings, lists and objects, so confirm what the upstream field actually delivers.
  • Document the intent: A short note in the workflow description tells the next editor why the format matters.

Confirm in your Shuffle version that the parameter field renders Liquid for each action type you use, because support can vary by app.

How a formatted value moves from trigger to app action

The path starts with a trigger delivering a payload to the workflow, where a Liquid expression in a parameter or condition reshapes the value before it is used. The worker runs each action inside its app container, so a formatting error surfaces there as a failed action. Check the formatted value at the condition, then route validation failures to a notification step rather than letting the run continue with bad data.

Liquid formatting runs in the workflow before the worker starts the app container.

Testing Liquid expressions with Repeat back to me before go-live

This sequence proves that a Liquid expression returns the values you expect across normal, empty, malformed and edge-case alert data before the expression touches a live playbook. It produces a short test record that shows what each input returned and which fixes were needed.

  1. Write down the expected output first

    Before opening the workflow editor, the playbook author writes the expected result for each sample input in a short table, one row per case. Rows should cover a normal alert, an alert with an empty field, a field with leading or trailing spaces, a value in mixed case, an empty list, and a timestamp with an explicit timezone offset. Writing expectations first prevents the author from accepting whatever the expression happens to return. The step is done when every row has a single expected string or value that a reviewer can check without running Shuffle.

  2. Add a Repeat back to me action

    In the workflow editor, the author adds a Repeat back to me action (the built-in action that echoes its input) directly after the step that supplies the alert data, and pastes the Liquid expression into its input field. The expression is kept exactly as it will appear in the real action, so nothing is rewritten during testing. Confirm in your installed version that this action exists under that name, and that it echoes the rendered parameter rather than the raw template, since the rendered output is what you are checking. The step is done when a test run shows the formatted expression in the action result.

  3. Run against a normal sample alert

    The author runs the workflow with a representative alert that has all fields populated, using a sample taken from a non-production source or a copy with sensitive values removed. The output is compared character by character with the expected value from the first step, paying attention to date format, delimiter and casing. If the output differs, the author changes the expression and reruns before moving on. The step is done when the normal case matches the expected output exactly on a clean run.

  4. Run against empty and malformed values

    The author runs the same expression with an alert where the source field is missing, null, an empty string, or contains a value in an unexpected shape, such as a date with no timezone or a list with one element instead of several. The check is whether the expression returns an empty or defined result or fails the step outright, and whether that behavior is what the playbook needs. A failure here is useful information, because it shows where a downstream action would receive bad input. The step is done when every empty and malformed case produces a known, documented outcome that the author has accepted or fixed.

  5. Check timezone, list and text edge cases

    The author runs targeted inputs for timezone handling (the same instant expressed with UTC and with a local offset), empty lists, case sensitivity (such as a hostname in upper and lower case), and whitespace (leading, trailing and doubled spaces). Each result is compared with the expected table, since Liquid string and date filters can behave differently from what a reviewer assumes. Any mismatch is either corrected in the expression or recorded as a known limitation for the playbook owner. The exact behavior of date and string filters should be confirmed in the installed Shuffle version and its documentation, not assumed from another Liquid implementation. The step is done when each edge case has a recorded result.

  6. Record results and fixes

    The author saves the test table with the actual output beside each expected value, the version of Shuffle used, and a note on each change made to the expression. A second person reviews the record, and any row that still differs from expectations is either resolved or documented as an accepted limitation. Keeping this record with the workflow makes later edits easier to retest. The step is done when the reviewer signs off that every row is either matched or explained.

  7. Replace the test step with the real action

    Once the expression passes, the author removes the Repeat back to me action and places the real action that consumes the formatted value, copying the expression unchanged from the tested version. The workflow is then run once more with a sample alert to confirm that the real action receives the same value the test step showed. If the real action has a different input format, the difference is checked before the trigger is enabled. The step is done when a single run shows the real action receiving the value recorded in the test table.

  8. Confirm before enabling the trigger

    The author confirms that the test sample data has been removed from any test-only fields and that the workflow is still pointed at the intended environment, then enables the trigger that starts it in production. The first live executions are checked against the same expectations in the test table, so any drift from sample data to real alerts is caught early. The step is done when the first live runs produce the expected formatted values and no unexpected errors appear in the execution details.

Risks of inline Python in shared Shuffle tenants

Inline Python runs inside a workflow, so it inherits everything that workflow can reach. In a shared tenant, that makes code review, access control and promotion questions that a Liquid expression never raises. The cards below cover what to check before any team puts custom logic into a block.

Code reaches tenant data and credentials

An inline Python block runs with the data passed into it, and any workflow variable or stored app credential the execution can read may be reachable from the code. Liquid expressions only reshape values that are already in the workflow. Before allowing Python blocks, confirm which credentials a workflow run can access, and whether a block author can read secrets that a reviewer would not expect. Keep high-privilege app authentications in workflows that only senior engineers can edit.

Logic hidden from review

When date parsing or string cleanup lives inside a Python block in the canvas, it does not go through the same pull request or peer review as the rest of your code. A reviewer may see the workflow JSON change without seeing what the code does. Require that any Python logic longer than a simple expression is reviewed in a Git-tracked export before it reaches production, and record who approved it.

Weak audit trail for block edits

A workflow edit made in the browser may change a formatting block without a clear author, reason or prior version. For incident reviews, you need to show what logic produced a given ticket field or indicator. Ask whether your Shuffle version and retention settings preserve workflow revision history in a form your auditors can read, and back workflows up on a schedule so you can compare versions.

Cross-tenant exposure

In a multi-tenant setup, a shared workflow or a copied block can carry one customer's field names, mapping tables or credential references into another tenant. A formatting helper written for one business unit may quietly pull data from another. Limit who can create shared workflows, keep customer-specific formatting in each tenant's own workflows, and test that copied logic does not reference another tenant's values.

Dependency and runtime drift

Inline Python depends on the Python runtime and libraries available in the app container that executes it. An upgrade or a changed image tag can alter how a date library parses a value, and the workflow may keep running with different output. Pin the image version you tested, record any libraries the code relies on, and rerun your test cases after each upgrade.

Harder promotion between environments

Python blocks often hard-code test values, hostnames or assumptions about a field name that exist only in staging. When you move the workflow to production, those assumptions travel with it and may fail silently. Move reusable logic into a versioned app with its own tests, keep environment-specific values in configuration, and check each block during promotion rather than trusting an export to be ready.

Keeping Liquid formatting maintainable as playbooks grow

The most effective way to keep Liquid formatting maintainable is to normalize each value once, near the start of the workflow, and then reference that result everywhere else. If a date, identifier or email address needs trimming, lowercasing or reformatting, do it in one early action or a single clearly named variable, rather than repeating the same expression in dozens of parameters and conditions. When a format rule changes, such as a new timestamp layout from a source system, a single edit then fixes the whole playbook instead of a hunt through every action. Keep the normalization step small and readable so an analyst opening the workflow months later can see what the rest of the flow assumes.

Document the expected input format in the workflow description so the assumption lives next to the logic. State the source of the data, the timezone and date layout expected, whether lists arrive as arrays or comma-separated strings, and what happens when a field is empty. This is the cheapest control you can add, and it helps reviewers catch a mismatch before a live alert exposes it. Test the documented format with sample inputs in the Repeat back to me output, and record which samples you used. Where a playbook depends on a field that a vendor may change, note the app version it was tested against so the next upgrade review knows what to recheck.

Treat formatting changes like code. Export the workflow and keep it in version control so every change to a Liquid expression has an author, a reason and a diff a second person can review. Shuffle's workflow exports and Git backups are the mechanism for this, but confirm the exact export options, file format and backup schedule in the version you run, since they can differ between releases and deployment types. Pair each export with a short note on what changed in the formatting logic and which test inputs were rerun. Reviewing these diffs before promoting a workflow catches silent breakage, such as a trimmed field that now drops a value the playbook still needs.

Limits to confirm before standardizing on Liquid formatting

Liquid expressions look portable, but their behavior depends on the Shuffle release, the runtime that executes them and the data flowing through each step. The cards below cover the checks that decide whether a formatting pattern can be reused across playbooks and environments without surprises.

Supported filters and tags per release

Confirm which Liquid filters and tags your installed Shuffle release accepts before you write shared patterns. Filter coverage can differ between releases, so an expression tested on one version may fail on another. Record the exact release in your playbook standards, and retest date and string filters after every upgrade. Check the release notes for the version you run, not the latest version in the documentation.

Latest release cited
v2.3.0
Shuffle releases

Null and missing field behavior

Test how an expression renders when an upstream app omits a field, returns null or returns an empty list. A missing value may render as an empty string, pass through as a literal template or stop the step, and each outcome changes what a downstream condition sees. Build a small test set with missing, empty and malformed inputs for each formatting pattern, and decide whether a blank value should fail the playbook or route to a fallback branch.

Time zone handling in date filters

Date filters can read timestamps in UTC while analysts and ticketing systems use local time, which shifts deadlines and business-hour checks. Confirm whether the runtime applies a time zone to the input string, whether the output keeps its offset and how daylight saving changes are handled. For incident deadlines such as those in regulated reporting, store timestamps in UTC and convert only at the presentation step, then verify the result with a known test value.

Size of values passed between steps

Large JSON bodies, long lists and big log excerpts become step outputs that the backend stores and passes to later actions. Formatting a very large value can slow execution or exhaust memory in a worker container, and the limit depends on your deployment sizing rather than on Liquid itself. Ask your team to measure a representative alert payload at its largest expected size, and trim fields with a filter before the value grows into a later step.

Formatting inside loops and subflows

A Liquid expression inside a loop is evaluated once per item, so a pattern that is correct for one alert can behave differently when a list contains mixed types or nested objects. Subflows receive their inputs as parameters, and a format applied before the call may not match what the subflow expects. Test each formatting step with a list containing an empty item, a single item and the largest batch you expect, and confirm that the iteration variable resolves to the value you intended.

Parity between staging and production runtimes

An expression that passes in staging can fail in production when the two environments run different Shuffle releases, different worker images or different time settings. Compare the Docker tags and runtime configuration of both environments before you promote a playbook, and run the same test inputs through each. The promotion checklist should include a Repeat back to me comparison of each formatted value, recorded for both environments, so differences are caught before a trigger is switched on.

Shuffle configuration docs

What formatting work costs and what it needs from your team

What drives the cost of Liquid formatting work in Shuffle?

The main drivers are how many playbooks read or write data, how many distinct source formats they must handle, and how clean the input is. A playbook that normalizes dates and lists from one alert source is a small job. Ten playbooks that each parse a different vendor's timestamps, nested JSON and inconsistent field names is a much larger one. Testing depth matters too: checking each filter against real sample payloads, including malformed ones, takes longer than checking a happy path. Ask any partner to break the scope down by playbook and by data source so the drivers are visible.

Can our own team do Liquid formatting in Shuffle without a partner?

Often yes, for simple work. Liquid filters for trimming strings, converting case, splitting lists and reading fields are learnable with the Shuffle documentation and a test instance. The harder part is knowing which formatting belongs in a parameter, which belongs in a condition, and when a transformation should move into an app instead. Internal teams usually need time from an analyst who knows the alert data and from a platform engineer who controls the test and production instances. If neither has that time, or if the data sources are poorly documented, a fixed-scope partner engagement can cover the gap. Be realistic about who will maintain the logic after handover.

What should a formatting quote include before we sign?

A good quote lists each playbook or data source in scope, the input formats expected, the outputs each playbook must produce, and the test cases used to accept the work. It should state which Shuffle version and deployment type the work targets, because behavior and infrastructure can differ between them. It should name who provides sample payloads and sanitized alert data, who runs the acceptance tests, and what happens to changes after handover. Ask whether the quote is one-time or includes retainer support, and what changes would require a new quote. Each item should be written so you can check it.

How do we know a formatted playbook is ready for production?

A playbook is ready when it passes repeatable tests on representative inputs, including empty fields, unexpected types and malformed values, and its outputs match what downstream steps expect. Use the Repeat back to me step with saved sample data first, then run the workflow on a staging instance with real credentials handled through its own secrets. Check the execution details to confirm that each filtered value reaches the next action as intended. The time this takes depends on how many sample cases exist and how many analysts must review results, so ask for the acceptance criteria up front rather than a single date.

What does the work need from analysts and platform staff?

Analysts supply the business rules: which fields matter, what a valid alert looks like, and what a false positive means for the playbook. They also review outputs on sample cases, because a formatting error can look plausible. Platform staff provide a test instance, access to the workflow editor, credential management, and a change process for promoting workflows. They also confirm which runtime location executes each workflow. Plan for both groups to be available during testing, not only at the start. Without that access, most delays come from waiting for samples or approvals rather than from the formatting itself.

When should formatting stay in Liquid, move to Python or become an app?

Keep logic in Liquid when it is a short transformation of values already in the workflow, such as trimming, case changes or reading a field. Move it to Python when the logic needs loops, complex parsing or libraries that Liquid cannot express clearly. Build an app when the same transformation or API call is needed in several playbooks, or when it must be versioned and tested independently. Inline Python carries risk in shared tenants because code runs inside workflow logic that other teams may edit, and it can expose data or credentials to people with edit rights. Review your tenant's access model before allowing inline code, and confirm the current behavior in the Shuffle documentation for your version.

Does the cost of formatting work recur after the first delivery?

The initial build is one-time, but several things recur. Upstream alert sources change their field names, and each change can break formatting that worked before. New playbooks will need the same patterns, and Shuffle releases can alter behavior, so a version change may require retesting. Ongoing support can be a retainer covering reviews, fixes and updates, or it can stay with your team. Ask any partner how changes after handover are priced, how regression tests are kept, and who is responsible when an upstream format changes.

How DeployOpen scopes and delivers Shuffle workflow formatting

DeployOpen treats Liquid formatting in Shuffle as part of the playbook build, not a afterthought. We agree the data shapes, the formatting rules and the test cases in writing, then build and verify each parameter and condition against your own app results before handover.

How we scope

  • Inventory the playbooks and app outputs where dates, lists and strings are reshaped before reaching a downstream app
  • Agree in writing which Liquid filters and conditions each playbook needs and which logic stays in Shuffle
  • Confirm your Shuffle edition and deployment model, since the scope depends on the environment the workflows will run in

How we build

  • Build each formatting step with Repeat back to me and capture sample inputs from real app results for repeatable testing
  • Keep inline Python out of shared tenants unless your security review approves it, and document where it is used
  • Review timezone, null and empty-list handling for each date and list transform before the workflow is switched on

How we hand over

  • Deliver a written reference of every formatting expression, its test inputs, expected outputs and the owning playbook
  • Provide exported workflow files and a short walkthrough so your team can change formatting safely after handover
  • Record the environment assumptions, including runtime locations and credentials, that the formatting depends on

How we support

  • Offer ongoing support and continuous testing as a retainer if your playbooks change often or new apps are added
  • Retest formatting expressions after Shuffle upgrades or app version changes to catch altered output shapes
  • Agree the support boundaries, response expectations and change process in the written scope before work starts

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.