What is an Assembly Variable?
A Transloadit Assembly Variable is a placeholder such as `${file.original_basename}` that resolves during processing. Robots use these values to adapt behavior from the current file or hidden form fields.
How Assembly Variables work
Variables are expressions evaluated against runtime context when a Robot needs values that are unknown at Template authoring time. Their namespaces can expose file attributes or submitted fields, allowing one graph to adapt names and options per input. They differ from literal parameters because expansion occurs during execution and may vary across files. The resolved value crosses into paths or Robot settings, so its type, allowed characters, and absence behavior matter.
A client authenticates and submits files or references together with workflow instructions. The platform validates the request, schedules dependent operations, records state transitions, and exposes results through a response, polling endpoint, or notification.
Platform concepts become reliable only when their lifecycle is explicit. Authentication, idempotency, retries, timeouts, observability, quotas, and terminal states should be designed together rather than added after failures occur.
Key facts
- 1File-scoped variables can resolve differently for every item in one Assembly, which enables per-source naming but can also create collisions when basenames repeat.
- 2Hidden form fields provide request-specific data to Instructions without changing the Template, but they remain untrusted input and require validation before sensitive use.
- 3A missing or malformed value can propagate into a Robot parameter or output path; integrations should test fallback behavior rather than assume every file exposes every field.
When Assembly Variables matter
Use variables when output names or Robot options must depend on per-file data without separate Instructions. Sanitize values used in paths or names, because unexpected input can create invalid or conflicting outputs.
- Running repeatable upload, import, processing, AI, storage, and notification pipelines.
- Tracking long-running media work independently from an application request.
- Applying credentials, quotas, retries, and error policies consistently across integrations.
Working with platform at scale
Guidance that holds across every platform term in this glossary, not just Assembly Variables.
What you gain
- Reusable workflows separate application intent from processing infrastructure.
- Stable job identifiers and lifecycle events improve observability and recovery.
- Managed queues and workers let products scale without embedding every media tool.
What it costs
- Synchronous responses are simple but keep connections open while long work executes.
- Aggressive retries improve recovery from transient faults but can duplicate work or overload a dependency.
- Higher concurrency reduces queue time until resource contention or a downstream limit becomes the bottleneck.
Answer these before production
- 1Define authentication, authorization, idempotency, retries, and terminal error behavior.
- 2Observe queue time, execution time, callbacks, and partial results with stable identifiers.
- 3Exercise malformed, duplicate, interrupted, and unauthorized requests before launch.
How Transloadit helps with Assembly Variables
When Assembly Variables are relevant to your workflow, you can hand the surrounding platform work to Transloadit instead of maintaining the processing stack yourself. Transloadit models file workflows as reusable Assembly Instructions. Upload, import, processing, AI, storage, delivery, status updates, and error handling can be composed without operating the underlying media tools yourself.
Support for a specific codec, container, parameter, or combination can vary by Robot and processing stack. Check the linked documentation for the exact inputs and outputs available for your use case.