Sifuim icon

Sifuim

Custom operations

Overview

This custom node provides multiple text processing operations, including one called Auto Adjust Phone Number. The Auto Adjust Phone Number operation scans a given text for phone numbers and adjusts their format according to a specified country calling code. This is useful when you want to standardize phone numbers in text data, ensuring they all include the correct international dialing prefix.

Practical examples:

  • Cleaning up user-submitted contact information by converting local phone numbers into international format.
  • Preparing phone number lists for SMS marketing campaigns where consistent formatting is required.
  • Normalizing phone numbers extracted from documents or messages before further processing.

Properties

Name Meaning
CJ Token Your API token from sifuim.com used for authenticating requests to the service.
Text The input text containing phone numbers that need to be adjusted.
Country Code The country calling code to apply (e.g., "60" for Malaysia, "1" for USA).

Output

The output JSON object contains the following fields:

  • originalText: The original input text as provided.
  • processedText: The text after phone numbers have been adjusted to include the specified country code.
  • adjustedNumbers: An array or list of the phone numbers that were found and adjusted.
  • countryCode: The country calling code used for adjustment.

This output allows downstream nodes or workflows to access both the transformed text and details about which phone numbers were modified.

Dependencies

  • Requires an API token ("CJ Token") from sifuim.com to authenticate and validate usage.
  • The node internally calls helper functions from bundled modules to perform phone number adjustments.
  • No additional external services are explicitly mentioned beyond the API token requirement.

Troubleshooting

  • Invalid or missing CJ Token: The node requires a valid API token. If omitted or incorrect, validation will fail, causing errors.
  • No phone numbers detected: If the input text does not contain recognizable phone numbers, the processed text may remain unchanged and the adjustedNumbers list could be empty.
  • Unsupported country codes: Using an invalid or unsupported country code might result in improper formatting or no changes.
  • API credit deduction failure: The node attempts to deduct credits on each execution; if this fails, it catches the error silently but repeated failures might indicate issues with the API account.

Common error message example:

  • "The operation "autoAdjustPhoneNumber" is not implemented yet!" — indicates a misconfiguration or typo in the operation name.
  • "The resource "custom" is not known!" — indicates an invalid resource selection.

To resolve these, ensure the correct resource and operation names are selected and the API token is valid.

Links and References

Discussion