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
The node provides a versatile toolbox of no-code utilities under various resources, including AI. Specifically, for the AI resource with the "Detect Email Type" operation, it analyzes the subject and body of an email to determine its type. This can be useful in scenarios such as automatically categorizing incoming emails (e.g., promotional, transactional, spam), routing emails to appropriate workflows, or triggering specific actions based on email content.
Practical examples:
- Automatically detect if an email is a support request or a sales inquiry based on its subject and body.
- Filter marketing emails from personal correspondence.
- Trigger different automation paths depending on the detected email type.
Properties
| Name | Meaning |
|---|---|
| Subject | The subject line of the email to analyze. |
| Body | The main content/body text of the email to analyze. |
| Code Variables | Optional collection of code variables that can be used when running custom code functions. |
Output
The node outputs a JSON array where each element corresponds to the result of processing one input item. For the "Detect Email Type" operation, the output JSON contains the detection results returned by the underlying API, which typically includes the identified email type and possibly additional metadata about the classification.
If multiple items are processed, the output will be an array of such results.
No binary data output is indicated for this operation.
Dependencies
- Requires an API key credential for authentication with the external service providing the code kit utilities.
- The node makes HTTP POST requests to endpoints structured as
ai/detectEmailTypewith the subject and body parameters. - No other external dependencies are explicitly required.
Troubleshooting
Common issues:
- Missing or invalid API key credential will cause authentication failures.
- Providing empty or malformed subject/body strings may lead to incorrect or failed detection.
- Network connectivity issues can prevent the node from reaching the external API.
Error messages:
- Authentication errors usually indicate missing or incorrect API credentials; verify and re-enter the API key.
- Validation errors may occur if required fields like subject or body are empty; ensure these inputs are provided.
- Timeout or network errors suggest connectivity problems; check internet access and API endpoint availability.
Links and References
- n8n Expressions Documentation — for using expressions in property values.
- External API documentation for the code kit service (not included in source) would provide detailed info on email type detection capabilities.