0-CodeKit icon

0-CodeKit

A toolbox of no-code utilities

Overview

The 0-CodeKit node's "AI" Resource with the "Mood Detection" Operation analyzes a given text to determine its emotional tone or mood. This is useful in scenarios where you want to automatically assess the sentiment of user feedback, social media posts, customer support messages, or any other textual content. For example, you could use this node to flag negative reviews for follow-up, monitor brand sentiment, or personalize responses based on detected mood.

Properties

Name Meaning
Text Text you want to analyse

Output

The output will be a JSON object containing the results of the mood detection analysis. While the exact structure depends on the external service response, you can expect fields such as:

  • mood or sentiment: The detected mood (e.g., positive, negative, neutral).
  • Additional metadata may include confidence scores or breakdowns by emotion.

Example output:

{
  "mood": "positive",
  "confidence": 0.92
}

If an error occurs and "Continue On Fail" is enabled, the output will contain:

{
  "error": "Error message"
}

Dependencies

  • External Service: Requires access to the CodeKit API.
  • Credentials: You must configure the codeKitApi credential in n8n for authentication.

Troubleshooting

  • Missing Credentials: If the codeKitApi credential is not set up, the node will fail to execute. Ensure credentials are configured in n8n.
  • Invalid Input: If the "Text" property is empty or invalid, the node may return an error from the API.
  • API Errors: Common errors include network issues, rate limits, or invalid API keys. Error messages will appear in the output if "Continue On Fail" is enabled.
  • Unexpected Output Structure: If the API changes its response format, the output fields may differ.

Links and References

Discussion