0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions108

Overview

The node "0CodeKit" is a versatile toolbox offering a wide range of no-code utilities across multiple domains such as AI, business validation, calculations, code execution, conversions, cryptography, date & time operations, image processing, PDF manipulation, storage management, text processing, and user data generation.

For the Text - Contains operation specifically, the node checks whether a given text contains certain keywords or phrases. This can be useful in scenarios like filtering messages, validating input content, searching for specific terms within documents, or triggering workflows based on keyword presence.

Practical examples:

  • Checking if an email body contains any prohibited words.
  • Detecting if a product description includes certain feature keywords.
  • Filtering customer feedback for mentions of specific topics.

Properties

Name Meaning
Text The main text string to check for the presence of keywords.
Keyword A single keyword to check if it is contained within the text.
Keyword List A comma-separated list of keywords to check for in the text (e.g., "keyword1,keyword2,keyword3").
Case Sensitive Boolean flag indicating whether the keyword matching should consider case sensitivity (true) or not (false).
Only Complete Words Boolean flag indicating whether to match only complete words (true) or allow partial matches (false).
Code Variables Optional collection of code variables defined in an external code editor context, allowing dynamic substitution of variable values during execution.

Output

The output is a JSON array where each item corresponds to an input item processed. For the "contains" operation, the output JSON typically includes information about whether the specified keyword(s) were found in the text according to the configured options (case sensitivity, whole word matching). The exact structure depends on the underlying API response but generally indicates boolean results or matched keywords.

This node does not output binary data for this operation.

Dependencies

  • Requires an API key credential for the "0CodeKit" service to authenticate requests.
  • Relies on the external "0CodeKit" API endpoints to perform the text containment checks.
  • No additional environment variables are explicitly required beyond the API authentication.

Troubleshooting

  • Common issues:

    • Incorrect or missing API key credential will cause authentication failures.
    • Improperly formatted keyword lists (e.g., missing commas) may lead to unexpected results.
    • If "Only Complete Words" is enabled, partial matches will not be detected, which might confuse users expecting substring matches.
    • Case sensitivity setting must be carefully chosen depending on the use case; otherwise, matches may be missed.
  • Error messages:

    • Authentication errors indicate invalid or missing API credentials; verify and re-enter the API key.
    • Validation errors may occur if required parameters like "Text" or "Keyword" are empty; ensure these fields are populated.
    • Network or API errors suggest connectivity issues or service downtime; retry later or check network settings.

Links and References

  • n8n Expressions Documentation — for using expressions in variable definitions.
  • 0CodeKit official documentation (not provided here) would contain detailed API usage and parameter explanations.

Discussion