Hub
Pricing About
WorkflowWorkflow

Data Manipulation with Expressions and AI assistant

Release 5.3ExpressionData Manipulation
knime profile image
Versionv1.0 KNIME AP 5.3 ReleaseLatest, created on 
Jul 10, 2024 10:58 AM
Drag & drop
Like
Download workflow
Workflow preview

This workflow aims to demonstrate the use of the Expressions node for data manipulation, including string and integer operations, and to highlight the power of combining AI techniques.

You can download and run the workflow directly in your KNIME Analytics Platform. We recommend using the latest KNIME AP version for optimal performance.

We are using a fake dataset to show e-commerce performance metrics.

Workflow Details:

Below is how we have used the Expression node within the workflow.

  1. Age Bucket Creation

    • First, we create an age bucket using an IF condition, following the example provided by the node IF expression.

  2. Expression Node and K-AI Assistant

    • We use the Expressions node with K-AI (KNIME Assistant) to generate regex patterns for extracting data. Remember to install the AI assistant extension to use this feature. We provide the assistant with two different prompts to achieve the desired results:

    • Prompt Product ID:

      "Generate a regular expression to extract the Product ID from the URL column.

      Example:

      • URL: https://www.fakeecommerce.com/electronics/fire/9b39b2b4-b6a6-418e-a994-8b1c0aad8a54?source=Google

      • Product ID pattern: b39b2b4-b6a6-418e-a994-8b1c0aad8a54"

    • Prompt Product Category:

      "Generate a regular expression to extract the Product category from the URL column.

      The product category is always the first element of the URL pathname."

  3. Data Transformation

    • Perform a join operation and apply title case formatting to the Product Category and Age Bucket columns.

  4. Revenue Calculations

    • Perform mathematical operations to calculate the percentage of revenues.

Finally, with the Table View node, it is possible to visualize the final data.

External resources

  • Extension: KNIME AI Assistant
Loading deploymentsLoading ad hoc jobs

Used extensions & nodes

Created with KNIME Analytics Platform version 5.3.0
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.3.0

    knime profile image
    knime
  • Go to item
    KNIME ExpressionsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.3.0

    knime profile image
    knime
  • Go to item
    KNIME ViewsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.3.0

    knime profile image
    knime

Legal

By using or downloading the workflow, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits