Actions8
Overview
This node provides a set of custom text processing operations under the "Custom" resource, with one key operation being Remove Emoji. The Remove Emoji operation is designed to clean up input text by removing emojis and optionally other character types such as symbols, numbers, spaces, punctuation, newlines, and extra spaces. It also supports applying a custom regular expression pattern for removal and replacing removed characters with a specified replacement string.
This node is useful in scenarios where you need to sanitize or normalize text data before further processing, such as preparing user-generated content for analysis, cleaning chat messages, or formatting text inputs for databases or APIs that do not support emojis or special characters.
Practical examples:
- Removing all emojis from social media comments while preserving the rest of the text.
- Stripping out numbers and punctuation from product reviews to focus on textual sentiment.
- Cleaning up text fields by removing extra spaces and newlines for consistent formatting.
- Using a custom regex pattern to remove specific unwanted substrings from text.
Properties
| Name | Meaning |
|---|---|
| CJ Token | Your API token from sifuim.com required for authentication and usage tracking. |
| Text | The input text containing emojis (and other characters) to be processed. |
| Remove Emojis | Whether to remove emoji characters from the text. |
| Remove Symbols | Whether to remove symbol characters (non-word, non-space characters) from the text. |
| Remove Numbers | Whether to remove numeric characters from the text. |
| Remove Spaces | Whether to remove all space characters from the text. |
| Remove Punctuation | Whether to remove punctuation characters (e.g., ., /, !, etc.) from the text. |
| Remove Newlines | Whether to remove newline characters from the text. |
| Remove Extra Spaces | Whether to remove extra spaces and trim the text (collapses multiple spaces into one). |
| Custom Pattern | A custom regular expression pattern to remove from the text (optional). |
| Replacement | Text to replace the removed characters with; if empty, removed characters are deleted entirely. |
Output
The output JSON object contains the following fields:
originalText: The original input text before processing.processedText: The resulting text after removals and replacements have been applied.removedEmojis: Boolean indicating if emojis were removed.removedSymbols: Boolean indicating if symbols were removed.removedNumbers: Boolean indicating if numbers were removed.removedSpaces: Boolean indicating if spaces were removed.removedPunctuation: Boolean indicating if punctuation was removed.removedNewlines: Boolean indicating if newlines were removed.removedExtraSpaces: Boolean indicating if extra spaces were removed and text trimmed.customPattern: The custom regex pattern used for removal, or null if none.replacement: The replacement text used for removed characters (empty if characters were deleted).
Example output JSON:
{
"originalText": "Hello 👋 world! 123",
"processedText": "Hello world ",
"removedEmojis": true,
"removedSymbols": false,
"removedNumbers": true,
"removedSpaces": false,
"removedPunctuation": true,
"removedNewlines": false,
"removedExtraSpaces": true,
"customPattern": null,
"replacement": ""
}
Dependencies
- Requires an API token ("CJ Token") from sifuim.com for authentication and usage tracking.
- The node internally calls validation and credit deduction functions using this token.
- No additional external services or environment variables are explicitly required beyond the API token.
Troubleshooting
- Invalid or missing API token: The node validates the provided token and may throw errors if it is invalid or missing. Ensure you enter a valid token from sifuim.com.
- Unsupported operation or resource: If an unknown operation or resource is selected, the node throws an error indicating the operation/resource is not implemented or known.
- Regex pattern errors: Providing an invalid custom regex pattern may cause runtime errors. Validate your regex syntax before use.
- Empty input text: Processing empty or null text will simply return empty processed text without errors.
- Credit deduction failures: The node attempts to deduct credits after each operation; failure in this step is caught silently but may affect usage limits.
Links and References
- Unicode Emoji Ranges — Reference for emoji Unicode ranges used in removal.
- JavaScript RegExp Documentation — For crafting custom regex patterns.
- sifuim.com — Service providing the API token and related functionality used by this node.