Actions132
- AI Actions
- Extract Text From Document
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Extract Entities
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate JavaScript Code
- Generate Python Code
- Detect Language
- Detect Mood
- Extract Text From PDF
- Recognize Objects in Image
- Extract Text From Image
- Redact Sensitive Information From PDF
- Remove Background Image
- Summarize Text
- Transcribe
- Translate Text
- Image Actions
- Business Actions
- Convert Actions
- Generate Actions
- Crypto Actions
- Operator Actions
- Storage Actions
- Scheduler Actions
- Text Actions
- Chart Actions
- Code Actions
- Calculate Actions
- Date and Time Actions
- PDF Actions
- Compress PDF File
- Count PDF Pages
- Create Empty PDF
- Decrypt PDF
- Convert DOCX to PDF
- Draw Image on PDF
- Draw Text on PDF
- Encrypt PDF
- Convert HTML to PDF
- Convert Markdown to PDF
- Manage PDF Metadata
- Merge PDF Files
- Add PDF Pages
- Remove PDF Pages
- Resize PDF Pages
- Rotate PDF Pages
- Convert PDF to Base64
- Convert PDF to Image
- Split PDF File
- Add Image Watermark to PDF
- Add Text Watermark to PDF
- Shortened URL Actions
AI → Extract Customizable Information From Text
AI-generatedOverview
This node provides a utility to extract customizable information from a given text using artificial intelligence. It allows users to specify a context prompt and define multiple fields with descriptions and validation rules to guide the extraction process. This is useful in scenarios where structured data needs to be pulled out from unstructured text, such as extracting contact details, product specifications, or any custom data points from documents, emails, or messages.
Practical examples:
- Extracting names, dates, and amounts from invoices or receipts.
- Pulling out key information like names, addresses, and phone numbers from customer feedback or support tickets.
- Parsing technical specifications or parameters from product descriptions.
Properties
| Name | Meaning |
|---|---|
| Text | The input text in which the node will search for the specified information. |
| Context | A prompt providing additional context or instructions to help the AI understand what kind of information to extract from the text. |
| Fields | An array of objects defining the fields to extract. Each object includes: - Name: The key or label for the field. - Description: A prompt describing what information the field should contain. - Validation Regex: A regular expression to validate the extracted value for that field. |
Output
The node outputs JSON data containing the extracted fields as key-value pairs based on the user-defined field names. Each field's value corresponds to the information found in the input text matching the description and passing the optional validation regex.
If binary data output is supported (not indicated here), it would typically represent files or images related to the extraction, but this node focuses on textual data extraction only.
Dependencies
- Requires an API key credential for authentication with the external AI service at
https://prod.0codekit.com. - The node sends a POST request to the
/ai/extract-from-textendpoint with the input text, context, and fields configuration. - Proper network access and valid credentials are necessary for successful operation.
Troubleshooting
- Empty or incorrect extraction results: Ensure the "Context" property clearly describes the type of information to extract. Also, verify that the "Fields" definitions are accurate and that the validation regex patterns match expected formats.
- API authentication errors: Confirm that the API key credential is correctly configured and has the required permissions.
- Malformed input errors: Check that the input text and fields array are properly formatted and not empty.
- Timeouts or connectivity issues: Verify network connectivity to the external API endpoint.
Links and References
- 0CodeKit API Documentation (for detailed API usage and authentication)
- Regular Expression Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions