Claude wrote valid WeWeb workflow JSON that I pasted directly into a workflow — it just worked

Hey WeWeb community! :waving_hand:

Quick share: I was stuck on a nested-loop workflow (looping inside a loop, referencing the outer item from the inner one — classic headache).

I copied action and gave an to claude code my workflow JSON, my SQL schema, and the values from my global variables — and it did the whole mapping for me. I pasted the corrected JSON straight into a workflow action, and it populated automatically. Everything just worked.

Handy trick if you hit the same wall: you can reference any loop via context.workflow['<loop-action-id>'].loop.item.

Smoother than I expected.:raising_hands:

That’s awesome!
I’ve used that also to audit and help me debug some complex workflows too :slight_smile: But I guess that’s something I would expect to do directly using WeWeb Ai

Not going to lie here. I’d never use something like this as a weweb workflow. I’m not sure on your use case but this 100% looks like it should be something that’s moved to a supabase edge function and/or supabase postgres function.

I try avoid loops in general in weweb if I can.