0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

AI → Extract Customizable Information From Text

AI-generated

Overview

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-text endpoint 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

Discussion