0CodeKit icon

0CodeKit

A toolbox of no-code utilities

AI → Mood Detection

AI-generated

Overview

The 0CodeKit 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, gauge public reaction to a product launch, or monitor employee satisfaction from survey responses.

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 underlying API response, you can expect fields indicating the detected mood or sentiment (such as "positive", "neutral", "negative", or more nuanced emotions), and possibly confidence scores or additional metadata.

Example output:

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

Note: The actual keys may vary depending on the external service's response.

Dependencies

  • External Service: Requires access to the CodeKit API.
  • API Key: You must configure n8n credentials named codeKitApi for authentication.

Troubleshooting

  • Missing Credentials:
    Error message: No credentials found for codeKitApi
    Resolution: Ensure that the CodeKit API credentials are set up in n8n.

  • Invalid Input:
    Error message: Parameter "text" is required
    Resolution: Make sure the "Text" property is provided and not empty.

  • API Errors:
    Error message: May include HTTP error codes or descriptive messages from the CodeKit API.
    Resolution: Check your API key, network connectivity, and ensure the input text is valid.

Links and References

Discussion