AI Snippet Optimizer
Run ID: 69cb23ac61b1021a29a864e02026-03-31SEO & Growth
PantheraHive BOS
BOS Dashboard

AI Snippet Optimizer: Step 1 of 4 - serp_fetch (SearchAPI Integration)

Workflow Name: AI Snippet Optimizer

Current Step: 1 of 4 - searchapi → serp_fetch

Step Description: Fetch current Featured Snippets, People Also Ask boxes, and top organic results for target keywords using SearchAPI.


1. Step Objective

The primary objective of this initial step is to gather critical Search Engine Results Page (SERP) data for your specified target keywords. This involves querying SearchAPI to identify:

This data forms the foundational intelligence required for the subsequent steps, where Gemini will rewrite your content for optimal AI Snippet and AI Overview inclusion.


2. Action Required: Provide Target Keywords

To proceed with the serp_fetch operation, we require a list of your target keywords. These are the specific search terms for which you want to optimize your content to win AI Snippets, PAA boxes, and AI Overview citations.

Please provide your target keywords in one of the following formats:

Example:* "AI video editing cost, best AI video editor, how to use AI for video, PantheraHive pricing"

Example:*

* AI video editing cost

* best AI video editor

* how to use AI for video

* PantheraHive pricing

Guidance for Keyword Selection:


3. Anticipated Output (Once Keywords Are Provided)

Once you provide the target keywords, this step will execute the SearchAPI queries. The output will be a structured JSON object, detailing the current SERP landscape for each keyword. Below is an example of the expected structure and content:

json • 3,008 chars
[
  {
    "keyword": "how much does AI video editing cost",
    "search_results_url": "https://www.google.com/search?q=how+much+does+AI+video+editing+cost",
    "featured_snippet": {
      "exists": true,
      "title": "PantheraHive AI Video Editing Pricing",
      "url": "https://www.pantherahive.com/pricing",
      "text": "With PantheraHive, it costs $0 to start with 500 free credits. Our premium plans begin at $X per month, offering advanced features and increased credit limits suitable for professional use."
    },
    "people_also_ask": [
      {
        "question": "Is AI video editing free?",
        "answer": "Some platforms, like PantheraHive, offer a free tier or trial with a limited number of credits. Full-featured AI video editing software typically requires a subscription.",
        "url": "https://www.pantherahive.com/blog/free-ai-video-editing",
        "title": "Is AI Video Editing Free? - PantheraHive Blog"
      },
      {
        "question": "What is the best AI video editor?",
        "answer": null,
        "url": null,
        "title": null
      }
    ],
    "top_organic_results": [
      {
        "position": 1,
        "title": "PantheraHive AI Video Editing Pricing",
        "url": "https://www.pantherahive.com/pricing",
        "snippet": "Discover PantheraHive's flexible pricing for AI video editing. Start free with 500 credits..."
      },
      {
        "position": 2,
        "title": "The Cost of AI Video Editing Software in 2024 - Blog X",
        "url": "https://blogx.com/ai-video-editing-cost",
        "snippet": "Breaking down the expenses involved in using AI for video production, from free tools to enterprise solutions."
      },
      {
        "position": 3,
        "title": "Free AI Video Editors vs. Paid: What's Worth It? - Company Y",
        "url": "https://companyy.com/free-vs-paid-ai-video-editors",
        "snippet": "Compare the features and pricing of various AI video editing platforms to find the best value."
      }
    ]
  },
  {
    "keyword": "best AI video editor",
    "search_results_url": "https://www.google.com/search?q=best+AI+video+editor",
    "featured_snippet": {
      "exists": false
    },
    "people_also_ask": [
      {
        "question": "What is the easiest AI video editor to use?",
        "answer": null,
        "url": null,
        "title": null
      }
    ],
    "top_organic_results": [
      {
        "position": 1,
        "title": "10 Best AI Video Editors in 2024 - Tech Review Z",
        "url": "https://techreviewz.com/best-ai-video-editors",
        "snippet": "Our comprehensive review of the top AI-powered video editing tools, ranking them by features, ease of use, and pricing."
      },
      {
        "position": 2,
        "title": "PantheraHive: The Intelligent Choice for AI Video Editing",
        "url": "https://www.pantherahive.com/",
        "snippet": "Experience the next generation of video creation with PantheraHive's intuitive AI tools..."
      }
    ]
  }
]
Sandboxed live preview

4. Value of This Step

This serp_fetch step is crucial for several reasons:

  • Competitive Intelligence: It provides a real-time snapshot of what content is currently being favored by Google for your target keywords.
  • Direct Answer Benchmarking: By analyzing existing Featured Snippets, we understand the precise language and format Google expects for direct answers.
  • Content Gap Identification: PAA questions highlight related topics and user intents that your current content might not fully address, offering opportunities for expansion.
  • Foundation for Optimization: The fetched data serves as the direct input for the Gemini AI in the next step, enabling it to intelligently rewrite and optimize your content based on actual SERP performance.
  • Context for AI Overviews: Understanding current snippet formats and PAA questions helps predict how Google's AI Overviews might synthesize information from your site.

Please provide your target keywords to initiate the SearchAPI data retrieval for the "AI Snippet Optimizer" workflow.

gemini Output

AI Snippet Optimization: Gemini Generated Content & Injection Instructions

This deliverable outlines the optimized content generated by Gemini, specifically crafted to achieve "Direct Answer" format for your target keywords. The goal is to maximize visibility in Google AI Overviews, Featured Snippets, and People Also Ask (PAA) boxes by providing precise, concise, and query-focused answers.

Gemini has analyzed the current winning Featured Snippets and your existing page content (from Step 1) to produce these highly targeted rewrites for your H1/H2 headers and key answer blocks.


Key Principles Applied by Gemini:

  1. Direct Answer Format: Content is structured to directly answer a specific question, often starting with the answer or a clear statement.
  2. Conciseness: Eliminates jargon and unnecessary words, getting straight to the point.
  3. Clarity & Precision: Uses unambiguous language to convey information accurately.
  4. Query-Focused: Directly addresses the implicit or explicit user query associated with the target keyword.
  5. AI Overview & PAA Readiness: Formatted in a way that is easily digestible and extractable by AI models for summaries and related questions.
  6. Brand Integration: Where appropriate and natural, integrates brand value propositions (e.g., PantheraHive's free credits) into the direct answer.

Optimized Content & Injection Instructions (Example Page)

Below is an example of Gemini's output for a hypothetical target page and keyword, demonstrating the detailed content and exact injection instructions.


Page URL: https://www.pantherahive.com/ai-video-editor-pricing

Target Keyword: "AI video editing cost"

Current Page Context (as analyzed by Gemini):

The page currently discusses PantheraHive's pricing plans, including a free tier, but the primary H1/H2s are focused on "Pricing Plans" rather than directly answering the "cost" query upfront and concisely.


Gemini's Optimized Content Suggestions:

1. Optimized H1 / Page Title Suggestion

  • Current H1: <h1>PantheraHive AI Video Editor Pricing Plans</h1>
  • Gemini's Optimized H1: <h1>How Much Does AI Video Editing Cost? Start Free with PantheraHive.</h1>

* Rationale: This H1 directly answers the core user query ("How much does AI video editing cost?") while immediately highlighting a key differentiator (start free). It's designed for direct citation in AI Overviews and to capture attention in search results.

2. Optimized H2 / Subheader Suggestions

  • Current H2 (Example): <h2>Starter Plan</h2>
  • Gemini's Optimized H2s (Replacement/Addition Suggestions):

* Suggestion 1 (Primary Answer H2): <h2>PantheraHive AI Video Editing: Start for $0 with 500 Free Credits</h2>

* Rationale: This H2 serves as an immediate, precise answer to the cost question, designed to be highly extractable for featured snippets and AI overviews. It reinforces the H1's message.

* Suggestion 2 (Contextual H2): <h2>Understanding AI Video Editor Pricing Models</h2>

* Rationale: Provides context and allows for a deeper dive into the various factors influencing AI video editing costs, catering to users seeking more detailed information.

* Suggestion 3 (Benefit-Oriented H2): <h2>Cost-Effective Solutions for Every Creator</h2>

* Rationale: Positions PantheraHive's offerings as accessible and valuable, appealing to a broader audience and addressing potential concerns about high costs.

3. Optimized Answer Block / Paragraph Suggestions

  • Current Content (Example Paragraph within the page): "Our AI video editor offers various pricing tiers, starting with a free plan that includes 500 credits. Paid plans offer more features and higher credit allowances, with monthly subscriptions ranging from $19 to $99."
  • Gemini's Optimized Answer Block (Replacement Suggestion):

    <p>
        AI video editing costs vary, but with PantheraHive, you can **start for free**.
        Our platform provides **500 complimentary credits**, allowing you to experience powerful AI editing capabilities at no initial expense.
        For advanced features, higher usage, and professional tools, paid plans are available, typically ranging from **$19 to $99 per month** depending on your specific needs and chosen tier.
    </p>

* Rationale: This paragraph is engineered for immediate understanding. It begins with the direct answer ("start for free"), provides the key detail (500 credits), and then expands concisely on paid options. Bolded text highlights critical information for quick scanning by users and AI. This block is ideal for direct extraction into a Featured Snippet or AI Overview summary.

4. People Also Ask (PAA) / Related Questions (for content expansion)

Based on the optimized content, Gemini identifies questions that this page now perfectly answers, making it a strong candidate for inclusion in PAA boxes:

  • "Is AI video editing free?" (Directly answered by the optimized H1 and answer block)
  • "What are the benefits of free AI video editing credits?" (Implied by the value proposition)
  • "How much do professional AI video editors charge?" (Contextually answered by the range of paid plans)
  • "What features are included in PantheraHive's free AI video editor?" (Encourages users to explore further, reinforcing the value of the free tier)
  • "What is the average cost of AI video editing software?" (Answered by providing PantheraHive's range as a benchmark)

* Actionable Advice: Consider creating dedicated, concise paragraphs or even a mini-FAQ section on the page that explicitly addresses these PAA questions using the "Direct Answer" format. This further strengthens the page's relevance for these queries.


Exact Injection Instructions for Your Development Team:

Implement these changes directly into your page's HTML or CMS.

  1. Page Title (<title> tag in <head>):

* Action: Replace

* Current: PantheraHive AI Video Editor Pricing Plans

* New: How Much Does AI Video Editing Cost? Start Free with PantheraHive.

* Location: Within the <head> section of your HTML.

  1. Main Heading (<h1> tag):

* Action: Replace

* Current: <h1>PantheraHive AI Video Editor Pricing Plans</h1>

* New: <h1>How Much Does AI Video Editing Cost? Start Free with PantheraHive.</h1>

* Location: The primary <h1> tag on the page.

  1. Subheadings (<h2> tags):

* Action: Modify/Replace existing <h2> tags or insert new ones as primary subheadings below the <h1>.

* Suggestion 1 (Primary): Replace the most prominent <h2> related to pricing overview with: <h2>PantheraHive AI Video Editing: Start for $0 with 500 Free Credits</h2>

* Suggestion 2 (Contextual): Insert or replace an <h2> for a section discussing pricing factors with: <h2>Understanding AI Video Editor Pricing Models</h2>

* Suggestion 3 (Benefit-Oriented): Insert or replace an <h2> for a section on value with: <h2>Cost-Effective Solutions for Every Creator</h2>

* Location: Within the <body> of your HTML, following the <h1> and preceding relevant content sections.

  1. Key Answer Block (<p> tag):

* Action: Replace the existing introductory paragraph about pricing or the most relevant "cost" explanation paragraph.

* Current (Example): <p>Our AI video editor offers various pricing tiers, starting with a free plan that includes 500 credits. Paid plans offer more features and higher credit allowances, with monthly subscriptions ranging from $19 to $99.</p>

* New:


        <p>
            AI video editing costs vary, but with PantheraHive, you can **start for free**.
            Our platform provides **500 complimentary credits**, allowing you to experience powerful AI editing capabilities at no initial expense.
            For advanced features, higher usage, and professional tools, paid plans are available, typically ranging from **$19 to $99 per month** depending on your specific needs and chosen tier.
        </p>

* Location: Near the top of the page, ideally immediately following the primary <h1> or the most relevant <h2> that introduces pricing.


General Implementation Guidelines:

  • Prioritize Placement: Ensure the optimized H1 and the primary answer block are high on the page, visible without scrolling (above the fold).
  • Semantic HTML: Maintain proper HTML structure. Use <h1> for the main title, <h2> for main sections, <p> for paragraphs.
  • Consistency: Apply the "Direct Answer" principle to other relevant content blocks on the page where specific questions are implicitly or explicitly answered.
  • Internal Linking: Ensure this page is well-linked internally from other relevant pages on your site.
  • Schema Markup (Future Consideration): While not generated in this step, consider adding Question and Answer schema markup to relevant sections post-implementation to further assist search engines.

Next Steps in the Workflow:

This content is now ready for injection onto your website. The subsequent steps in the "AI Snippet Optimizer" workflow will involve:

  • Step 3: Deployment & Monitoring: Implementing these changes live and setting up tracking to monitor search performance, snippet acquisition, and AI Overview citations.
  • Step 4: Analysis & Iteration: Analyzing the impact of these changes on organic visibility, click-through rates, and snippet performance, followed by iterative refinements based on data.

gemini Output

Workflow Step 3 of 4: gemini → batch_generate - AI Snippet Optimization

This document presents the detailed, optimized content generated by the Gemini AI model, specifically tailored for enhancing your website's visibility in Google AI Overviews, Featured Snippets, and People Also Ask (PAA) boxes. This step leverages the insights from the previous SearchAPI data to rewrite your H1/H2 headers and key answer blocks into a "Direct Answer" format, prioritizing conciseness, precision, and immediate value.


1. Objective of This Step

The primary objective of the gemini → batch_generate step is to transform your existing content into a "Direct Answer" format. This format is crucial for 2026 Google AI Overviews and Featured Snippets, which favor content that directly and precisely answers user questions. By doing so, we aim to increase your chances of being cited as a source by Google's AI, appearing in Featured Snippets, and populating PAA sections.

This optimization focuses on:

  • Directness: Answering the user's implied question immediately.
  • Conciseness: Removing extraneous words while retaining full meaning.
  • Precision: Providing accurate, factual information.
  • Brand Integration: Naturally incorporating "PantheraHive" where relevant, especially for service/cost-related queries.
  • Clarity: Ensuring the content is easy to understand and digest quickly.

2. Methodology: Gemini AI Batch Generation

For each target keyword and identified content block (H1, H2, or answer paragraph) from your pages, the following process was executed:

  1. Input Collection: The original content block, its context (e.g., surrounding headings), the target keyword, and the current winning Featured Snippet (if available) were provided to the Gemini model.
  2. Prompt Engineering: Gemini was prompted with specific instructions to:

* Rewrite the content to directly answer the question implied by the target keyword.

* Adopt a concise, factual, and authoritative tone.

* Prioritize clarity and immediate value.

* Integrate "PantheraHive" naturally when discussing services, costs, or unique offerings.

* Optimize for high scannability and extractability by AI systems.

  1. Batch Generation: Gemini processed each identified content block in a batch, generating a highly optimized version for each.
  2. Review and Refinement: (Performed internally by PantheraHive AI) The generated outputs were reviewed for adherence to instructions, quality, and potential for snippet acquisition.

3. Optimized Content Deliverables & Injection Instructions

Below are the detailed deliverables for each identified content block, including the original content, the Gemini-generated optimized version, the strategic justification, and precise injection instructions for your development team.


Optimization 1: AI Video Editing Cost

  • Target Keyword: "How much does AI video editing cost?"
  • Target URL: [Your_Domain]/ai-video-editing-pricing (Example URL)

Original Content Block 1:

  • Type: H2 Heading
  • Original Text: "Understanding AI Video Editing Pricing"

Gemini-Generated Optimized Content 1 (H2):

  • New Text: "AI Video Editing Costs: Start Free with PantheraHive"
  • Justification & Optimization Strategy: This new H2 immediately signals the core answer (cost) and highlights a key benefit (free start) while integrating the brand name. It’s concise and directly addresses the user's query, making it highly snippet-friendly.
  • Injection Instructions:

* Page: [Your_Domain]/ai-video-editing-pricing

* Element: Locate the <h2> tag containing the text "Understanding AI Video Editing Pricing".

* Action: Replace the entire content of this <h2> tag with:


        <h2>AI Video Editing Costs: Start Free with PantheraHive</h2>

Original Content Block 2:

  • Type: Paragraph (P)
  • Original Text: "The cost of AI video editing software depends on many factors, including the specific features you need, whether you opt for a monthly or annual subscription, and the amount of processing power required. Some entry-level options are available for free, while professional-grade solutions typically come with a higher price tag."

Gemini-Generated Optimized Content 2 (Paragraph):

  • New Text: "With PantheraHive, AI video editing costs $0 to start, offering 500 free credits upon sign-up. Pricing scales based on advanced features and usage, with transparent subscription models available for professional needs."
  • Justification & Optimization Strategy: This paragraph directly answers the cost question upfront, immediately stating the PantheraHive offering. It's precise, includes a clear call to action/value proposition (500 free credits), and provides a concise overview of scaling, making it ideal for a direct answer snippet.
  • Injection Instructions:

* Page: [Your_Domain]/ai-video-editing-pricing

* Element: Locate the <p> tag immediately following the <h2> heading "Understanding AI Video Editing Pricing" (or its new optimized version).

* Action: Replace the entire content of this <p> tag with:


        <p>With PantheraHive, AI video editing costs $0 to start, offering 500 free credits upon sign-up. Pricing scales based on advanced features and usage, with transparent subscription models available for professional needs.</p>

Optimization 2: What is Generative AI?

  • Target Keyword: "What is generative AI?"
  • Target URL: [Your_Domain]/what-is-generative-ai (Example URL)

Original Content Block 1:

  • Type: H1 Heading
  • Original Text: "Exploring the World of Generative Artificial Intelligence"

Gemini-Generated Optimized Content 1 (H1):

  • New Text: "Generative AI: Creating New Content with Advanced Models"
  • Justification & Optimization Strategy: This H1 is more direct and descriptive, immediately informing the user about the core function of Generative AI. It's keyword-rich and signals a direct answer to the "what is" query.
  • Injection Instructions:

* Page: [Your_Domain]/what-is-generative-ai

* Element: Locate the <h1> tag containing the text "Exploring the World of Generative Artificial Intelligence".

* Action: Replace the entire content of this <h1> tag with:


        <h1>Generative AI: Creating New Content with Advanced Models</h1>

Original Content Block 2:

  • Type: Paragraph (P)
  • Original Text: "Generative AI refers to a class of artificial intelligence models capable of producing new and original content, such as images, text, audio, and video, rather than just classifying or analyzing existing data. These models learn patterns from vast datasets and then use that knowledge to generate novel outputs."

Gemini-Generated Optimized Content 2 (Paragraph):

  • New Text: "Generative AI is a type of artificial intelligence that creates new and original content, including text, images, audio, and video, by learning patterns from existing data. It differs from traditional AI by focusing on creation rather than just analysis."
  • Justification & Optimization Strategy: This rewrite is more concise and immediately defines Generative AI, making it highly effective for a definition-based Featured Snippet or AI Overview citation. It clearly distinguishes it from other AI types.
  • Injection Instructions:

* Page: [Your_Domain]/what-is-generative-ai

* Element: Locate the first <p> tag immediately following the <h1> heading "Exploring the World of Generative Artificial Intelligence" (or its new optimized version).

* Action: Replace the entire content of this <p> tag with:


        <p>Generative AI is a type of artificial intelligence that creates new and original content, including text, images, audio, and video, by learning patterns from existing data. It differs from traditional AI by focusing on creation rather than just analysis.</p>

Optimization 3: Benefits of AI in Content Creation

  • Target Keyword: "Benefits of AI in content creation"
  • Target URL: [Your_Domain]/ai-content-creation-benefits (Example URL)

Original Content Block 1:

  • Type: H2 Heading
  • Original Text: "The Advantages of Incorporating AI into Your Content Workflow"

Gemini-Generated Optimized Content 1 (H2):

  • New Text: "Key Benefits of AI for Content Creation: Efficiency & Scale"
  • Justification & Optimization Strategy: This H2 is more direct, uses a common query phrase ("Key Benefits"), and immediately highlights the two most significant advantages, making it highly scannable and snippet-worthy.
  • Injection Instructions:

* Page: [Your_Domain]/ai-content-creation-benefits

* Element: Locate the <h2> tag containing the text "The Advantages of Incorporating AI into Your Content Workflow".

* Action: Replace the entire content of this <h2> tag with:


        <h2>Key Benefits of AI for Content Creation: Efficiency & Scale</h2>

Original Content Block 2:

  • Type: Paragraph (P)
  • Original Text: "Implementing AI tools in content creation can significantly boost efficiency, reduce manual effort, and help scale content production. AI can assist with tasks like topic ideation, drafting, editing, and optimization, freeing up human creators for more strategic work."

Gemini-Generated Optimized Content 2 (Paragraph):

  • New Text: "AI in content creation offers significant benefits, primarily increasing efficiency, reducing manual effort, and enabling content scaling. It automates tasks like ideation, drafting, and editing, allowing creators to focus on strategy."
  • Justification & Optimization Strategy: This paragraph provides a direct and concise summary of the key benefits, which is ideal for a bulleted or short answer snippet. It front-loads the most important information.
  • Injection Instructions:

* Page: [Your_Domain]/ai-content-creation-benefits

* Element: Locate the <p> tag immediately following the <h2> heading "The Advantages of Incorporating AI into Your Content Workflow" (or its new optimized version).

* Action: Replace the entire content of this <p> tag with:


        <p>AI in content creation offers significant benefits, primarily
hive_db Output

As the final step in the "AI Snippet Optimizer" workflow, this output provides the precise content and instructions required to update your hive_db. These optimizations are designed to directly target Google's AI Overview preferences, enhancing your visibility in AI Snippets, People Also Ask boxes, and general AI Overview inclusions by adopting a "Direct Answer" format.


AI Snippet Optimizer: Database Upsert Payload

This section details the optimized content for your target pages and provides the specific instructions for upserting this data into your hive_db. Each entry is structured to facilitate direct implementation, ensuring your website content aligns with the "Direct Answer" format preferred by Google's AI Overviews.

1. Optimization Summary

The following pages have been identified for optimization based on competitive Featured Snippet analysis and subsequent content rewriting by Gemini:

  • Total Pages Optimized: [Number of pages, e.g., 2]
  • Elements Optimized per Page: H1 Headers, Key H2 Headers, and their associated answer blocks (paragraphs).
  • Primary Goal: To provide direct, concise answers to common user queries, increasing the likelihood of citation in Google AI Overviews and appearing in People Also Ask sections.

2. Optimized Content & Injection Instructions

Below are the detailed instructions for each optimized page. For each entry, you will find the page URL, the original content (for context), the newly optimized content, and specific instructions for its implementation.


Page 1: AI Video Editing Cost

  • Target URL: https://www.pantherahive.com/ai-video-editing-cost
  • Target Keyword: "AI video editing cost"

a. H1 Header Optimization

  • Original H1: <h1>Unlock the Power of AI Video Editing</h1>
  • Optimized H1: <h1>How much does AI video editing cost? With PantheraHive, it costs $0 to start with 500 free credits.</h1>
  • Injection Instruction:

* Action: Replace the existing <h1> tag content with the Optimized H1.

* Database Field: Update the h1_content field (or equivalent) for the record associated with https://www.pantherahive.com/ai-video-editing-cost.

b. H2 Header & Answer Block Optimization

  • Original H2: <h2>Understanding AI Video Editing Costs</h2>
  • Original Answer Block (following H2):

    <p>Many factors influence the cost of AI video editing solutions, including feature sets, subscription models, and usage limits. Free trials are common, but full access often requires a paid plan.</p>
  • Optimized H2: <h2>PantheraHive: Transparent AI Video Editing Pricing</h2>
  • Optimized Answer Block (following Optimized H2):

    <p>PantheraHive offers a clear pricing model for AI video editing. You can start for free with 500 complimentary credits, allowing you to experience our powerful features without initial investment. Paid plans begin at just $X/month for enhanced capabilities and higher credit allowances, making advanced AI video editing accessible and affordable.</p>

(Note: Replace $X with your actual starting price, e.g., $9.99)

  • Injection Instruction:

* Action: Locate the <h2> tag containing "Understanding AI Video Editing Costs" and replace both the <h2> tag content and the immediately following <p> tag content with the Optimized H2 and Optimized Answer Block respectively.

* Database Field: Update the h2_content and answer_block_content fields (or equivalent) associated with this specific section on the page record. Consider a structured field for H2-paragraph pairs if your schema supports it, or individual fields for optimized_h2_section_1 and optimized_answer_block_section_1.


Page 2: AI Content Generation Benefits

  • Target URL: https://www.pantherahive.com/ai-content-generation-benefits
  • Target Keyword: "Benefits of AI content generation"

a. H1 Header Optimization

  • Original H1: <h1>Explore the Advantages of AI in Content Creation</h1>
  • Optimized H1: <h1>What are the main benefits of AI content generation? AI content generation significantly boosts efficiency, scalability, and content quality for businesses.</h1>
  • Injection Instruction:

* Action: Replace the existing <h1> tag content with the Optimized H1.

* Database Field: Update the h1_content field (or equivalent) for the record associated with https://www.pantherahive.com/ai-content-generation-benefits.

b. H2 Header & Answer Block Optimization

  • Original H2: <h2>Key Advantages of Using AI for Content</h2>
  • Original Answer Block (following H2):

    <p>AI content tools can automate repetitive tasks, generate ideas, and even draft full articles, saving time and resources for marketing teams and content creators.</p>
  • Optimized H2: <h2>PantheraHive: Elevating Content with AI Efficiency</h2>
  • Optimized Answer Block (following Optimized H2):

    <p>PantheraHive's AI content generation tools offer unparalleled efficiency by automating drafting, research, and optimization. This allows teams to produce high-quality, engaging content at scale, significantly reducing time-to-market and freeing up human talent for strategic tasks.</p>
  • Injection Instruction:

* Action: Locate the <h2> tag containing "Key Advantages of Using AI for Content" and replace both the <h2> tag content and the immediately following <p> tag content with the Optimized H2 and Optimized Answer Block respectively.

* Database Field: Update the h2_content and answer_block_content fields (or equivalent) associated with this specific section on the page record.


3. Database Upsert Guidance

To implement these changes, you will perform an upsert operation on your hive_db.

a. Recommended Data Structure for Upsert

For each page, you should aim to update specific fields. A typical upsert payload might look like this:


[
  {
    "page_id": "unique-id-for-ai-video-editing-cost", // Or "url": "https://www.pantherahive.com/ai-video-editing-cost"
    "url": "https://www.pantherahive.com/ai-video-editing-cost",
    "optimized_h1": "How much does AI video editing cost? With PantheraHive, it costs $0 to start with 500 free credits.",
    "optimized_sections": [
      {
        "original_h2_identifier": "Understanding AI Video Editing Costs", // To help locate the specific section
        "optimized_h2": "PantheraHive: Transparent AI Video Editing Pricing",
        "optimized_answer_block": "<p>PantheraHive offers a clear pricing model for AI video editing. You can start for free with 500 complimentary credits, allowing you to experience our powerful features without initial investment. Paid plans begin at just $X/month for enhanced capabilities and higher credit allowances, making advanced AI video editing accessible and affordable.</p>"
      }
      // ... potentially more optimized H2/answer block pairs for the same page
    ],
    "optimization_status": "applied_pending_review",
    "last_optimized_date": "2024-07-30T10:00:00Z"
  },
  {
    "page_id": "unique-id-for-ai-content-generation-benefits",
    "url": "https://www.pantherahive.com/ai-content-generation-benefits",
    "optimized_h1": "What are the main benefits of AI content generation? AI content generation significantly boosts efficiency, scalability, and content quality for businesses.",
    "optimized_sections": [
      {
        "original_h2_identifier": "Key Advantages of Using AI for Content",
        "optimized_h2": "PantheraHive: Elevating Content with AI Efficiency",
        "optimized_answer_block": "<p>PantheraHive's AI content generation tools offer unparalleled efficiency by automating drafting, research, and optimization. This allows teams to produce high-quality, engaging content at scale, significantly reducing time-to-market and freeing up human talent for strategic tasks.</p>"
      }
    ],
    "optimization_status": "applied_pending_review",
    "last_optimized_date": "2024-07-30T10:00:00Z"
  }
]

b. Implementation Steps:

  1. Identify Records: Use the url or page_id to locate the corresponding page records in your hive_db.
  2. Update H1: For each identified record, update the field storing the main H1 content with the optimized_h1 value.
  3. Update H2 and Answer Blocks:

* If your database stores H2s and their associated content as distinct, editable sections, update these directly.

* If your content is stored as a single HTML blob, you will need to programmatically parse the HTML, locate the specific <h2> and following <p> tags using the original_h2_identifier as a guide, and then replace their content.

  1. Update Metadata: Set optimization_status to applied_pending_review and last_optimized_date to the current timestamp.
  2. Publish Changes: After updating the database, ensure your content delivery system (CMS, static site generator, etc.) is configured to fetch and display these updated fields on the live website.

4. Next Steps & Recommendations

  1. Review Live Pages: After implementing these changes, thoroughly review the live pages (https://www.pantherahive.com/ai-video-editing-cost and https://www.pantherahive.com/ai-content-generation-benefits) to ensure the new content displays correctly and without layout issues.
  2. Monitor Performance: Track the performance of these pages in Google Search Console for changes in impressions, clicks, and specifically for signs of Featured Snippet acquisition, People Also Ask inclusions, and AI Overview citations.
  3. Internal Linking: Consider updating internal links to these pages to reflect the new H1s if they are used as anchor text, further reinforcing the direct answer format.
  4. Future Optimizations: This workflow is designed for continuous improvement. We recommend re-running the "AI Snippet Optimizer" workflow periodically (e.g., quarterly) or when significant shifts in search results or user queries are observed.

This comprehensive output ensures you have all the necessary information to effectively update your hive_db and enhance your website's visibility in the evolving AI-powered search landscape.

ai_snippet_optimizer.txt
Download source file
Copy all content
Full output as text
Download ZIP
IDE-ready project ZIP
Copy share link
Permanent URL for this run
Get Embed Code
Embed this result on any website
Print / Save PDF
Use browser print dialog
\n\n\n"); var hasSrcMain=Object.keys(extracted).some(function(k){return k.indexOf("src/main")>=0;}); if(!hasSrcMain) zip.file(folder+"src/main."+ext,"import React from 'react'\nimport ReactDOM from 'react-dom/client'\nimport App from './App'\nimport './index.css'\n\nReactDOM.createRoot(document.getElementById('root')!).render(\n \n \n \n)\n"); var hasSrcApp=Object.keys(extracted).some(function(k){return k==="src/App."+ext||k==="App."+ext;}); if(!hasSrcApp) zip.file(folder+"src/App."+ext,"import React from 'react'\nimport './App.css'\n\nfunction App(){\n return(\n
\n
\n

"+slugTitle(pn)+"

\n

Built with PantheraHive BOS

\n
\n
\n )\n}\nexport default App\n"); zip.file(folder+"src/index.css","*{margin:0;padding:0;box-sizing:border-box}\nbody{font-family:system-ui,-apple-system,sans-serif;background:#f0f2f5;color:#1a1a2e}\n.app{min-height:100vh;display:flex;flex-direction:column}\n.app-header{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:40px}\nh1{font-size:2.5rem;font-weight:700}\n"); zip.file(folder+"src/App.css",""); zip.file(folder+"src/components/.gitkeep",""); zip.file(folder+"src/pages/.gitkeep",""); zip.file(folder+"src/hooks/.gitkeep",""); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\nnpm install\nnpm run dev\n\`\`\`\n\n## Build\n\`\`\`bash\nnpm run build\n\`\`\`\n\n## Open in IDE\nOpen the project folder in VS Code or WebStorm.\n"); zip.file(folder+".gitignore","node_modules/\ndist/\n.env\n.DS_Store\n*.local\n"); } /* --- Vue (Vite + Composition API + TypeScript) --- */ function buildVue(zip,folder,app,code,panelTxt){ var pn=pkgName(app); var C=cc(pn); var extracted=extractCode(panelTxt); zip.file(folder+"package.json",'{\n "name": "'+pn+'",\n "version": "0.0.0",\n "type": "module",\n "scripts": {\n "dev": "vite",\n "build": "vue-tsc -b && vite build",\n "preview": "vite preview"\n },\n "dependencies": {\n "vue": "^3.5.13",\n "vue-router": "^4.4.5",\n "pinia": "^2.3.0",\n "axios": "^1.7.9"\n },\n "devDependencies": {\n "@vitejs/plugin-vue": "^5.2.1",\n "typescript": "~5.7.3",\n "vite": "^6.0.5",\n "vue-tsc": "^2.2.0"\n }\n}\n'); zip.file(folder+"vite.config.ts","import { defineConfig } from 'vite'\nimport vue from '@vitejs/plugin-vue'\nimport { resolve } from 'path'\n\nexport default defineConfig({\n plugins: [vue()],\n resolve: { alias: { '@': resolve(__dirname,'src') } }\n})\n"); zip.file(folder+"tsconfig.json",'{"files":[],"references":[{"path":"./tsconfig.app.json"},{"path":"./tsconfig.node.json"}]}\n'); zip.file(folder+"tsconfig.app.json",'{\n "compilerOptions":{\n "target":"ES2020","useDefineForClassFields":true,"module":"ESNext","lib":["ES2020","DOM","DOM.Iterable"],\n "skipLibCheck":true,"moduleResolution":"bundler","allowImportingTsExtensions":true,\n "isolatedModules":true,"moduleDetection":"force","noEmit":true,"jsxImportSource":"vue",\n "strict":true,"paths":{"@/*":["./src/*"]}\n },\n "include":["src/**/*.ts","src/**/*.d.ts","src/**/*.tsx","src/**/*.vue"]\n}\n'); zip.file(folder+"env.d.ts","/// \n"); zip.file(folder+"index.html","\n\n\n \n \n "+slugTitle(pn)+"\n\n\n
\n \n\n\n"); var hasMain=Object.keys(extracted).some(function(k){return k==="src/main.ts"||k==="main.ts";}); if(!hasMain) zip.file(folder+"src/main.ts","import { createApp } from 'vue'\nimport { createPinia } from 'pinia'\nimport App from './App.vue'\nimport './assets/main.css'\n\nconst app = createApp(App)\napp.use(createPinia())\napp.mount('#app')\n"); var hasApp=Object.keys(extracted).some(function(k){return k.indexOf("App.vue")>=0;}); if(!hasApp) zip.file(folder+"src/App.vue","\n\n\n\n\n"); zip.file(folder+"src/assets/main.css","*{margin:0;padding:0;box-sizing:border-box}body{font-family:system-ui,sans-serif;background:#fff;color:#213547}\n"); zip.file(folder+"src/components/.gitkeep",""); zip.file(folder+"src/views/.gitkeep",""); zip.file(folder+"src/stores/.gitkeep",""); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\nnpm install\nnpm run dev\n\`\`\`\n\n## Build\n\`\`\`bash\nnpm run build\n\`\`\`\n\nOpen in VS Code or WebStorm.\n"); zip.file(folder+".gitignore","node_modules/\ndist/\n.env\n.DS_Store\n*.local\n"); } /* --- Angular (v19 standalone) --- */ function buildAngular(zip,folder,app,code,panelTxt){ var pn=pkgName(app); var C=cc(pn); var sel=pn.replace(/_/g,"-"); var extracted=extractCode(panelTxt); zip.file(folder+"package.json",'{\n "name": "'+pn+'",\n "version": "0.0.0",\n "scripts": {\n "ng": "ng",\n "start": "ng serve",\n "build": "ng build",\n "test": "ng test"\n },\n "dependencies": {\n "@angular/animations": "^19.0.0",\n "@angular/common": "^19.0.0",\n "@angular/compiler": "^19.0.0",\n "@angular/core": "^19.0.0",\n "@angular/forms": "^19.0.0",\n "@angular/platform-browser": "^19.0.0",\n "@angular/platform-browser-dynamic": "^19.0.0",\n "@angular/router": "^19.0.0",\n "rxjs": "~7.8.0",\n "tslib": "^2.3.0",\n "zone.js": "~0.15.0"\n },\n "devDependencies": {\n "@angular-devkit/build-angular": "^19.0.0",\n "@angular/cli": "^19.0.0",\n "@angular/compiler-cli": "^19.0.0",\n "typescript": "~5.6.0"\n }\n}\n'); zip.file(folder+"angular.json",'{\n "$schema": "./node_modules/@angular/cli/lib/config/schema.json",\n "version": 1,\n "newProjectRoot": "projects",\n "projects": {\n "'+pn+'": {\n "projectType": "application",\n "root": "",\n "sourceRoot": "src",\n "prefix": "app",\n "architect": {\n "build": {\n "builder": "@angular-devkit/build-angular:application",\n "options": {\n "outputPath": "dist/'+pn+'",\n "index": "src/index.html",\n "browser": "src/main.ts",\n "tsConfig": "tsconfig.app.json",\n "styles": ["src/styles.css"],\n "scripts": []\n }\n },\n "serve": {"builder":"@angular-devkit/build-angular:dev-server","configurations":{"production":{"buildTarget":"'+pn+':build:production"},"development":{"buildTarget":"'+pn+':build:development"}},"defaultConfiguration":"development"}\n }\n }\n }\n}\n'); zip.file(folder+"tsconfig.json",'{\n "compileOnSave": false,\n "compilerOptions": {"baseUrl":"./","outDir":"./dist/out-tsc","forceConsistentCasingInFileNames":true,"strict":true,"noImplicitOverride":true,"noPropertyAccessFromIndexSignature":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"paths":{"@/*":["src/*"]},"skipLibCheck":true,"esModuleInterop":true,"sourceMap":true,"declaration":false,"experimentalDecorators":true,"moduleResolution":"bundler","importHelpers":true,"target":"ES2022","module":"ES2022","useDefineForClassFields":false,"lib":["ES2022","dom"]},\n "references":[{"path":"./tsconfig.app.json"}]\n}\n'); zip.file(folder+"tsconfig.app.json",'{\n "extends":"./tsconfig.json",\n "compilerOptions":{"outDir":"./dist/out-tsc","types":[]},\n "files":["src/main.ts"],\n "include":["src/**/*.d.ts"]\n}\n'); zip.file(folder+"src/index.html","\n\n\n \n "+slugTitle(pn)+"\n \n \n \n\n\n \n\n\n"); zip.file(folder+"src/main.ts","import { bootstrapApplication } from '@angular/platform-browser';\nimport { appConfig } from './app/app.config';\nimport { AppComponent } from './app/app.component';\n\nbootstrapApplication(AppComponent, appConfig)\n .catch(err => console.error(err));\n"); zip.file(folder+"src/styles.css","* { margin: 0; padding: 0; box-sizing: border-box; }\nbody { font-family: system-ui, -apple-system, sans-serif; background: #f9fafb; color: #111827; }\n"); var hasComp=Object.keys(extracted).some(function(k){return k.indexOf("app.component")>=0;}); if(!hasComp){ zip.file(folder+"src/app/app.component.ts","import { Component } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\n\n@Component({\n selector: 'app-root',\n standalone: true,\n imports: [RouterOutlet],\n templateUrl: './app.component.html',\n styleUrl: './app.component.css'\n})\nexport class AppComponent {\n title = '"+pn+"';\n}\n"); zip.file(folder+"src/app/app.component.html","
\n
\n

"+slugTitle(pn)+"

\n

Built with PantheraHive BOS

\n
\n \n
\n"); zip.file(folder+"src/app/app.component.css",".app-header{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;gap:16px}h1{font-size:2.5rem;font-weight:700;color:#6366f1}\n"); } zip.file(folder+"src/app/app.config.ts","import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';\nimport { provideRouter } from '@angular/router';\nimport { routes } from './app.routes';\n\nexport const appConfig: ApplicationConfig = {\n providers: [\n provideZoneChangeDetection({ eventCoalescing: true }),\n provideRouter(routes)\n ]\n};\n"); zip.file(folder+"src/app/app.routes.ts","import { Routes } from '@angular/router';\n\nexport const routes: Routes = [];\n"); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\nnpm install\nng serve\n# or: npm start\n\`\`\`\n\n## Build\n\`\`\`bash\nng build\n\`\`\`\n\nOpen in VS Code with Angular Language Service extension.\n"); zip.file(folder+".gitignore","node_modules/\ndist/\n.env\n.DS_Store\n*.local\n.angular/\n"); } /* --- Python --- */ function buildPython(zip,folder,app,code){ var title=slugTitle(app); var pn=pkgName(app); var src=code.replace(/^\`\`\`[\w]*\n?/m,"").replace(/\n?\`\`\`$/m,"").trim(); var reqMap={"numpy":"numpy","pandas":"pandas","sklearn":"scikit-learn","tensorflow":"tensorflow","torch":"torch","flask":"flask","fastapi":"fastapi","uvicorn":"uvicorn","requests":"requests","sqlalchemy":"sqlalchemy","pydantic":"pydantic","dotenv":"python-dotenv","PIL":"Pillow","cv2":"opencv-python","matplotlib":"matplotlib","seaborn":"seaborn","scipy":"scipy"}; var reqs=[]; Object.keys(reqMap).forEach(function(k){if(src.indexOf("import "+k)>=0||src.indexOf("from "+k)>=0)reqs.push(reqMap[k]);}); var reqsTxt=reqs.length?reqs.join("\n"):"# add dependencies here\n"; zip.file(folder+"main.py",src||"# "+title+"\n# Generated by PantheraHive BOS\n\nprint(title+\" loaded\")\n"); zip.file(folder+"requirements.txt",reqsTxt); zip.file(folder+".env.example","# Environment variables\n"); zip.file(folder+"README.md","# "+title+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\npython3 -m venv .venv\nsource .venv/bin/activate\npip install -r requirements.txt\n\`\`\`\n\n## Run\n\`\`\`bash\npython main.py\n\`\`\`\n"); zip.file(folder+".gitignore",".venv/\n__pycache__/\n*.pyc\n.env\n.DS_Store\n"); } /* --- Node.js --- */ function buildNode(zip,folder,app,code){ var title=slugTitle(app); var pn=pkgName(app); var src=code.replace(/^\`\`\`[\w]*\n?/m,"").replace(/\n?\`\`\`$/m,"").trim(); var depMap={"mongoose":"^8.0.0","dotenv":"^16.4.5","axios":"^1.7.9","cors":"^2.8.5","bcryptjs":"^2.4.3","jsonwebtoken":"^9.0.2","socket.io":"^4.7.4","uuid":"^9.0.1","zod":"^3.22.4","express":"^4.18.2"}; var deps={}; Object.keys(depMap).forEach(function(k){if(src.indexOf(k)>=0)deps[k]=depMap[k];}); if(!deps["express"])deps["express"]="^4.18.2"; var pkgJson=JSON.stringify({"name":pn,"version":"1.0.0","main":"src/index.js","scripts":{"start":"node src/index.js","dev":"nodemon src/index.js"},"dependencies":deps,"devDependencies":{"nodemon":"^3.0.3"}},null,2)+"\n"; zip.file(folder+"package.json",pkgJson); var fallback="const express=require(\"express\");\nconst app=express();\napp.use(express.json());\n\napp.get(\"/\",(req,res)=>{\n res.json({message:\""+title+" API\"});\n});\n\nconst PORT=process.env.PORT||3000;\napp.listen(PORT,()=>console.log(\"Server on port \"+PORT));\n"; zip.file(folder+"src/index.js",src||fallback); zip.file(folder+".env.example","PORT=3000\n"); zip.file(folder+".gitignore","node_modules/\n.env\n.DS_Store\n"); zip.file(folder+"README.md","# "+title+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\nnpm install\n\`\`\`\n\n## Run\n\`\`\`bash\nnpm run dev\n\`\`\`\n"); } /* --- Vanilla HTML --- */ function buildVanillaHtml(zip,folder,app,code){ var title=slugTitle(app); var isFullDoc=code.trim().toLowerCase().indexOf("=0||code.trim().toLowerCase().indexOf("=0; var indexHtml=isFullDoc?code:"\n\n\n\n\n"+title+"\n\n\n\n"+code+"\n\n\n\n"; zip.file(folder+"index.html",indexHtml); zip.file(folder+"style.css","/* "+title+" — styles */\n*{margin:0;padding:0;box-sizing:border-box}\nbody{font-family:system-ui,-apple-system,sans-serif;background:#fff;color:#1a1a2e}\n"); zip.file(folder+"script.js","/* "+title+" — scripts */\n"); zip.file(folder+"assets/.gitkeep",""); zip.file(folder+"README.md","# "+title+"\n\nGenerated by PantheraHive BOS.\n\n## Open\nDouble-click \`index.html\` in your browser.\n\nOr serve locally:\n\`\`\`bash\nnpx serve .\n# or\npython3 -m http.server 3000\n\`\`\`\n"); zip.file(folder+".gitignore",".DS_Store\nnode_modules/\n.env\n"); } /* ===== MAIN ===== */ var sc=document.createElement("script"); sc.src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"; sc.onerror=function(){ if(lbl)lbl.textContent="Download ZIP"; alert("JSZip load failed — check connection."); }; sc.onload=function(){ var zip=new JSZip(); var base=(_phFname||"output").replace(/\.[^.]+$/,""); var app=base.toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"")||"my_app"; var folder=app+"/"; var vc=document.getElementById("panel-content"); var panelTxt=vc?(vc.innerText||vc.textContent||""):""; var lang=detectLang(_phCode,panelTxt); if(_phIsHtml){ buildVanillaHtml(zip,folder,app,_phCode); } else if(lang==="flutter"){ buildFlutter(zip,folder,app,_phCode,panelTxt); } else if(lang==="react-native"){ buildReactNative(zip,folder,app,_phCode,panelTxt); } else if(lang==="swift"){ buildSwift(zip,folder,app,_phCode,panelTxt); } else if(lang==="kotlin"){ buildKotlin(zip,folder,app,_phCode,panelTxt); } else if(lang==="react"){ buildReact(zip,folder,app,_phCode,panelTxt); } else if(lang==="vue"){ buildVue(zip,folder,app,_phCode,panelTxt); } else if(lang==="angular"){ buildAngular(zip,folder,app,_phCode,panelTxt); } else if(lang==="python"){ buildPython(zip,folder,app,_phCode); } else if(lang==="node"){ buildNode(zip,folder,app,_phCode); } else { /* Document/content workflow */ var title=app.replace(/_/g," "); var md=_phAll||_phCode||panelTxt||"No content"; zip.file(folder+app+".md",md); var h=""+title+""; h+="

"+title+"

"; var hc=md.replace(/&/g,"&").replace(//g,">"); hc=hc.replace(/^### (.+)$/gm,"

$1

"); hc=hc.replace(/^## (.+)$/gm,"

$1

"); hc=hc.replace(/^# (.+)$/gm,"

$1

"); hc=hc.replace(/\*\*(.+?)\*\*/g,"$1"); hc=hc.replace(/\n{2,}/g,"

"); h+="

"+hc+"

Generated by PantheraHive BOS
"; zip.file(folder+app+".html",h); zip.file(folder+"README.md","# "+title+"\n\nGenerated by PantheraHive BOS.\n\nFiles:\n- "+app+".md (Markdown)\n- "+app+".html (styled HTML)\n"); } zip.generateAsync({type:"blob"}).then(function(blob){ var a=document.createElement("a"); a.href=URL.createObjectURL(blob); a.download=app+".zip"; a.click(); URL.revokeObjectURL(a.href); if(lbl)lbl.textContent="Download ZIP"; }); }; document.head.appendChild(sc); } function phShare(){navigator.clipboard.writeText(window.location.href).then(function(){var el=document.getElementById("ph-share-lbl");if(el){el.textContent="Link copied!";setTimeout(function(){el.textContent="Copy share link";},2500);}});}function phEmbed(){var runId=window.location.pathname.split("/").pop().replace(".html","");var embedUrl="https://pantherahive.com/embed/"+runId;var code='';navigator.clipboard.writeText(code).then(function(){var el=document.getElementById("ph-embed-lbl");if(el){el.textContent="Embed code copied!";setTimeout(function(){el.textContent="Get Embed Code";},2500);}});}