I

I made a state machine framework for guided conversations with LLMs

Hacker News

I made a state machine framework for guided conversations with LLMs

It’s written in Python and I call it GoalChain. It lets you build a conversation flow graph that the user traverses. When there’s enough input it spits out a dictionary with the defined fields. Otherwise it will jump state to state as led by the user. It was fun to write, and it’s surprisingly effective if you keep in mind you’re prompt-engineering every string and field name. README.md has a mini-tutorial. Would be cool to get some ideas for how to build it further and what improvements I could make.

Share card

Actual performance

19points
3comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
72%72% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Hacker NewsStrong engagement from HN community · Strong signals: ide, io · Missing: https docs, excited, just released
60%60% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Product HuntOn track for Day 1 leaderboard · Strong signals: mac, user · Missing: agents, macos, agent
59%59% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
44%44% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
42%42% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
15%15% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
5%5% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Fi
Finite State Machine for Go56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Finite State Machine for Go

Hacker News6
Ba
Baahu - fast 4kb state machine-based web UI framework66%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Baahu - fast 4kb state machine-based web UI framework

Hacker News3
Ju
Just state machine in ruby46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Just state machine in ruby

Hacker News2
As
Asyncmachine-go, declarative workflows with relations (state machine)40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Asyncmachine-go, declarative workflows with relations (state machine)

Hacker News2
St
State Trooper – Tiny, no frills state machine for Go57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

State Trooper – Tiny, no frills state machine for Go

Hacker News97
As
AsyncMachine – Relational State Machine (JS)57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AsyncMachine – Relational State Machine (JS)

Hacker News4
Mi
Micro JavaScript framework inspired by finite-state machine63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Micro JavaScript framework inspired by finite-state machine

Hacker News60
Ti
Tiny C++ State Machine Abstraction60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Tiny C++ State Machine Abstraction

Hacker News3
Ma
Machine Learning Framework in Java51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Machine Learning Framework in Java

Hacker News1
A
A Java server-state web framework56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Java server-state web framework

Hacker News2