0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

AI → Detect Email Type

AI-generated

Overview

This node operation detects the type of an email based on its subject and body content. It is useful for categorizing or analyzing emails automatically, such as identifying spam, promotional, transactional, or other email types. For example, it can be used in workflows to route emails to different departments or trigger specific actions based on the email type detected.

Use Case Examples

  1. Automatically categorize incoming customer support emails by type to route them to the appropriate team.
  2. Analyze marketing emails to identify promotional content and track campaign effectiveness.

Properties

Name Meaning
Subject Subject of the email, used as input for detecting the email type.
Body Body content of the email, used as input for detecting the email type.
Code Variables Optional code variables that can be defined and passed to the detection function, allowing customization or additional context for the email type detection.

Output

JSON

  • detectedType - The detected type of the email based on the subject and body analysis.

Dependencies

  • An API key credential for the CodeKit API is required to perform the email type detection.

Troubleshooting

  • Ensure that both the subject and body fields are provided and not empty, as missing inputs may cause detection to fail.
  • Check that the API key credential is correctly configured and has the necessary permissions to access the CodeKit API.
  • If the node throws errors related to network or API response, verify the network connectivity and the status of the CodeKit service.

Discussion