Actions108
- AI Actions
- Transcribe
- Detect Brand
- Extract Contact Information
- Mood Detection
- Detect Adult Content
- Enitity Detection
- Language Detection
- Too Long To Read
- Check Content Policy
- Detect Faces
- Generate Python Code
- Picture Text Recognition
- Detect Color
- Generate Image
- PDF OCR
- Translation
- Detect Email Type
- Generate Javascript Code
- Picture Object Recognition
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Date & Time Actions
- Generate Actions
- Image Actions
- Operator Actions
- PDF Actions
- Storage Actions
- Text Actions
- User Actions
Overview
This node provides a variety of no-code utility functions grouped by resource and operation categories. Specifically, for the Calculate resource with the BMI operation, it calculates the Body Mass Index (BMI) based on user-provided height and weight inputs. This is useful in health, fitness, or wellness automation workflows where you want to automatically compute BMI from input data.
Practical examples include:
- Automatically calculating BMI for users submitting their height and weight via forms.
- Integrating BMI calculation into health monitoring pipelines.
- Triggering alerts or recommendations based on BMI thresholds.
Properties
| Name | Meaning |
|---|---|
| Height in Cm | The height of the person in centimeters (required). |
| Weight in Kg | The weight of the person in kilograms (required). |
| Code Variables | Optional collection of code variables that can be defined and passed to the code execution. |
The "Code Variables" property allows adding multiple named variables with string values, which are used when running custom code functions within the broader node capabilities but are not directly related to the BMI calculation itself.
Output
The output JSON contains the result of the BMI calculation. Typically, this will be an object or array of objects representing the calculated BMI value(s) for each input item processed.
Since the node supports many operations beyond BMI, the output structure may vary depending on the operation. For BMI specifically, expect a numeric BMI value or an object containing the BMI result.
No binary data output is involved in the BMI operation.
Dependencies
- Requires an API key credential for authentication with the external service powering the calculations.
- The node sends requests to an external API endpoint corresponding to the selected resource and operation.
- No additional environment variables are explicitly required beyond the API key credential.
Troubleshooting
- Missing Required Inputs: Ensure both "Height in Cm" and "Weight in Kg" are provided as numbers; missing or invalid inputs will cause errors.
- API Authentication Errors: Verify that the API key credential is correctly configured and valid.
- Unexpected Response Format: If the external API changes, the node might fail to parse results properly.
- Continue On Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error details in the output.
Common error messages relate to invalid parameters or authentication failures. Double-check input types and credentials to resolve these.
Links and References
- Body Mass Index (BMI) - WHO
- n8n Expressions Documentation
- External API documentation (not included in source code) would provide detailed info on request/response formats.