Need help with workflow to tool node

Hello, I was trying out the new agentic update in knime. I created few tools. This is the directory to which I save the tools:
C:\Users\nikhi\knime-workspace\AI tools
Already present tools:
C:\Users\nikhi\knime-workspace\AI tools\company_info
C:\Users\nikhi\knime-workspace\AI tools\KNIME_project

I list the above mentioned folders using the list files/folder node. I use workflow to tool to convert it to a tool. But unfortunately, it does not get converted:

So I exported company_info and KNIME_project to another folder. Here are the contents of the folder:
C:\Users\nikhi\knime-workspace\AI tools workflow\KNIME_project.knwf
C:\Users\nikhi\knime-workspace\AI tools workflow\company_info.knwf
When I use workflow to tool node on this, it works:

Having to export and save it to another folder every time is tiring. I came across this portion in the documentation.

Please tell me how I can save workflow and re-run Workflow to Tool node to get the updated too.

Thanks for all the replied in advance.

Hello @nikhil_benny ,
It’s good to see that you are following the documentation and working on an Agentic use case, but you don’t have to export the workflows to a different folder every time.

You mentioned these were your already present tools,
Already present tools:
C:\Users\nikhi\knime-workspace\AI tools\company_info
C:\Users\nikhi\knime-workspace\AI tools\KNIME_project

I am guessing since they were not saved as a .knwf file, the workflow to tool could convert them to a tool.

You can simply reset and save the tool workflows every time you make a change, then reset the agent workflow before running, so that it considers the latest changes in the tool workflows. This should work fine.

I hope this helps.

Thanks,
Sanket

Hi @sanket_2012 , thanks for your reply
I’m not sure I understood you right. Are you saying that I had to save it as a .knwf file instead of all the folders with the subfolders? If so, can you please instruct me on how to do it. I do not know of any method to save directly as knwf file.

Thanks & Regards,
Nikhil Benny

Hi @nikhil_benny ,
My bad, you don’t have to save it as .knwf explicitly.
I just saw the description of the node: workflow to tool; it says, “If a workflow can’t be read, a missing value will be output instead.”

Can you try to create a folder called “tools” where your agent workflow is located, and then try using this configuration in the list files /folders node?


The point is, you don’t have to export every time. You can simply read the workflow from the “tools” folder, edit it, and save it there. However, ensure that you reset the agent workflow every time you make changes to the tools, so that the latest version of the workflow can be read.

I hope this makes it clear.

Thanks,
Sanket

1 Like

Thanks a lot @sanket_2012 , you’ve made my life much easier. Your solution works

1 Like

I actually came across this behavior as well. As long as I use knime relative path, the workflows can be read.

Once I set a local path, I get missing values unless I export them to the location as .knwf…

Is this behavior intended?

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.