Actions8
Overview
This custom node named "Sifuim" provides multiple utility operations under a single resource called "Custom." The "Random Number" operation generates a random integer within a user-specified inclusive range. This is useful in scenarios where you need to generate random values for testing, simulations, randomized decision-making, or any workflow requiring non-deterministic numeric input.
For example, you could use this node to:
- Generate a random discount percentage between 5 and 20 for marketing campaigns.
- Pick a random item index from a list by generating a number within the list's bounds.
- Create randomized delays or retry intervals in automation workflows.
Properties
| Name | Meaning |
|---|---|
| CJ Token | Your API token from sifuim.com required to authenticate requests to the service. |
| Range Start | Starting number of the range (inclusive) from which the random number will be generated. |
| Range End | Ending number of the range (inclusive) up to which the random number will be generated. |
Output
The output JSON object contains the following fields:
rangeStart: The starting number of the range as provided in input.rangeEnd: The ending number of the range as provided in input.randomNumber: The randomly generated integer within the specified range.
Example output JSON:
{
"rangeStart": 1,
"rangeEnd": 10,
"randomNumber": 7
}
No binary data is produced by this operation.
Dependencies
- Requires a valid API token ("CJ Token") from sifuim.com to authenticate and validate usage.
- The node internally calls a credit deduction function after generating the random number, implying that usage may consume credits associated with the API token.
- No additional external services or environment variables are explicitly required beyond the API token.
Troubleshooting
- Invalid or missing API token: The node requires a valid CJ Token. If omitted or invalid, the node will likely throw an authentication error. Ensure the token is correctly entered.
- Range errors: If
Range Startis greater thanRange End, the random number generation logic might fail or produce unexpected results. Always ensure the start is less than or equal to the end. - Credit deduction failures: The node attempts to deduct credits after each operation. If credit deduction fails, it catches the error silently, but repeated failures might indicate issues with the API token or account status.
- Unhandled operation or resource: If the node is configured with unsupported operations or resources, it throws descriptive errors indicating the unknown operation or resource.
Links and References
- sifuim.com — Official site for obtaining the CJ Token and API documentation (assumed based on property description).
- n8n Documentation — For general guidance on creating and using custom nodes: https://docs.n8n.io/
This summary focuses solely on the "Random Number" operation under the "Custom" resource as requested.