0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

Text → Contains

AI-generated

Overview

This node operation checks if a given text contains specified keywords or a list of keywords. It supports options for case sensitivity and whether to match only complete words. This is useful for text analysis tasks such as filtering, searching, or validating content based on keyword presence.

Use Case Examples

  1. Check if a user input text contains certain keywords to trigger specific workflow actions.
  2. Filter incoming messages or documents to detect the presence of sensitive or important keywords.

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 if any are contained within the text.
Case Sensitive Whether the keyword matching should consider case sensitivity (true) or ignore case (false).
Only Complete Words Whether to match only complete words instead of partial matches within words.

Output

JSON

  • result - Boolean indicating if the text contains the specified keyword(s) based on the options.

Dependencies

  • An API key credential for the CodeKit API is required to perform the text contains operation.

Troubleshooting

  • Ensure the 'Text' and 'Keyword' or 'Keyword List' fields are correctly filled; empty values may cause unexpected results.
  • If case sensitivity is enabled, verify the exact casing of keywords and text to avoid false negatives.
  • When 'Only Complete Words' is enabled, partial matches within words will not be detected, which might differ from user expectations.

Discussion