You can use AI (ChatGPT, Claude, DeepSeek, etc.) to convert unstructured family history into the required family-data.json format.
Prompt Template for AI:
Please organize the family information I provide into the following JSON format:
{
"generations": [
{
"title": "Xth Generation",
"people": [
{
"id": "unique-identifier",
"name": "Name",
"info": "Detailed information",
"fatherId": "Father's ID",
"birthYear": birth year,
"deathYear": death year
}
]
}
]
}
Requirements:
1. Generate a unique id for each person (such as first-gen-1, second-gen-2, etc.)
2. Correctly set fatherId to establish parent-child relationships
3. Categorize people by generation
4. Include spouse, achievements, etc. in the info field
5. Use birthYear and deathYear to record birth and death years (if available)
6. Ensure the JSON format is valid and can be directly imported into the system
Workflow:
- Prepare your text-based family history.
- Provide the prompt above along with your text to the AI.
- Copy the resulting JSON into
config/family-data.json. - Verify that
fatherId links correctly to existing id values.
{
"generations": [
{
"title": "Xth Generation",
"people": [
{
"id": "unique-identifier",
"name": "Name",
"info": "Detailed information",
"fatherId": "Father's ID",
"birthYear": birth year,
"deathYear": death year
}
]
}
]
}