Live data from Hacker News

Ask HN: How have you implemented human-in-the-loop workflows?

news.ycombinator.com

11–15 of 15 posts

Re: Ask HN: How have you implemented human-in-the-loop workflows?

#11
post #10

Yes, I have implemented HITL. There's a task queue(psql skiplock). You make a request (insert row). It builds a "workflow graph" of your request and compiles it, a combination between a FSM and graph program. It runs an iteration on the workgraph, and then if successful, submits the next step in the queue as "pending". the user then inspects and accepts the tasks, which then run another iteration of the workgraph. If…

is the "workflow graph" entirely custom built or is there a library/framework/service for it? Would love to hear more

Re: Ask HN: How have you implemented human-in-the-loop workflows?

#12
post #9
post #8

Would it help to think of it as two workflows? The first workflow ends with a human. The second workflow is triggered by the human. To build those two workflows, use whatever tools allow you to build such no-human-in-the-loop workflows.

Wouldn't you want to track the flow through the all components though? Case management for example - case is created, case is triaged, case is (hopefully) closed. That way there is visibility. If it's workflow A/tool A, some human using tool B, and then workflow C/tool C, absent integration you lose external visibility at each step, or you have to go check in Tool A to see if work flow made it to Human, and so on.

yeah one flow for all the stages is the way. I like having a "status" column, and have a different task queue depending on the status

Re: Ask HN: How have you implemented human-in-the-loop workflows?

#13
post #10

Yes, I have implemented HITL. There's a task queue(psql skiplock). You make a request (insert row). It builds a "workflow graph" of your request and compiles it, a combination between a FSM and graph program. It runs an iteration on the workgraph, and then if successful, submits the next step in the queue as "pending". the user then inspects and accepts the tasks, which then run another iteration of the workgraph. If…

is the "workflow graph" entirely custom built or is there a library/framework/service for it? Would love to hear more

sorry I meant to say or explain computational graph, and yes langgraph was reintroduced recently last week.

Re: Ask HN: How have you implemented human-in-the-loop workflows?

#14
I worked at a CRM/BPO company doing something like this for customer support inquiries, everything was pretty bespoke. We did all the productivity measurement off of, IIRC, Redshift tables fed by Kafka events (probably some airflow in there to ETL) published during task assignment.
Post reply on HN