Actions40
- AI Actions
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Generate Actions
- Operator Actions
- PDF Actions
- Storage Actions
Overview
The 0-CodeKit node's "Calculate" resource with the "BMI" operation computes the Body Mass Index (BMI) based on user-provided height and weight. This is useful in health, fitness, or medical automation workflows where you need to quickly assess BMI for individuals or datasets.
Practical examples:
- Automate BMI calculation for a list of users from a database.
- Integrate with form submissions to provide instant BMI feedback.
- Use in health monitoring flows to trigger alerts if BMI is outside healthy ranges.
Properties
| Name | Meaning |
|---|---|
| Height in Cm | The person's height in centimeters. Required for BMI calculation. |
| Weight in Kg | The person's weight in kilograms. Required for BMI calculation. |
Output
The output will be a JSON object containing the result of the BMI calculation. While the exact structure depends on the API response, you can expect fields such as:
{
"bmi": 22.5,
"weight": 70,
"height": 175,
"category": "Normal weight"
}
bmi: The calculated Body Mass Index value.weight: The input weight in kilograms.height: The input height in centimeters.category: (If provided) A textual description of the BMI range (e.g., "Underweight", "Normal weight", "Overweight", etc.).
Dependencies
- External Service: Requires access to the CodeKit API endpoint for calculations.
- API Key: Needs valid credentials (
codeKitApi) configured in n8n for authentication.
Troubleshooting
Common issues:
- Missing or invalid input: If "Height in Cm" or "Weight in Kg" are missing or not numbers, the node may throw an error or return an invalid result.
- Authentication errors: If the API key is missing or incorrect, you'll receive an authentication/authorization error.
- API errors: If the external service is unavailable or returns an error, the node will either throw or, if "Continue On Fail" is enabled, output an error message in the result.
Error messages and resolutions:
"Missing required parameter": Ensure both height and weight are provided and are valid numbers."Invalid API credentials": Check your CodeKit API credentials in n8n."Network error"or"Service unavailable": Verify network connectivity and the status of the CodeKit API.