Actions40
- AI Actions
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Generate Actions
- Operator Actions
- PDF Actions
- Storage Actions
Calculate → BMI
AI-generatedOverview
This node provides a "Calculate" resource with a "BMI" operation, allowing users to calculate the Body Mass Index (BMI) based on provided height and weight. This is useful in health, fitness, or wellness automation workflows where you need to assess an individual's BMI for further processing, reporting, or decision-making.
Practical examples:
- Automatically categorize users as underweight, normal, overweight, or obese based on their BMI.
- Integrate with health-tracking systems to provide instant feedback on user input.
- Use in onboarding forms for gyms or wellness apps to personalize recommendations.
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 external service response, it typically includes:
{
"bmi": 22.5,
"category": "Normal weight"
}
bmi: The calculated Body Mass Index value.category: (If provided) A textual description of the BMI range (e.g., "Underweight", "Normal weight", "Overweight", "Obese").
Dependencies
- External Service/API Key: Requires credentials named
codeKitApito access the CodeKit API. - n8n Configuration: Ensure the CodeKit node is properly configured with valid API credentials.
Troubleshooting
Missing Credentials:
Error message: "No credentials found for codeKitApi."
Resolution: Add and configure the required API credentials in n8n.Invalid Input:
Error message: "Parameter 'height' or 'weight' is missing or invalid."
Resolution: Ensure both "Height in Cm" and "Weight in Kg" are provided and are valid numbers.API Errors:
Error message: "Request failed with status code XXX"
Resolution: Check your API credentials and network connectivity.