0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions108

Overview

The node provides a versatile AI-powered "Entity Detection" operation that analyzes input text to identify and extract named entities such as people, places, organizations, dates, and other relevant information. This functionality is useful in scenarios like content analysis, automated tagging, data extraction from documents or messages, and enhancing search or categorization systems.

For example, you can input a customer support email body to automatically detect and extract customer names, product names, or locations mentioned, enabling better routing or analytics. Another use case is processing news articles to identify key entities for summarization or indexing.

Properties

Name Meaning
Text The text string you want to analyze for entity detection.
Code Variables A collection of code variables where each variable has:
- Variable Name or ID: Select or specify the name/ID of a variable defined in the code editor.
- Value: The value assigned to the variable, used during execution.

Output

The node outputs a JSON array where each item corresponds to the result of the entity detection on the input text. The exact structure depends on the external API response but typically includes detected entities with their types, positions, and possibly confidence scores.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for authentication with the external AI service.
  • The node internally calls an HTTP POST request to the endpoint corresponding to ai/entityDetection with the provided text and optional code variables.
  • No additional environment variables are explicitly required beyond the API key credential.

Troubleshooting

  • Common Issues:

    • Missing or invalid API key credential will cause authentication failures.
    • Providing empty or malformed text input may result in errors or empty results.
    • Incorrectly configured code variables (e.g., referencing undefined variables) might lead to unexpected behavior.
  • Error Messages:

    • Authentication errors typically indicate missing or invalid API credentials; verify and reconfigure the API key.
    • Validation errors may occur if required parameters like "Text" are not provided; ensure all mandatory fields are filled.
    • Network or timeout errors suggest connectivity issues with the external API; check network settings and API availability.

Links and References

  • n8n Expressions Documentation — for using expressions in code variables.
  • External AI service documentation (not included in source) would provide details on entity detection API response format and usage.

Discussion