classification_json and how it shapes discovery
classification_json holds a summary block (category, country, language, gender) plus a directions tree of categories and tags. It is written once per account by the AI pipeline and only an admin can re-run it.
classification_json is the structured output of Keepface’s AI classification pass. It is the single biggest input into which lists an influencer appears on and how discovery ranks them.
The shape
{
"summary": {
"primary_category": "Beauty & Self-Care",
"secondary_categories": ["Lifestyle"],
"primary_country": "AZ",
"secondary_countries": ["TR"],
"primary_language": "az",
"apparent_gender": "female",
"creator_type": "...",
"post_frequency_per_week": 4
},
"directions": [
{
"categories": [
{ "category": "Skincare", "tags": [{ "tag": "Skincare Routine" }] }
]
}
],
"suggested_tags": [{ "tag": "Beauty Hauls" }]
}
The directions tree is drawn from a locked taxonomy: the AI scores tags that already exist in it rather than inventing new ones. The summary.primary_category is snapped back to the canonical category list afterwards, and the model’s own free-form answer is kept alongside it for audit.
The same pass also backfills the influencer’s country and gender on their profile when those fields are empty.
When it is written
Once, per connected account, when the profile is complete enough to classify. The pipeline skips an account that already carries a classification timestamp, so a normal profile is never silently re-tagged, and it skips a profile that is missing an avatar, a bio, a follower count or its 12 most recent posts. There is also an audience gate: no connected Instagram or TikTok account above 5,000 followers means no classification pass.
A Keepface admin can force a re-classification from the admin panel. Nothing else can.
On a multi-account profile the representative classification is pinned to the largest account, with no extra AI call for the others.
How it is used
- List membership, lists are filters over country, platform, category, tier and tag, all read out of this block
- Search and discovery, tag filters query straight into
directions[].categories[].tags[] - Circles and matching, topic matching compares a profile’s categories and tags against the topic
If the tags are wrong
Because there is no self-serve editor and no automatic re-run, a wrong classification stays wrong until someone fixes it. Raise it with Keepface support with the handle and what the profile actually covers.
Related
Frequently asked questions
How often does classification re-run?
It does not re-run on its own. The pipeline writes classification_json once per connected account, and after that only a Keepface admin can force a re-classification.
Can an influencer edit their own tags?
No. There is no self-serve tag editor. The tags come from the AI pass over the profile, and corrections go through Keepface.
Why has a new profile not been classified yet?
The pipeline refuses incomplete profiles. It needs an avatar, a bio, a follower count and at least 12 recent posts, and it skips accounts under 5,000 followers on Instagram and TikTok.