ID Generator
The ID Generator component gives you a quick way to create a unique ID that you can use anywhere in your workflow, such as tagging records, generating keys, or creating unique references for new items.
How it Works
When you add the component to your flow, it automatically creates a new random ID using Python’s built‑in uuid
library. If you leave the input field empty, the component will generate a fresh UUID for you. If you provide a value, that value will be used instead. The generated ID is then sent out as a message that can be connected to other components.
Inputs
Input Fields
- Value: The value you want to use as the ID. If you leave this blank, the component will generate a random UUID for you.
Outputs
- ID: A
Message
containing the generated unique ID. You can use this output to pass the ID to other components, store it in a database, or display it in the dashboard.
Usage Example
- Drag the ID Generator component onto your canvas.
- Leave the Value field empty (or enter a custom value if you prefer).
- Connect the ID output to the next component in your workflow, such as a database insert or a notification message.
- Run the flow – each time it runs, a new unique ID will be produced and passed along.
Related Components
- UUID Generator – another component that creates UUIDs, but with different formatting options.
- Hash Generator – useful if you need a deterministic ID based on input data.
Tips and Best Practices
- Use the ID Generator when you need a quick, collision‑free identifier for new records.
- If you need the same ID for the same input every time, consider using a hash component instead.
- Keep the output of the ID Generator in a variable if you plan to reuse it later in the same flow.
Security Considerations
The IDs produced are random and not derived from any personal or sensitive data, so they are safe to use in public or shared workflows. However, avoid using them as the sole means of authentication or authorization.