Actions8
Overview
This custom node provides a set of text processing and utility operations under a single "Custom" resource. The "Extract Info" operation specifically parses input text containing colon-separated key-value pairs and extracts this structured information into JSON format.
Typical use cases include:
- Parsing user-submitted forms or messages where data is provided as lines like
key : value. - Extracting contact details, configuration parameters, or any structured info embedded in plain text.
- Automating data extraction from logs, emails, or notes formatted with simple key-value pairs.
For example, given the input text:
name : John Doe
email : john@example.com
phone : +60123456789
the node will output a JSON object with keys name, email, and phone mapped to their respective values.
Properties
| Name | Meaning |
|---|---|
| CJ Token | Your API token from sifuim.com. This is required for authenticating requests to the service. |
| Text | Text containing information in "parameter : value" format. Multiple lines can be provided. |
Output
The output JSON contains the following fields:
originalText: The original input text string.extractedInfo: An object where each key corresponds to a parameter extracted from the input text, and its value is the associated value.totalExtracted: The total number of key-value pairs extracted.
Example output JSON:
{
"originalText": "name : John Doe\nemail : john@example.com\nphone : +60123456789",
"extractedInfo": {
"name": "John Doe",
"email": "john@example.com",
"phone": "+60123456789"
},
"totalExtracted": 3
}
No binary data output is produced by this operation.
Dependencies
- Requires a valid API token credential from sifuim.com to authenticate and authorize usage.
- The node internally calls a validation function to verify the API token before processing.
- Usage of the node may deduct credits from the user's account on the external service.
Troubleshooting
- Invalid or missing API token: The node requires a valid API token. Ensure you provide your token correctly in the "CJ Token" property.
- Malformed input text: The text must contain colon-separated key-value pairs. Lines not matching this pattern may be ignored or cause incomplete extraction.
- Credit deduction failure: If credit deduction fails silently, it might indicate network issues or invalid tokens. Check connectivity and token validity.
- Unhandled operation error: If an unsupported operation is selected, the node throws an error indicating the operation is not implemented.
To resolve errors:
- Verify the API token is correct and active.
- Format the input text properly with one key-value pair per line separated by a colon.
- Use the "Continue On Fail" option if you want the workflow to proceed despite individual item errors.
Links and References
- sifuim.com — Official site for obtaining API tokens and documentation (assumed based on token description).
- n8n Documentation on Creating Custom Nodes for further customization guidance.