TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Agentflow – Run Complex LLM Workflows from Simple JSON

51 pointsby simonmesmithalmost 2 years ago
So, it feels like this should exist. But I couldn&#x27;t find it. So I tried to build it.<p>Agentflow lets you run complex LLM workflows from a simple JSON file. This can be as little as a list of tasks. Tasks can include variables, so you can reuse workflows for different outputs by providing different variable values. They can also include custom functions, so you can go beyond text generation to do anything you want to write a function for.<p>Someone might say: &quot;Why not just use ChatGPT?&quot; Among other reasons, I&#x27;d say that you can&#x27;t template a workflow with ChatGPT, trigger it with different variable values, easily add in custom functions, or force the use of custom functions for steps in the workflow.<p>Someone might also say: &quot;Then why not use Auto-GPT or BabyAGI?&quot; Among other reasons, I&#x27;d say you can&#x27;t if you want consistency because these tools operate autonomously, creating and executing their own tasks. Agentflow, on the other and, lets you define a step-by-step workflow to give you more control.<p>I&#x27;d like to do more with this, including adding more custom functions, and more examples, and more ways to trigger workflows (such as in response to events). But first, I want to make sure I&#x27;m not wasting my time! For starters, if something like this already exists, please tell me.

7 comments

toomuchtodoalmost 2 years ago
Y&#x27;all should team up with the Magic Loop folks: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=36958731">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=36958731</a><p>And if you want to talk to a bunch of APIs: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=37020783">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=37020783</a>
评论 #37054637 未加载
评论 #37060487 未加载
hk1337almost 2 years ago
Seems cool. Seems a little like an open source version of Step Functions you only need python to run.<p>I did a similar, rudimentary, version where I save the JSON in DynamoDB and the tasks indicate how to transform tabular (Excel, CSV) data. From renaming columns, adding columns, and transposing columns into new rows.
评论 #37054604 未加载
brockmeieralmost 2 years ago
This is really cool! I’m doing something similar with Lemon Agent (<a href="https:&#x2F;&#x2F;github.com&#x2F;felixbrock&#x2F;lemon-agent">https:&#x2F;&#x2F;github.com&#x2F;felixbrock&#x2F;lemon-agent</a>). What I find most powerful about defining workflows in a json file is that you can add additional fields to let the LLM know about specific execution requirements, like asking the user for permission before executing a specific workflow step. This allows for infinite configuration options. Curious to hear if you already experimented with something like this or if you are planning to include something similar?
评论 #37105063 未加载
rexreedalmost 2 years ago
I&#x27;m trying to understand what this does and how it works. Can you provide more examples with different use cases? How does this work with &#x2F; compare to LangChain?
评论 #37053176 未加载
dchukalmost 2 years ago
Looks awesome. Any plans to allow for it to use local LLMs (like llama) instead of openai APIs?
评论 #37054702 未加载
jmarbachalmost 2 years ago
Thank you for creating this. I&#x27;ve been looking for something that provides a more lightweight alternative to LangChain.
评论 #37054659 未加载
whalesaladalmost 2 years ago
kinda reminds me of dagster or langchain. do you anticipate building a huge library of functions like &#x27;save_file&#x27; that would add up to a library or is that intended to be left to the reader? if the latter, the fact that this is based on json feels kinda moot.
评论 #37054652 未加载