Memention

I love melted cheese

You know the feeling when you walk into a new pizzeria? A wall of pizza names, fifty of them, and no way to get a grasp of what they all contain. I just want to know which ones have the melted cheese situation I am after, and picking from a long list of names feels overwhelming every time.

So I built pizza-menus. Paste a pizza place’s website, and out comes a brand-new menu for it, a self-contained page where one can filter the pizzas by ingredient. Click the toppings you care about and the list shrinks to the pizzas that matter.

The pizza-menus page: order form, the rail, and finished menus ready for pickup

But this post is really about two things, because the pizza service is built on top of another project, a workflow builder running on the lab in the closet. You define agent workflows in the browser: inputs, an action prompt, an eval prompt, and tools (the borrowed browser, for one). Each run gets its own sandbox folder, and a worker at home picks jobs off the queue and runs them with the Agent SDK. The hard part with a project like that is finding something real to test it with, and here I actually had a problem of my own to point it at.

The part that made me smile is the chaining. The eval prompt is not just a summarizer, it can call next_workflow("Some workflow", "handover note", inputs) and pass the whole sandbox on to another workflow, which continues right where the first one stopped. So a workflow is really more of a node, and maybe “workflow nodes” is the better name. I have not renamed anything yet.

And how do the two talk? A workflow can get a named endpoint with its own bearer token, so the whole integration is one curl:

curl -X POST https://rpi6.memention.net/workflow/api/endpoints/new-menu \
  -H "Authorization: Bearer <token>" \
  -d '{"url": "https://some-pizzeria.example"}'

pizza-menus is just a small queue in front of that, one job at a time, poll for status, mirror the resulting menu.html and serve it. I fed it hm.com to see what would happen, and the workflow looked at the page, decided this is not a pizzeria, and refused to bake anything. Good kitchen.

Grab the builder at github.com/epatel/workflow-builder, and if you know a pizzeria with an overwhelming menu, feel free to feed it in…

· · ·