Skip to main content

How do I use "hard coded category tree" in site generation?

Over-ride the category tree structure with your own JSON

Updated over a month ago

Looking to set your own category tree without our AI generating something based on your idea?

If you have a specific product category structure in mind you can leverage this field under the advanced settings of the site creation form.

The required JSON requires a specific format to validate correctly and allow for a site to be generated.

The structure must be 3 levels deep. See example JSON file below:

  "l1": [
{
"name": "Products",
"l2": [
{
"name": "Beauty",
"l3": [
{
"name": "Cosmetics"
}
]
},
{
"name": "Tools",
"l3": [
{
"name": "Chainsaws"
},
{
"name": "Screwdrivers"
}
]
}
]
}
]
}
}

​​We recommend you use an LLM to convert your existing category tree to this format and copy and paste your version into the advanced settings field.​

If the format is correct the field should highlight green.

An invalid JSON format will result in a red highlight.​

Please note that you can create exceptionally large category trees and sites with this method but it is generally not recommended.

Did this answer your question?