2025-03-17 by Chris
When building chatbot platforms or conversational agents, developers often try to store conversation logic in relational or document-based databases. But here’s the problem:
Conversations aren’t tables. They’re networks.
This article explores why traditional databases struggle with conversation modeling and why Wanderer takes a different path using graphs.
Relational databases are great when your data fits into predictable rows and columns think products, invoices, users. This is the basis for CRUD apps (Create, Read, Update, Delete) and admin panels.
But conversations aren't structured like spreadsheets. They're full of:
Trying to force this into a tabular model means you're constantly writing glue code to simulate logic that just doesn’t belong there.
Imagine trying to store a conversation like this:
In a relational model, you'd need:
Here’s a simplified version:
questions
:id | label |
---|---|
1 | Hey! How are you? |
2 | Why are you stressed? |
3 | What do you want to do? |
suggestions
:id | label |
---|---|
1 | I'm fine |
2 | I'm stressed |
3 | Book a holiday |
edges
:id | from_type | from_id | to_type | to_id |
---|---|---|---|---|
1 | question | 1 | suggestion | 1 |
2 | question | 1 | suggestion | 2 |
3 | suggestion | 2 | question | 2 |
4 | question | 2 | suggestion | 3 |
It works but only in theory. As your flows grow, the model becomes unmanageable.
MongoDB and other document databases offer more flexibility. But you still face the same challenge: relationships.
You can either:
In short: neither tabular nor document structures naturally express networks.
At Wanderer, we treat every flow as a graph:
This allows us to:
In a graph, your data is your logic. And your logic is visual.
With Wanderer, the conversation graph is the database. The flow you draw is what gets saved. There’s no translation layer, no hidden logic, and no mismatch between front-end and back-end.
And best of all: it runs entirely in the browser.
Relational and document databases were never designed for conversational logic. The more you try to force it, the more complexity you create. Wanderer embraces the true structure of conversations as networks and makes them visible, editable, and executable.
If you’re tired of fighting against your database schema, try building with the graph instead.
Title image: https://pixabay.com/de/photos/karten-katalog-schubladen-holz-194280/