logoalt Hacker News

smarx007yesterday at 11:13 PM5 repliesview on HN

So here is a case that I wanted to implement in n8n a few years ago and it required quite heavy JS blocks:

- I want to check some input - pick one of your 138 blocks

- I want to extract a list of items from that input

- I want to check which items did I encounter before <- that's the key bit

- Do something for the items that have not been encountered before; bonus point for detecting updated and deleted items

- Rinse and repeat

It could be a row added to a CSV file, a new file dropped into a Nextcloud folder, a list of issues pulled from a repo, or an RSS feed (Yahoo! Pipes, what a sweet memory).

How good is the support for such a case in Sim? And did it get better in n8n?


Replies

waleedlatif1yesterday at 11:58 PM

this is actually a perfect use case, mostly deterministic workflows that need LLMs to fill in the gaps or do the knowledge work. As you mentioned, you can either add it as a row in a CSV file (sheets), use the baked-in memory block and treat it as simple storage, store the row in supabase, or use the knowledgebase. Basically, there are a ton of ways that this can be done that don't require you to maintain the memory solution yourself. you can even detect the updated and deleted items by keeping some sort of version-controlled snapshot of each row in the csv and updating it as you go.

I can't tell you whether it got better in n8n, but I can definitively say that this sounds like a great candidate workflow to build in sim :)

vulture916today at 12:43 AM

N8n can definitely do this.

They recently added native tables, albeit still just a few data types, you can store stuff in and use in workflows.

nine_kyesterday at 11:22 PM

But does that require AI agents? Well, maybe the extraction step, if it's not CSV but a general-case web page.

show 2 replies
grantithtoday at 1:09 AM

I really like windmill.dev which should support your scenario just fine

itaydtoday at 2:08 AM

Hey - could be a good use case for https://github.com/autokitteh/autokitteh - which gives you durable workflows over python. Since your logic is deterministic it's a simple python script that stores the history in memory, and autokitteh will take care of the persistancy aspect.