Skip to content
English
  • There are no suggestions because the search field is empty.

Semantic architecture & Hn agent: Audit and optimize your heading structure

This agent analyzes your Hn tag hierarchy, checks Focus Keyword integration, and compares your outline to the top SERP results to deliver an actionable diagnosis.

At a glance

  • What you'll do: Get a full audit of your Hn structure, a comparison with winning SERP patterns, and ready-to-apply recommendations.
  • Time required: 3 to 5 minutes per page analyzed.
  • Ideal for: Writers and content managers who want to verify or fix content structure before publishing, or optimize existing content that has stalled in rankings.

What is it for?

The Hn structure is the backbone of any high-performing SEO page. A H1 that doesn't contain the Focus Keyword, a level skip between H2 and H4, or subheadings that ignore the search intents identified by Semji: each of these issues weakens Google's semantic understanding of your page and reduces your chances of ranking well.

The difficulty is that poor structure often goes unnoticed. Content can feel well-organized when read but still have hierarchy inconsistencies or significant semantic gaps compared to the pages occupying the top 3 SERP positions.

This agent automates the audit by crossing three levels of analysis: the technical compliance of your Hn hierarchy, the presence of the Focus Keyword in the right levels, and a comparison with the structures used by the top two SERP results for your target keyword.

Good to know ℹ️: The agent uses the Search Intents provided by Semji in the editor context to verify that your H2 and H3 tags cover the search intents Google expects, not just the main keyword.

What you'll get

The agent delivers a four-part report:

  • A structure diagnosis: H1 status, Focus Keyword presence, hierarchy consistency.
  • The current structure plan displayed as an indented list, so you can visualize the full architecture at a glance.
  • A SERP comparative analysis: what top-performing competitors are doing, recurring structural patterns to adopt.
  • Prioritized optimization recommendations, with a rewrite proposal for each heading to modify, integrated directly into the editor via the replacement tool.

How to do it 

1) Access AI+ Agents

Open the content to audit in the Semji editor and make sure the Focus Keyword is set. It is essential for both the technical audit and the SERP analysis.

Tip ✅: This agent is particularly effective just before publishing new content, or when auditing existing pages stalling between positions 4 and 15.

2) Create the custom agent

In the Semji editor, navigate to the AI+ Agents feature and create a new agent with the following settings:

  • Name: Semantic architecture & Hn expert
  • Instructions: Copy and paste the prompt below.
  • Tools to enable:
    • ✅ Analyze HTML
    • ✅ Google search
    • ✅ Retrieve SEO recommendations

[PROMPT]

Click Create to save your agent.

3) Run the analysis

Once the agent is configured, launch it from the Semji editor on the open content. It automatically extracts the Hn structure, analyzes the top 3 SERP results, and cross-references the findings with the Search Intents from your workspace.

Click Run to start the analysis.

4) Read and apply the output

Structure diagnosis: start with the ✅ / ❌ / ⚠️ statuses. A ❌ on the Focus Keyword in the H1 is an absolute priority to fix before any other optimization.

Current structure plan: use the indented list to visually spot level skips (for example an H4 directly after an H2) and unbalanced sequences.

SERP analysis: retain the recurring structural patterns identified among competitors. If several top 3 pages use a "Frequently asked questions" section at the end of the article, that's a strong signal to integrate.

Recommendations: for each heading to modify, the agent proposes a rewritten version directly in the editor. Accept or adjust based on your editorial guidelines.

Important ⚠️: If the agent flags a mismatch between the main search intent and your current H1, don't just rewrite the title. It's often a sign that the overall content plan deserves a full review.

Using the agent day to day

Before every publication: run the agent on any new content to validate structure before going live. It's the fastest SEO quality check to build into an editorial workflow.

On pages ranking between positions 4 and 15: these are the pieces with the highest potential for quick gains. A Hn structure better aligned with the SERP is often enough to push them forward.

After a substantial content update: if you add multiple sections or reorganize an existing article, re-run the agent to make sure the new hierarchy remains consistent.

Pro tip 💡: Combine this agent with Semji's SEO recommendations to work on Hn structure and semantic enrichment at the same time. Both levers reinforce each other.

Going further

Once your Hn architecture is optimized, extend the work with complementary agents:

  • Use the SEO intent alignment agent to verify that your page's overall search intent is aligned with what Google expects.
  • Enable Semji's SEO recommendations to enrich the body of each section with missing semantic terms.
  • Use the Structured data agent to add JSON-LD markup consistent with the optimized Hn structure.

Useful links: