<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Patrícia Bacelar on Medium]]></title>
        <description><![CDATA[Stories by Patrícia Bacelar on Medium]]></description>
        <link>https://medium.com/@patriciabacelar?source=rss-70f68984b2dc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kHphqlu513OLFpiMmlIzOg.jpeg</url>
            <title>Stories by Patrícia Bacelar on Medium</title>
            <link>https://medium.com/@patriciabacelar?source=rss-70f68984b2dc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 06:35:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@patriciabacelar/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Time Travel with AI Image Generation in KNIME]]></title>
            <link>https://medium.com/low-code-for-advanced-data-science/how-to-time-travel-with-ai-image-generation-in-knime-52bcfcead0dd?source=rss-70f68984b2dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/52bcfcead0dd</guid>
            <category><![CDATA[knime]]></category>
            <category><![CDATA[image-editing]]></category>
            <category><![CDATA[ai-image-generator]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[getting-started]]></category>
            <dc:creator><![CDATA[Patrícia Bacelar]]></dc:creator>
            <pubDate>Fri, 29 Aug 2025 08:06:10 GMT</pubDate>
            <atom:updated>2025-08-29T08:06:10.108Z</atom:updated>
            <content:encoded><![CDATA[<h4>GETTING STARTED | IMAGE GENERATION &amp; AI | KNIME ANALYTICS PLATFORM</h4><h4>Learn about image generation in KNIME and reimagine your workflows in Ancient Egypt or the Renaissance with the OpenAI Image Generator node</h4><p><em>Co-author: </em><a href="https://www.linkedin.com/in/rosaria"><em>Rosaria Silipo</em></a></p><p>How hard must it have been to perform even the simplest daily task centuries ago, when we had no technology to make our lives easier? Like for example creating a KNIME workflow in the Stone Age when all you had was rocks and determination, and what about during the Italian Renaissance, or in Ancient Egypt?</p><p>We asked the open-source <a href="https://www.knime.com/downloads?utm_source=medium&amp;utm_medium=organic&amp;utm_term=article&amp;utm_content=blog&amp;utm_campaign=com_journal">KNIME Analytics Platform</a> to show us. In this article, we want to explain how you can generate images like these yourself, from text, with KNIME’s Image Generator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*du5M4NCUob_7pqhNaDmJ4g.png" /><figcaption>Figure 1: Time-traveling KNIME workflows — illustrated across historical eras.</figcaption></figure><h3>What is the OpenAI Image Generator in KNIME?</h3><p>KNIME’s <a href="https://hub.knime.com/n/d2GNiITsuuKYfZ9d">OpenAI Image Generator</a> node enables you to connect directly to OpenAI’s GPT Image 1 or DALL·E 3 models. While both are capable of generating high-quality images from prompts, GPT Image 1 goes one step further by supporting image editing, offering more flexibility and customization.</p><h4>How is the Image Generator node used?</h4><p>The Image Generator node receives two inputs:</p><ul><li>a prompt</li><li>a PNG image to edit.</li></ul><p>This node works in two modes; you can use it to generate and edit images.</p><ul><li><strong>Image generation</strong>. To generate an image, you provide a prompt and select the AI model you want to use.</li><li><strong>Image editing</strong>. To edit an image, provide an input table that contains image-type columns with the images to edit. You can include multiple image-type columns in the input table and use one column for the image to edit and one column for the background.</li></ul><blockquote><strong>Note.</strong> The node currently supports only <strong>PNG images</strong> for both input and output.</blockquote><p>We experimented using a screenshot of a classic KNIME workflow and asked the model to incorporate it into a stylized historical scene. The results were surprisingly detailed and imaginative. A vivid, AI-generated scene where your workflow is reimagined in a completely different historical era — whether it’s being chiseled into stone in the Stone Age, painted in a Renaissance studio, or inscribed on a temple wall in Ancient Egypt.</p><p>Please note that this application uses the OpenAI API to generate images. To use it, you must configure your own <a href="https://platform.openai.com/settings/organization/general">OpenAI API key</a>. High-quality image generation is <strong>significantly more expensive</strong> than text generation.</p><ul><li>Use the <strong>low quality</strong> configuration setting, while exploring or testing</li><li>Switch to the <strong>high quality</strong> configuration setting, only for the final image</li><li>See the <a href="https://platform.openai.com/docs/guides/images-vision#calculating-costs">OpenAI documentation</a> for details on cost calculation.</li></ul><p>Now see how we built an image generator data app with KNIME.</p><h3>An image generator: The “Time Travel Workflow Illustrator” data app</h3><p>This “Time Travel Workflow Illustrator” designed to reimagine a workflow in a completely different era. With the data app, the end user can:</p><ol><li>Define the scene settings via an input form</li><li>Get a preview of the AI-generated image</li></ol><p>The <strong>input form</strong> collects the following information to generate a custom visual scene:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*0mfhv4pHhyU90wle9SJ2vA.png" /></figure><p>After configuring the scene, the user clicks “Next” in the low right corner to generate the illustration. The <strong>final screen</strong> shows the AI-generated image based on the workflow screenshot and the input settings — along with a button to download it as a .png file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BKCf9gYaDpsaNLSVPxD5Fg.png" /><figcaption>Figure 2: KNIME Data App “<a href="https://hub.knime.com/s/ITo0UVPLb4QxYhUn">Time Travel Workflow Illustrator</a>” — user input form (A) and resulting AI-generated scene (B).</figcaption></figure><p>👉 <a href="https://hub.knime.com/s/ITo0UVPLb4QxYhUn">Download the workflow from the KNIME Hub and try it!</a></p><h3>How to build the Time Travel Workflow Illustrator</h3><p>Behind the scenes, the app is powered by a KNIME workflow that orchestrates everything — from user input to image generation. The workflow is structured into clean, visual blocks, making it easy to customize it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DswTee2rzPF8ui1iFe0SxQ.png" /><figcaption>Figure 3: The workflow “Time Travel Workflow Illustrator” is divided into three parts: collecting the user’s input, generating the prompt, and rendering the final image with AI.</figcaption></figure><h4>Build a repeatable workflow using components</h4><p>To provide a more structured and repeatable experience, we embedded the OpenAI Image Generator node within a KNIME workflow using three distinct components: two for UI and one for AI.</p><p>Each component handles a key stage of the process:</p><h4>Component #1. Scene Setup Form</h4><p>This component presents a simple web-based input form where users define the time period, visual style, character, age group, emotion, and location of the scene. Alternatively, activating “Surprise Mode” randomizes all parameters for a fun twist.</p><p>The web page is generated by the composite view of the component “Input” and the fields of the form are generated via Widget nodes inside the component.</p><h4>Component #2. Prompt Generation</h4><p>The component “Prompt to AI” receives the user settings and the workflow screenshot (a PNG file), encapsulates them in a text prompt, and sends both the prompt and the screenshot to the OpenAI Image Generator node to produce the final visuals.</p><p>There are essentially two ways to create the prompt from the user settings:</p><ul><li>Add those settings to defined fields into a fixed default prompt text</li><li>Prompt an LLM to generate the most appropriate prompt based on those settings.</li></ul><p>We went for this second option. Within the “Prompt to AI” component, the text prompt for the OpenAI Image Generator node is produced by an LLM Prompter node.</p><blockquote><strong>Note</strong>. To connect to the OpenAI API, we used the Credential Configuration node. This works locally, but the API key resets each time the workflow reopens, unless “Store password in configuration (weakly encrypted)” is enabled.</blockquote><p>For team environments, you can store keys more securely in the Secret Store of the KNIME Hub. This stores the credentials in a central place, without the need of modifying the workflow when the API key changes (see blog post, <a href="https://www.knime.com/blog/build-an-ai-party-card-generator">Build an AI Party Card Generator</a>, for more details).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UoQ8fHPSWt8N5UNc2YHKUg.png" /><figcaption>Figure 4: The “Prompt to AI” component — the user’s input settings are transformed into a text prompt, combined with a workflow image, and sent to the OpenAI Image Generator.</figcaption></figure><h4>Component #3. AI-Generated Scene</h4><p>The last component named “Output” displays the AI-generated image based on the prompt and workflow screenshot. It includes a download button for exporting the result as a <strong>.png</strong> file. The image was displayed using a Table View node and the Download button was created using a “File Download Widget” node.</p><blockquote>The full workflow <a href="https://hub.knime.com/s/ITo0UVPLb4QxYhUn">Time Travel Workflow Illustrator</a> is available for download and customization on the <a href="https://hub.knime.com/">KNIME Community Hub</a>.</blockquote><h3>See KNIME workflows through the ages with the Image Generator node</h3><p>All the images presented in this article were generated using the same KNIME workflow screenshot and a consistent structure for the first prompt. The only variation is the parameters selected by the user — such as time period, visual style, emotion, and character — and entered through the input form.</p><p>This setup shows how the OpenAI Image Generator node can produce richly diverse illustrations with just a few changes in user-defined inputs.</p><p>This is the fixed prompt built using the Expression node and sent to the LLM Prompter node to generate another prompt for image generation.</p><h4>The prompt used to set the scene:</h4><pre>You are an imaginative scene descriptor. Prepare a description of a scene for an image generator.<br>The scene revolves around the image of a KNIME workflow, a technical structure with visible node labels. Keep its layout recognizable while transforming the scene.<br>Based on the fields below, generate a vivid scene that reimagines this workflow as if it belongs to a different time period and artistic style.<br>Some fields may be empty - be creative when that happens.<br>Here are additional instructions:<br>- Visual style: [style]<br>- Historical time period: [time_period]<br>- Character: [character]<br>- Age group: [age]<br>- Emotion: [emotion]<br>- Location: [location]<br>The character should interact with the workflow in a way that fits the time period - for example, chiseling it into stone, painting it on parchment, or assembling it with gears. Be creative and choose an action that feels natural in the scene.<br>Don&#39;t include dialogue, text, or panels - just describe the scene vividly and creatively.</pre><p>The result of the LLM Prompter is a more articulated prompt, with many more details about the scene to recreate in the image.</p><p>Using the same workflow screenshot and adapting the prompt to the different user-based parameters, we obtained very different images. Some we showed in figure 1 and some more are shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tp9XIi80xN4MwcQZXKqkaQ.png" /><figcaption>Figure 5: The idea of a workflow? Sketch-style scene of a calm adult philosopher analyzing a KNIME workflow in the agora of Classical Greece.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zpb5Q_IHL9VnV0_bdjxQtQ.png" /><figcaption>Figure 6: The steam workflow. Comic-style scene of a calm engineer assembling a KNIME workflow inside a steam-powered lab during the Industrial Revolution.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JU-9pZQPxRt9xuqK_Zgmig.png" /><figcaption>Figure 7: Let’s write this declaration of independence. Watercolor scene of a confused young scholar studying a KNIME workflow by candlelight in colonial America.</figcaption></figure><p>Generating scenes like this is really that easy with the OpenAI Image Generator node in KNIME. And no, KNIME isn’t that old. But judging by these results, building workflows in the Stone Age or during the Renaissance might have required some extra skills — like stone carving or tapestry embroidery.</p><h3>Who said workflows can’t time travel?</h3><p>From cave walls to futuristic labs, the Time Travel Workflow Illustrator shows that even a technical process like building a KNIME workflow can become a creative visual story. With just a simple prompt, a workflow screenshot, and a few user-defined parameters, the OpenAI Image Generator brings workflows to life in ways we didn’t think possible — and definitely never imagined embroidered onto a Renaissance tapestry or carved into stone.</p><p>Want to know how your own workflow would look in Ancient Egypt? Or on a scroll in Classical Greece? Give it a try — time travel is just a few clicks away.</p><p>— — — — -</p><p>As previously published on the KNIME Blog: <a href="https://www.knime.com/blog/ai-image-generation-with-knime">https://www.knime.com/blog/ai-image-generation-with-knime</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52bcfcead0dd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/low-code-for-advanced-data-science/how-to-time-travel-with-ai-image-generation-in-knime-52bcfcead0dd">How to Time Travel with AI Image Generation in KNIME</a> was originally published in <a href="https://medium.com/low-code-for-advanced-data-science">Low Code for Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build an AI Agent in 4 Steps]]></title>
            <link>https://medium.com/low-code-for-advanced-data-science/build-an-ai-agent-in-4-steps-125d2f3a3e35?source=rss-70f68984b2dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/125d2f3a3e35</guid>
            <category><![CDATA[getting-started]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[tools]]></category>
            <category><![CDATA[knime]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Patrícia Bacelar]]></dc:creator>
            <pubDate>Mon, 25 Aug 2025 08:52:51 GMT</pubDate>
            <atom:updated>2025-08-25T08:52:51.124Z</atom:updated>
            <content:encoded><![CDATA[<h4>GETTING STARTED | AGENTIC AI | KNIME ANALYTICS PLATFORM</h4><h4>Define the task, populate the tool repository, build the agent workflow and feed it with a task</h4><p><em>Co-author: </em><a href="https://www.linkedin.com/in/rosaria"><em>Rosaria Silipo</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*p44QLhKOPXMYkcdj" /><figcaption>Photo by <a href="https://unsplash.com/@lindsayhenwood?utm_source=medium&amp;utm_medium=referral">Lindsay Henwood</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Since the introduction of AI in data science, we find ourselves dealing with more and more AI within our workflows. From <a href="https://medium.com/low-code-for-advanced-data-science/8-best-practices-to-effective-prompt-engineering-d5b76f6692be">prompting LLMs</a>, possibly with the help of a RAG procedure, to developing AI agents, we can build a wide range of various AI-powered applications. Based on their AI content and on their level of autonomy, we can even establish an application hierarchy.</p><p>In this article we want to show how you can build agentic systems in KNIME by following a four-step process.</p><h3>The agentic landscape</h3><p>The article <a href="https://www.knime.com/blog/agentic-ai-and-knime?utm_source=medium&amp;utm_medium=organic&amp;utm_term=article&amp;utm_content=blog&amp;utm_campaign=com_journal">Agentic AI and KNIME</a> explores the agentic landscape, by listing four types of building blocks: Tools, Intelligent Tools, AI workflows, and Agents. Here’s a recap:</p><ul><li><strong>Tools </strong>perform specific tasks. If you are a KNIME user, any workflow you have developed so far could become a tool. Notice that a tool must be callable from other applications, as a web service or as a web application.</li><li><strong>Intelligent tools</strong> are like tools, but include some AI-based tasks, like summarization, translation, or text generation. They are AI-powered but not capable yet of much autonomy.</li><li><strong>AI workflows</strong> combine multiple tools in sequence to accomplish more complex tasks. Let’s suppose that our solution includes tasks A, B, C, and D. Tasks A, B, C, and D could be tools called by a manually implemented top application, like a KNIME workflow. This top application is an AI workflow. An AI workflow can, in turn, become a tool itself.</li><li><strong>AI agents</strong> go one step further and dynamically decide themselves which tools to use. While in AI workflows, the sequence of tools is manually assembled by an operator, in AI agents the tool orchestration is assembled by an AI-powered application, based on the tool descriptions. This places agents at the top of the hierarchy in the agentic landscape. Again, agents can become tools themselves to serve other agentic applications or services</li></ul><p>Turning a KNIME workflow into a tool is easy. We have done it multiple times when we were <a href="https://www.knime.com/blog/call-workflow-service-REST">deploying web services</a>. But how hard is it to create a truly agentic system?</p><p>You would be surprised at how simple this is. KNIME lets you construct AI agents in a modular way thanks to its visual workflows. KNIME’s visual workflows replace traditional code with a drag and drop interface. Each step in the process is represented by a so-called node, making it easier to track data flow, identify issues, and explain logic clearly.</p><p>Visual workflows also make it easier to assemble agentic applications and services. It can be summarized in four steps.</p><ul><li><strong>Step 1. Define the task.</strong> This means: define the input data and the desired output. Possibly also define some intermediate steps, like a human in the loop approval framework, a file reading block, a sentiment extractor, a language detector, or some other step you deem necessary. If this is the first agent in your Agentic AI landscape, it might be worth it to build the KNIME workflow that solves the task. This gives you clarity of what is needed and creates the workflow segments from which to generate the tools, if needed.</li><li><strong>Step 2. Populate the tool repository.</strong> The Tool Repository is a folder containing a bunch of tools, hopefully also including the tools your agent needs. Notice that while some tools might already be available in the “Tools” folder, some required by the agent might be missing. Proceed with a quick inspection and build the tools required and still missing.</li><li><strong>Step 3. Build the AI agent framework</strong>, by organizing the tool orchestration with AI. Use this AI Agent framework to test the new tools by calling them one at a time.</li><li><strong>Step 4. Feed the AI agent with the complete task.</strong> Now it is the moment to feed the AI Agent with the real more complex task. This requires a more complex prompt and an exhaustive set of tools.</li></ul><p>Shall we try it?</p><blockquote><strong>Note.</strong> You can find all the workflows and tools described in this article available to download in the <a href="https://hub.knime.com/rs1/spaces/4%20steps%20to%20AI%20Agents/~bNRNv_woOXGc79Es/">4 Steps to AI Agents</a> space on KNIME Community Hub. Remember that AI keys are not provided with the workflow (you’ll need to use your own AI keys).</blockquote><h3>Step 1. Define the task</h3><p>Let’s take a classic customer retention task: isolate unsatisfied customers for some follow up marketing actions. Specifically, we want to isolate all customers with negative reviews and send them a free gift to appease them. The solution could be modularized as follows.</p><p><strong>Task A — Collect Data.</strong> Collect the customers’ data from the CRM system and the customers’ reviews from various social media channels. This is a classic ETL task. Read the data from different data sources, clean them and load them for further processing.</p><p><strong>Task B — Extract Sentiment.</strong> Perform a sentiment analysis on the customers’ review texts. This is by now a simple task, if performed with the help of AI.</p><p><strong>Task C — Isolate Unsatisfied Customers.</strong> Extract customers with negative sentiment. This could easily be performed with a Row Filter node. It could also be assimilated into task B with a more effective prompt.</p><p><strong>Task D — Select a custom gift.</strong> From the results of a classic recommendation engine, here we select the most appropriate gift to send to each unsatisfied customer.</p><p><strong>Task E — Detect Language. </strong>Before preparing the apology text, we must detect the language used by the customer for the feedback. Again, this is another task that has become nowadays easier to implement with the help of AI.</p><p><strong>Task F — Send a gift package.</strong> Send the gift package together with a nice apology message. This could be split in two subtasks:</p><ul><li><strong>Task F1:</strong> Generate the apology email text in the customer’s selected language, using AI</li><li><strong>Task F2:</strong> Preview and send the email together with the gift package. This is a human in the loop step, since it allows the human to check and approve the text before pressing “Send”.</li></ul><blockquote><strong>Note.</strong> This is an overdefined list of tasks. AI Agents by now are able to generate this list of tasks internally, when implementing the required top task. However, for the sake of clarity, we listed here all of the tasks for a customer retention application. We can later compare with what the AI Agent implements and marvel at its complexity.</blockquote><p>If we were to build the corresponding KNIME workflow, including segments for all above mentioned tasks, we would obtain the workflow shown in Fig. 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*F5eMaR-gf1QHCYQU.png" /><figcaption>Figure 1. The “Customer Retention” workflow, with its subtasks A, B, C, D, E, F1, and F2.</figcaption></figure><blockquote><strong>Tip.</strong> Take the time here to define logical blocks in your application. It will turn out to be useful when building the tools.</blockquote><h3>Step 2. Populate the tool repository</h3><p>The Tool Repository is a folder containing a bunch of tools, including the tools your agent needs.</p><p>In our case, we used a folder located within the same folder as the agent workflow, readable with the following path “../Tools” relative to the current AI Agent workflow’s folder. However, if you are working in a larger company structure, it would be preferable to use a more centralized location, accessible by multiple members of the team, like for example a folder on a <a href="https://www.knime.com/knime-hub">KNIME Hub</a>.</p><p>If some tools are missing, you will need to build them. To build a tool, you just need to create or isolate workflow segments and transform them into tools. To transform a workflow segment into its own workflow, we can manually copy and paste the workflow segment into a new empty workflow canvas or we can use <a href="https://youtu.be/Xj8UGfk68-M?si=tRlmnALI7gKEr3AM">Integrated Deployment</a> to avoid copy and paste mistakes.</p><p>To make a tool available to other services, we need to deploy the workflow segment into a service or a data app. To deploy a workflow on a Hub, just move it to the selected Hub.</p><p>First upload the workflow on the KNIME Hub. Here’s how:</p><ul><li>Right-click the workflow in the “Space Explorer” tab on the left</li><li>Select “Upload”</li><li>Select Hub and connect with your credentials</li><li>Select space and folder in Hub and press the “Choose” button</li></ul><p>Next, you need to deploy it as a service.</p><ul><li>First, version the workflow,</li><li>Then click the “Deploy” button and select “Service”.</li></ul><p>The workflow is now saved as a web service, accessible via the REST protocol, on the selected location on the selected Hub account</p><p>To create a complete service, i.e. a service that can also accept input data and produce output data, all you need to do is substitute the input node of the workflow with a <a href="https://hub.knime.com/n/SjCp1LKYnOOV8KMB">Workflow Input</a> and append a <a href="https://hub.knime.com/n/9xSDVHDks-V8M3VU">Workflow Output</a> node to the end of the tool, to import or export data respectively.</p><blockquote><strong>Tip:</strong> The Workflow Input node has a field “Description” in its configuration window. The text in this field provides a description of the expected input data that the tool will use. Make sure to add a meaningful description here, before deploying the tool.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L41kS6od9L0UcGF8.png" /><figcaption>Figure 2. Creating a tool using the Workflow Input and Workflow Output nodes to import and export data.</figcaption></figure><p>Following this procedure, we built the services for a number of tasks in our application, including tasks with AI prompting, which — we will see later — are of no use.</p><p>If you are entering a pre-existing agentic system, it is possible that some tools will already be available in the tool repository. Obviously, for the principle of saving time and work, we will adapt our application to reuse available tools as much as possible.</p><blockquote><strong>Tip.</strong> If there is an agentic strategy in place at your company, sooner or later you will have a large repository of tools. In this case, it is highly likely that a similar tool has already been deployed. Always check first!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iS9H0DXHsqE4yY7i.png" /><figcaption>Figure 3. The Tools Repository.</figcaption></figure><h3>Step 3. Build the AI agent framework and test the tools</h3><p>We have all the tools we need; the next step is to call them. At the moment we do not have a node that specifically calls services containing Workflow Input, Workflow Output or Configuration nodes. Such services — tools — are currently only callable from an <a href="https://hub.knime.com/n/B1-P6E7IR-QGPIli">Agent Prompter</a> node.</p><p>The Agent Prompter node is the heart of any AI agent. This node:</p><ol><li>Connects to an LLM agent</li><li>Imports the set of tools provided at the input port</li><li>Reads the data on which to operate</li><li>Imports previous conversations for context</li><li>Sends user-defined prompts to the selected LLM</li><li>Calls selected tools based on prompts</li><li>Produces the conversation history and the output data at the output ports</li></ol><h4>1. Connect to an LLM agent</h4><p>This connection comes through the first input port (light gray squared) and it is established using the sequence of nodes Credentials Configuration, Authenticator, and LLM Selector for the AI provider of choice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*h23E9lNYZzoHHQ0h.png" /><figcaption>Figure 4. Authenticate and Connect to the AI provider of choice, in this case OpenAI.</figcaption></figure><h4>2. Import set of tools</h4><p>The second input port of the Agent Prompter node collects the tools. The Workflow to Tool node extracts the tool description, the number of parameters, and the number of input and output tables (and their descriptions) contained in the tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XKVYyGUy21SNaBXy.png" /><figcaption>Figure 5. Extract the list of tools from the tool repository.</figcaption></figure><p>During the previous step, we have collected our tools in the “Tools” repository and all tools have been assigned an exhaustive description of the task they implement. Now we extract all tool descriptions, feed them into the LLM, and ask the LLM to call them in an appropriate sequence to perform a given task.</p><h4>3. Read dataset</h4><p>By default the node is created with the two ports above only, i.e. the necessary ports. However, it is possible to add ports for data tables and conversation ports in input and output. We added one input port for the review and user data. Input data are optional, since not all agents work on input data.</p><h4>4. Import conversation table</h4><p>Same for the conversation ports. If there are previous conversations that can help the LLM understand the context and make better decisions, they should be provided as input to the Agent Prompter node. Again, conversation history is optional, since not all agents require it or it is not always available.</p><h4>5. Define prompts</h4><p>Prompts are of course the most important part of shaping an AI Agent. The Agent Prompter node has two fields for prompts in its configuration window: the System Message and the User Message.</p><p>The <strong>System message</strong> provides some general rules for the Agent. We used the following prompt:</p><blockquote>“If you are not sure about file content or codebase structure pertaining to the user’s request, use your tools to read files and gather the relevant information: do NOT guess or make up an answer.”</blockquote><p>The <strong>User message</strong> provides precise instructions about the task that the agent is supposed to implement. Remember that at step 3, we want to test whether our tools are working. Therefore, we provided the following prompt for the agent to call the “Generate Gift” tool. For example:</p><blockquote>“Generate a gift for the input username without checking the review sentiment. Use the tool descriptions provided to choose the most suitable ones. If no tool is appropriate or available, respond with a polite apology. Avoid including any unnecessary details not directly relevant to solving the user’s issue.”</blockquote><h4>6. Call tools</h4><p>During execution, the agent defines the sequence of tools to call, based on their description, and calls them one by one. In this case, the goal is to call and test the “Generate Gift” tool. The default output of the Agent Prompter node is the conversation that happened between the user and the agent, including the sequence of tool calls.</p><p>When checking for tools, please make sure that the input data is what the tool expects. Otherwise the tool execution will obviously fail.</p><h4>7. Export the updated conversation table</h4><p>After execution, we can then inspect the results and especially the conversation. The conversation will tell us the tool path that the AI agent took to reach that result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PJCBf_JjP6QL9y1V.png" /><figcaption>Figure 6. Human-Agent conversation about calling the “Generate Gift” tool.</figcaption></figure><p>Finally, the full AI Framework, assembled to just call one workflow, is shown in figure 7. Based on all tool descriptions, the LLM can identify the most appropriate tool for the task. This works surprisingly well, of course, assuming that all descriptions are correct, exhaustive and meaningful.</p><blockquote><strong>Note.</strong> Notice that we use an Agent Prompter node rather than an LLM Prompter node. This is because the Agent Prompter node can perform more complex tasks than a simple LLM Prompter node, including identifying tools and calling them.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tPdgwmsnRJbjYHX5.png" /><figcaption>Figure 7. The AI Agent Framework centered around the Agent Prompter node.</figcaption></figure><p>However, the prompt used above can only trigger one tool at a time. This works for identifying the next tool in the pipeline but does not really automate the sequence of tool execution.</p><h3>Step 4. Build the agent</h3><p>To create a truly agentic application, we reuse the same AI Agent framework with a more complex prompt asking to implement the customer retention task described at step 1.</p><p>For example:</p><blockquote>“You are a support agent responsible for managing user feedback. Your task is to analyze each message and decide which internal tool(s) to call next based on the available options. If the feedback is negative, respond with a custom gift and a follow-up email in the user’s language. Otherwise, end the workflow. Use the tool descriptions provided to choose the most suitable ones. If no tool is appropriate or available, respond with a polite apology. Avoid including any unnecessary details not directly relevant to solving the user’s issue.”</blockquote><p>And again, you can check the conversation history to see the sequence of tool calls the AI Agent has implemented to reach the results. Comparing the conversation in figure 8 with the conversation in figure 6, you can see that a more complex prompt has generated a more complex sequence of tool calls.</p><blockquote><strong>Note. </strong>We have created tools prompting an AI model for sentiment analysis and language detection. However, even without those tools, the AI Agent would have been able to query its own LLM model to get a result. You can try this by yourself. An AI Agent does not necessarily need all those tools!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8n7GpHkTgrPKPYTv.png" /><figcaption>Figure 8. The conversational exchange between the human and the AI. You can see the tool proposed by AI at each step of the conversation.</figcaption></figure><p>Finally, in the original workflow in step 1, we had a human in the loop kind of action, where the Email Preview component offered the end user the chance to approve or reject the AI created email. We would like to keep this step, since trust in AI might not always be fully there. The component Email preview was then added after the Agent Prompter node, feeding on its output results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*D9IiNkrktpcp5h26.png" /><figcaption>Figure 9. Feed the AI Agent framework with a more complex prompt to allow for AI orchestration of the tools.</figcaption></figure><h3>Do we always need AI agents?</h3><p>Building an AI agent is now easy — but whether it’s more convenient than using an AI workflow depends on the particular case.</p><p>Our recommendations to help you decide:</p><ul><li>If the application is required to run just one time on demand, there’s no need to go through all four steps of building a full AI Agent. In such a case, it’s more efficient to simply recycle the tools that are available within a mix &amp; match AI workflow.</li><li>If the application is part of a more structured environment, within a strategy to build an agentic AI landscape — with shared workflows, and recyclable applications — then it makes sense to build a full AI agent.</li></ul><p>Whatever you decide to build — a one-time usage workflow, a set of more or less intelligent tools, a mix and match AI workflow, or an AI agent — you can easily do that with KNIME Analytics Platform. In case you decide to build an AI Agent just follow these four steps and you will have your more or less complex AI Agent in no time.</p><blockquote><a href="https://www.knime.com/downloads?utm_source=medium&amp;utm_medium=organic&amp;utm_term=article&amp;utm_content=blog&amp;utm_campaign=com_journal">Download KNIME</a> for free and try out the Agentic AI workflows!</blockquote><p>— — — — -</p><p>As previously published on the KNIME Blog: <a href="https://www.knime.com/blog/build-an-ai-agent-in-4-steps">https://www.knime.com/blog/build-an-ai-agent-in-4-steps</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=125d2f3a3e35" width="1" height="1" alt=""><hr><p><a href="https://medium.com/low-code-for-advanced-data-science/build-an-ai-agent-in-4-steps-125d2f3a3e35">Build an AI Agent in 4 Steps</a> was originally published in <a href="https://medium.com/low-code-for-advanced-data-science">Low Code for Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build an AI Party Card Generator]]></title>
            <link>https://medium.com/low-code-for-advanced-data-science/build-an-ai-party-card-generator-08138f7669e9?source=rss-70f68984b2dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/08138f7669e9</guid>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[knime]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[stories]]></category>
            <dc:creator><![CDATA[Patrícia Bacelar]]></dc:creator>
            <pubDate>Mon, 18 Aug 2025 04:47:09 GMT</pubDate>
            <atom:updated>2025-08-18T04:47:09.095Z</atom:updated>
            <content:encoded><![CDATA[<h4>DATA STORIES | GENAI &amp; DATA APP | KNIME ANALYTICS PLATFORM</h4><h4>From user input to shareable results: Learn how to generate personalized cards using GenAI with KNIME with this hands-on data app example</h4><p><em>Co-author: </em><a href="https://www.linkedin.com/in/rosaria"><em>Rosaria Silipo</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dpXfR9oRrX6LCBIM" /><figcaption>Photo by <a href="https://unsplash.com/@mediamodifier?utm_source=medium&amp;utm_medium=referral">Mediamodifier</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a>.</figcaption></figure><p>Need a party card? Have you ever needed to write a card for a special event — a wedding, a birthday, a graduation — and found yourself staring at the blank page? Coming up with something fun, creative, or even just appropriate isn’t always easy. And what if the person you’re writing to deserves a rap instead of a formal message? Or perhaps a short poem, in just the right tone?</p><p>That’s where AI can help — and KNIME, of course.</p><p>In this article, we present the <strong>AI Party Card Generator</strong>, a data app built with KNIME that generates personalized party cards using generative AI. Users simply fill out a form with the details — the style, the language, the type of party, and even a short story — and the data app takes care of the rest. With a touch of AI magic, it produces a custom rap or poem, custom-styled and ready to share.</p><p>Technically, the AI engine is wrapped up within the UI of a data app — a web application with an interactive user interface — so anyone can use it through a browser. The data app is developed using KNIME Analytics Platform, a low code data tool, no coding experience required.</p><p>Curious about what data apps are and how to build and share them? Check out <a href="https://www.knime.com/blog/share-data-apps-knime-team-plan?utm_source=medium&amp;utm_medium=organic&amp;utm_term=Roberto&amp;utm_content=blog&amp;utm_campaign=com_journal">this guide on creating and sharing</a> data apps.</p><p>The Party Card Generator is a fun and practical example of how data apps can combine user input, logic, and AI to deliver real value in creative ways — and how easy it is to bring generative AI into the hands of end users. In the following sections, we will show how to use it to create your own party cards and how easy it is to assemble it using KNIME Analytics Platform.</p><blockquote><em>👉 </em>You can try the AI Party Card Generator yourself — it’s available as a public <em>data app</em> on the <a href="https://www.knime.com/data-app-examples?utm_source=medium&amp;utm_medium=organic&amp;utm_term=Roberto&amp;utm_content=blog&amp;utm_campaign=com_journal">KNIME Community Hub</a>.</blockquote><h3>The “AI Party Card Generator” data app</h3><p>Just in case you want to play with it, let’s first show you how the <strong>AI Party Card Generator</strong> works. You can find this data app among the <a href="https://www.knime.com/data-app-examples">Data App examples on the KNIME Community Hub</a>. Once there, find it and select “View the data app”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b_AGe3Kl_f81HDZcG40TDQ.jpeg" /><figcaption>Figure 1: The AI Party Card Generator on the KNIME Community Hub — ready to generate your next party card!</figcaption></figure><p>From the end-user’s point of view, this data app consists of two simple steps:</p><ol><li>An input form to collect all the settings for the card text (Figure 2A);</li><li>A preview of the generated party card (Figure 2B).</li></ol><p>The input form collects the following information to customize the card appropriately:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*qp5JWn6RTaSAO32MJ9ihng.png" /></figure><p>After filling the settings, click “Next” in the lower right corner of the web page, to generate the text for the card. Then the Card Preview appears. The Card Preview is minimalistic — including a title, a brief description of the data app, and of course, the personalized text generated by AI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y3EbaLqev43jyopDJ5LOGw.png" /><figcaption>Figure 2: Interactive Data App in KNIME — collecting inputs (A) and displaying the AI-generated party card (B).</figcaption></figure><blockquote>If you try out our Party Card Generator, we’d love to see what you create!<em><br>👉</em> Share your card on social media and tag @knime.</blockquote><h3>How to build the workflow behind the data app</h3><p>To bring the <strong>AI Party Card Generator</strong> to life, we created a data app in KNIME to guide the user through a simple, interactive form and to deliver a fun, personalized party card <em>— </em>either as a <strong>rap </strong>or a <strong>poem </strong><em>— </em>using generative AI.</p><p>We structured the KNIME workflow into three main sections (as you can see in Figure 3):</p><ol><li>User Input Form (Figure 2A);</li><li>Prompting the LLM to generate the text;</li><li>Final Card Rendering (Figure 2B).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZaD_wu-ug1QeHuAdyEpjNw.png" /><figcaption>Figure 3: The workflow is structured in three parts: user input, prompting AI, and final card rendering.</figcaption></figure><h3>Build a form for user input</h3><p>To build the input form shown in Figure 2A, we relied on several Widget nodes inside a KNIME Component. Widget nodes are used to collect user input in a data app. KNIME offers many types of widgets — for example, for input strings, numbers, dates, binary choices, or to select a value from a predefined list. We used two types of Widget nodes:</p><ul><li>Single Selection Widget nodes for dropdowns and radio buttons (horizontal) like “Language”, “Style”, “Type of Party”, and “Text Style”</li><li>String Widget nodes for free text fields like “Name(s)”, “City”, and “Message”</li></ul><p>In addition, we included the <a href="https://hub.knime.com/s/ZvAwkyncAfh_r3Wh">Workflow Application Header component</a>, a custom implementation of the top header to visually frame the data app in the style of KNIME’s Hub UI.</p><p>All these nodes were grouped into the component “Input” (see the screenshot below).</p><p>Info: A component is essentially a node that encapsulates other nodes. It displays a composite view — combining all views of the visual elements inside. To create a component, simply select the relevant nodes, right-click, and choose “Create Component”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5w9aYlHkGUq-H09w9nssdQ.png" /><figcaption>Figure 4: The internal workflow of the “Input” component — collecting user settings for the party card.</figcaption></figure><p>The workflow in this component allowed us to build the clean, interactive form shown in Figure 2A, enabling users to easily define the tone, content, and language of their personalized party cards.</p><h3>Configure the prompt for text generation</h3><p>In the second part of the workflow, we transform the user input into a custom prompt for a Large Language Model (LLM). The prompt is carefully tailored to reflect the selected style, tone, and context — ensuring the AI generates a relevant text.</p><p>The prompt is generated dynamically using an Expression node and passed to the LLM via the LLM Prompter node. Below is a simplified version of the prompt template:</p><pre>Create a party card for a [Party type] event, happening in [City]. <br>Write it in [Language] in style [Text style]. <br>Include the host(s) name(s): [Names] and the city [City]. <br>If a short story has been provided: Make sure to include the following message: [short story].</pre><p>This approach gives the AI enough structure to generate a coherent and creative output text, while still allowing for rich personalization through the user inputs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8-Kdcav09TLyfbO99WXLJw.png" /><figcaption>Figure 5: Component Prompt to AI — standard flow feeding a prompt to the selected LLM.</figcaption></figure><p>We also implemented a Try/Catch error handling mechanism using KNIME’s native nodes to deal with any potential API failures. This makes the app more robust and user-friendly — even in case of temporary connection failure or unexpected model responses. The Try/Catch (Data Ports) setup ensures the workflow can gracefully recover from such situations and continue running without crashing the data app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YcFYcvi-oupysv1JZmOybA.png" /><figcaption>Figure 6: Component Prompt to AI — alternative Try/Catch path in case of LLM failure.</figcaption></figure><h3>Format and present the output: A personalized message to the user</h3><p>Finally, the AI-generated text is displayed as a styled party card within the component “Final Card”. Users can immediately view the result: a personalized message, tailored to their event and preferences — ready to copy, share, or inspire your next celebration.</p><p>This component includes three nodes for visual outputs:</p><ul><li>A Text View node to display the title</li><li>A custom Workflow Application Header component to create a consistent, branded KNIME user interface</li><li>And most importantly, a Table View node — this is where the final text is rendered at the center of the screen</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8CdnNpNLum9kYFXag4U6mA.png" /><figcaption>Figure 7: Component “Final Card” — formatting and displaying the personalized AI-generated message.</figcaption></figure><blockquote><em>👉 </em>If you’d like to explore this workflow in more detail <em>— </em>or adapt it for your own use case <em>— </em>you can download it for free from the <a href="https://hub.knime.com/knime/spaces/Data%20Apps/Personalized%20AI%20Congrats%20Cards~n86Z7L0hMP9OXx-5/current-state">KNIME Community Hub</a><em>.</em></blockquote><h3>The results: A customized message in your chosen style</h3><p>Once the user submits the form, the AI Party Card Generator instantly produces a customized message in the chosen style — either a rap or a poem — tailored to the event, the people involved, and even the party story. The results? Creative, funny, and sometimes surprisingly emotional.</p><p>Below are three examples that illustrate how the app tailors the message based on the user’s input:</p><ol><li><strong>Birthday Party — Funny Rap (English)</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S27QAkC3ldTM_akg3Sg70w.png" /><figcaption>Figure 8: Generated birthday rap for Kevin’s rooftop party in New York.</figcaption></figure><p><strong>2. Wedding — Poetic Style (English)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3LI-o1g0hfE9A-92P76VoQ.png" /><figcaption>Figure 9: Generated wedding poem for Mary and John’s celebration in Paris.</figcaption></figure><p><strong>3. Graduation — Flowery Poem (Portuguese)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zZpJ0RMYQzsz5qOQ3UMO8g.png" /><figcaption>Figure 10: Generated graduation poem in Portuguese for Beatriz’s celebration in Lisbon.</figcaption></figure><p>These examples show how the data app can easily adapt tone, language, and message structure — transforming just a few user inputs into unique, personalized content ready to share.</p><h3>More party cards: Make personalized content accessible through KNIME</h3><p>In this article, we introduced the AI Party Card Generator, a fun and interactive KNIME data app designed to create personalized party cards using generative AI. The idea was simple: turn a few details about an event into a unique, tailored message — whether a rap or a poem — for a party card ready to be shared.</p><p>To make this happen, we built a KNIME workflow with a user-friendly form that collects inputs like party type, tone, language, and a short story. These are then transformed into a structured prompt and sent to a Large Language Model (LLM), which generates a tailored message. The result is displayed in the form of a digital card, styled and full of personality.</p><p>The results speak for themselves — users get creative, customized content with minimal effort. From heartfelt wedding verses to funny birthday raps, the app shows how easy it is to bring together AI, interactivity, and user input in KNIME.</p><p>This project also highlights the power and accessibility of data apps. With just a few nodes and the right prompt design, you can build tools that are both practical and delightful — no coding required. Looking ahead, this app could be extended with features like downloadable PDF cards, or support for images. We invite you to download the workflow “<a href="https://hub.knime.com/knime/spaces/Data%20Apps/Personalized%20AI%20Congrats%20Cards~n86Z7L0hMP9OXx-5/current-state"><em>Personalized AI Congrats Cards</em></a>” and customize it to make your own prettier and more heartfelt party cards!</p><p>With just a few KNIME nodes and a bit of creativity, you can build delightful user experiences powered by AI — all without writing a single line of code.</p><p>— — — — -</p><p>As previously published on the KNIME Blog: <a href="https://www.knime.com/blog/build-an-ai-party-card-generator">https://www.knime.com/blog/build-an-ai-party-card-generator</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=08138f7669e9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/low-code-for-advanced-data-science/build-an-ai-party-card-generator-08138f7669e9">Build an AI Party Card Generator</a> was originally published in <a href="https://medium.com/low-code-for-advanced-data-science">Low Code for Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wrapping AI in a UI]]></title>
            <link>https://medium.com/low-code-for-advanced-data-science/wrapping-ai-in-a-ui-d276f857934f?source=rss-70f68984b2dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/d276f857934f</guid>
            <category><![CDATA[stories]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[knime]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Patrícia Bacelar]]></dc:creator>
            <pubDate>Mon, 30 Jun 2025 05:02:54 GMT</pubDate>
            <atom:updated>2025-06-30T05:02:54.041Z</atom:updated>
            <content:encoded><![CDATA[<h4>DATA STORIES | AI &amp; USER INTERFACE | KNIME ANALYTICS PLATFORM</h4><h4>How to standardize prompt engineering and guarantee AI reproducibility</h4><p><em>Co-author: </em><a href="https://www.linkedin.com/in/rosaria"><em>Rosaria Silipo</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7GWAF6HHwQAm1QM_" /><figcaption>Photo by <a href="https://unsplash.com/@codioful?utm_source=medium&amp;utm_medium=referral">Codioful (Formerly Gradienta)</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a>.</figcaption></figure><p>AI is now widely and successfully used in many areas of data analytics, especially for generating text or images. But, as anyone who’s worked with large language or image models knows, results can be surprisingly non-deterministic. For example, you use a prompt and get a result. You tweak a word — and suddenly the output changes entirely. You refine your prompt over and over, chasing the outcome you want. Eventually, you find something that works, but the moment a colleague tries to reuse your prompt with a small change, the whole process starts again.</p><p>When we build AI-based applications, we want results to be consistent, even if the inputs vary slightly. We shouldn’t have to repeat the entire prompt engineering process every time a value changes.</p><p>So how do we ensure that prompts are standardized? How do we limit the variability and make the entire process easier to reproduce?</p><p>That’s where a UI (User Interface) makes all the difference. A well-designed UI allows:</p><p>· Control over the variable parts of the prompt — while preserving a consistent structure.</p><p>· Clear guidance for users, ensuring no parameters are forgotten.</p><blockquote>My co-author Rosaria and I have built several AI-based applications in KNIME, including the “<a href="https://www.knime.com/blog/build-an-ai-party-card-generator">Build an AI Party Card Generator</a>” and “<a href="https://www.knime.com/blog/ai-image-generation-with-knime">How to Time Travel with AI Image Generation in KNIME</a>”. Over time, we’ve learned how to design UIs that keep generative AI powerful, but also standardized and reproducible. This article is a reflection on what we’ve learned, and a practical guide to wrapping AI in a UI.</blockquote><h3>Prompt Engineering: Best Practices and Pitfalls</h3><p>Before diving into building a user interface, let’s take a moment to review what prompt engineering is, what it’s useful for, and what best practices (and pitfalls) come with it.</p><p>A prompt is a concise and clear instruction given to an AI model. It’s the simplest way for a human to ask AI to solve a task, but despite being “just text”, it needs to be precise and detailed enough for the AI to respond effectively. Some general best practices for prompt engineering include:</p><ul><li>Start with clear instructions.</li><li>Be specific, descriptive, and detailed about the context, expected outcome, length, format, tone, etc.</li><li>Provide examples of the desired output, if possible.</li><li>Avoid ambiguity and redundancy.</li><li>Tell the model what to do, or not to do, and what to avoid.</li><li>Use formatting to guide structure.</li><li>Follow model-specific recommendations.</li></ul><p>Let’s consider a simple example:</p><p>· <strong>Basic prompt: </strong><em>“Extract the sentiment from each one of the input texts.”</em></p><p>·<strong> Improved prompt:</strong> <em>“Extract the sentiment from each one of the input texts. The sentiment should be categorized as Positive, Negative, or Neutral.”</em></p><p>· <strong>Refined prompt: </strong><em>“You are an employee of a hotel and are evaluating the comments left by hotel guests. Please, extract the sentiment from each one of the review texts in the input table. The sentiment should be categorized as Positive, Negative, or Neutral.”</em></p><p>This kind of refinement can continue endlessly, and that’s part of the challenge. Even with a well-written prompt, changing a single word, forgetting one instruction, or introducing a small typo can lead to completely different results. Worse, it might even result in a privacy or compliance risk. That’s why controlling prompt variability is crucial, and the best way to do that is by designing a clear, structured user interface that lets users adjust parameters without ever touching the prompt structure.</p><h3>Creating a UI for standard prompt generation</h3><p>So far, we have experimented two main ways to wrap an AI model within a user interface: using a two-step UI or a one-step UI.</p><p>A two-step UI uses two separate web pages:</p><ul><li>The first page collects input settings from the user.</li><li>Behind the scenes, the AI model is triggered.</li><li>The second page displays the results.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BKCf9gYaDpsaNLSVPxD5Fg.png" /><figcaption>Figure 1: Two-step UI — the user navigates through two web pages. First, they customize the scene; second, they view the AI-generated illustration (source: <a href="https://hub.knime.com/s/ITo0UVPLb4QxYhUn">“Time Travel Workflow Illustrator” data app</a>).</figcaption></figure><p>A one-step UI keeps everything on a single web page:</p><ul><li>The user fills out the form.</li><li>The AI runs in the background.</li><li>The page then updates to show the results — all within the same interface.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ls2oO97M73WsRh5X9G9AOw.png" /><figcaption>Figure 2: One-step UI: A single, dynamic web page collects user input, triggers AI processing, and displays the final result (source: <a href="https://hub.knime.com/s/rZZtRD3MbofuB5Ex">“One-Step UI” data app</a>).</figcaption></figure><p>Both approaches produce the same output. The difference lies in the experience:</p><ul><li>Some users prefer the two-step design, which clearly separates the input and output phases.</li><li>Others prefer the one-step approach, where everything happens in a single view without switching pages.</li></ul><p>In the end, it’s a matter of personal preference. Let’s see how both options can be implemented in KNIME.</p><h3>Two-steps UI</h3><p>To build a two-step UI, we use a KNIME workflow composed of three components:</p><ol><li>Input: to collect user preferences in a form</li><li>Prompt to AI: to run the AI logic in the background.</li><li>Output: to display the final AI-based results in a web page.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9-wBebDMC2wnhUtwwS-5iQ.png" /><figcaption>Figure 3: KNIME workflow for a two-step UI: The components “Input”, “Prompt to AI”, and “Output” are run sequentially, producing separate input and output pages.</figcaption></figure><h4><strong>Component 1: Input Form</strong></h4><p>The <em>Input</em> component defines the first web page, where users enter the settings needed for AI to perform its task. This page is created using <a href="https://hub.knime.com/search?q=widget&amp;sort=best&amp;type=node"><em>Widget</em> nodes</a> — each node adds a specific type of input form:</p><p>· <a href="https://hub.knime.com/n/0it_BBA7j3jvAtZx"><em>String Widget</em></a>: implements a textbox for the user to enter text.</p><p>· <a href="https://hub.knime.com/n/Jzib6nQH9guqK6yC"><em>Value Selection Widget</em></a>: implements a menu (drop-down) or a radio button to select a value from a prebuilt list of possible values.</p><p>· <a href="https://hub.knime.com/n/cEoqAZ4LaFNAvWrK"><em>Date&amp;Time Widget</em></a>: provides a calendar for the selection of a specific date and/or time</p><p>· And more…</p><p>Each widget collects the value for a parameter in the prompt, like a number, a date, or a country. All widget nodes are part of a component. The component then produces a composite view (i.e. a web page) containing all widget items.</p><p>By default, these widget items are stacked vertically in the resulting form. To make the form visually more appealing, you can rearrange them using the <em>Layout Editor</em>, accessible from the component’s toolbar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AqF3haJcCRcymE8W4W3M4Q.png" /><figcaption>Figure 4: Layout Editor: Widget nodes are arranged on a grid layout to create a clear, branded input form.</figcaption></figure><p>In the <em>Layout Editor</em>, you can design your form layout using row grids. On the left, row grids with one or multiple cells are available. Just drag &amp; drop them into the layout editor on the right. In an existing row grid, you can always remove cells, by selecting the trash basket icon in the top right corner of the cell. You can also add cells to the whole row, by selecting the “+” icon in the top right corner of the whole row.</p><p>Once you have the desired layout structure, you need to populate the cells with visual items, being them widgets or plots. All visual items available in this component are listed on the top of the menu on the left. To build a form, drag and drop the desired widgets into the desired cells of the grid. For example, in our <a href="https://hub.knime.com/s/ITo0UVPLb4QxYhUn">“Time Travel Workflow Illustrator” data app</a>, we used a three-columns times five-rows layout, placing widgets in the two side columns and leaving the middle column empty — a trick to improve visual balance and alignment. We also added branding elements like a title, a logo, and a background image using a separate <em>Header</em> component. The final layout and populated cells for the input forms is shown in Figure 4.</p><h4><strong>Component 2: Prompt to AI</strong></h4><p>The <em>Prompt to AI</em> component is invisible to the end user. It performs the behind-the-scenes logic — generating prompts, calling the AI service, and preparing results for display.</p><h4><strong>Component 3: Output Page</strong></h4><p>The <em>Output</em> component builds the second web page, where results are displayed. This page usually contains:</p><p>· An <em>Image View</em> node to display the generated image, or a <em>Table View</em> node to present structured results.</p><p>· A <em>Text Output Widget</em> node to add explanations or context.</p><p>The <em>Layout Editor</em> is used again to structure the layout and apply branding elements, ensuring visual consistency with the input page.</p><p>Once the full application is deployed on KNIME Hub and launched from a browser, the end user will first interact with the input form web page, then the AI logic runs hidden from the end user, and finally the end user will see the results — delivering a smooth, step-by-step experience (see Figure 1).</p><h3>One-Step UI</h3><p>The two-steps UI was straightforward to build, as we saw in the previous section. But what if we want to condense that interaction into a single, self-updating page?</p><p>To create a one-step UI, we simply combine all the previous components (Input, Prompt to AI, Output) into one single component. Then, we enable automatic updates using either a <a href="https://hub.knime.com/n/EcMfHYYNQJgJmaas"><em>Refresh</em> button</a> node or by activating the <em>re-execution</em> option in some of the Widget nodes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8KfgvNe4DwbtydVW3Mu4hg.png" /><figcaption>Figure 5: KNIME workflow for a one-step UI: All components are embedded within a single component. That is all Widgets and other visual elements are combined within a single view, enabling on-page re-execution and real-time updates.</figcaption></figure><p>Both features — Refresh button and re-execution option — make the page dynamic: any change in the input form triggers a re-execution and update of the entire page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UYZ-2ZJ-N4WUJDEot8Z_CQ.png" /><figcaption>Figure 6: Triggering re-execution: The Refresh Button widget (left) and the Re-execution option on a Single Selection Widget (right) ensure the page updates dynamically when input changes.</figcaption></figure><p>The Refresh button node produces a button on the web page. When clicked, it triggers the re-execution of all upcoming nodes and thus the update of the whole view according to the new values generated during execution. The Refresh button requires minimum configuration — just the text to display on the button.</p><p>We have introduced a Refresh button node in our top component, and we have connected it to the component “Input”. So, after changing the setting values in the input form, the end user clicks on the “Refresh” button, which triggers the re-execution of all subsequent nodes in the workflow segment, and finally the whole page gets updated according to the new values in the input form.</p><h3>A UI for standardization and reproducibility</h3><p>Whether you choose a one-step, two-step, or even multi-step UI to wrap around your AI logic, the goal is always the same: to standardize the prompt structure and ensure reproducible results. Once you’ve carefully refined a prompt, you want to keep the same structure with every run of the application. A well-designed UI prevents changes in the prompt structure by allowing end users to only overwrite the variable parts (the parameters) of the prompt, while keeping the core structure untouched. This leads to consistent results, even across different execution runs with different inputs.</p><p>Below are examples from two different Data Apps, each powered by a distinct AI prompt structure. In both cases, the UI allowed the end users to experiment with different parameter values in the prompt (on the left), protecting the prompt structure, and resulting in consistent outputs for all experiments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JU-9pZQPxRt9xuqK_Zgmig.png" /><figcaption>Figure 7: A young scholar studies a KNIME workflow by candlelight in colonial America (source: <a href="https://hub.knime.com/s/ITo0UVPLb4QxYhUn">“Time Travel Workflow Illustrator” data app</a>).</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tp9XIi80xN4MwcQZXKqkaQ.png" /><figcaption>Figure 8: A calm philosopher analyzes a KNIME workflow in the agora of Classical Greece (source: <a href="https://hub.knime.com/s/ITo0UVPLb4QxYhUn">“Time Travel Workflow Illustrator” data app</a>).</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3LI-o1g0hfE9A-92P76VoQ.png" /><figcaption>Figure 9: Personalized wedding poem for Mary and John’s celebration in Paris (source<a href="https://hub.knime.com/s/n86Z7L0hMP9OXx-5/most-recent">:”Personalized AI Congrats Cards” data app</a>)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S27QAkC3ldTM_akg3Sg70w.png" /><figcaption>Figure 10: Birthday rap generated for Kevin’s rooftop party in New York (source<a href="https://hub.knime.com/s/n86Z7L0hMP9OXx-5/most-recent">: ”Personalized AI Congrats Cards” data app</a>).</figcaption></figure><p>In both image and text generation cases, users were free to experiment with different inputs, while the UI ensured the core logic and prompt structure remained untouched. This is all thanks to a dedicated UI, guiding the end users in their experiments, but protecting the underlying structure.</p><blockquote>For workflow examples of two-step and one-step UI, view and download for free the : <a href="https://hub.knime.com/s/ITo0UVPLb4QxYhUn">“Time Travel Workflow Illustrator” workflow</a> and the <a href="https://hub.knime.com/s/rZZtRD3MbofuB5Ex">“One-Step UI” workflow</a> respectively.</blockquote><p>Easy, uh? Happy KNIMEing! 🤓</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d276f857934f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/low-code-for-advanced-data-science/wrapping-ai-in-a-ui-d276f857934f">Wrapping AI in a UI</a> was originally published in <a href="https://medium.com/low-code-for-advanced-data-science">Low Code for Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>