Influencer Campaign Planner
Run ID: 69cb22b461b1021a29a8641c2026-03-31Marketing
PantheraHive BOS
BOS Dashboard

Plan an influencer marketing campaign with ideal influencer profiles, outreach templates, contract terms, content guidelines, and ROI tracking framework.

Step 1: Audience Analysis for Influencer Campaign Planning

This foundational step focuses on deeply understanding your target audience. A comprehensive audience analysis is critical for identifying the right influencers, crafting resonant messages, and selecting the most effective platforms to maximize your campaign's reach and ROI.


1. Executive Summary: Target Audience Overview

Our preliminary analysis identifies the core segments for your influencer campaign. While specific product/service details are not yet provided, this framework outlines how a detailed audience profile is constructed to inform strategic decisions.

Primary Goal: To define the ideal customer profile(s) to ensure influencer selection and content strategy are precisely aligned with their preferences, behaviors, and needs.

Key Deliverables from this Analysis:

  • Detailed demographic and psychographic profiles.
  • Insights into media consumption and platform usage.
  • Understanding of pain points, motivations, and purchasing triggers.
  • Recommendations for influencer types and content themes.

2. Detailed Audience Demographics

Understanding who your audience is provides the foundational data for platform selection and initial influencer vetting.

  • Age Range:

* Insight: Younger demographics (Gen Z, Millennials) are often early adopters of new social platforms and highly influenced by digital content creators. Older demographics (Gen X, Boomers) might prefer more traditional platforms or specific niche content.

* Trend: The average age of users across platforms is diversifying. While TikTok skews younger, Instagram, Facebook, and YouTube have broad age distributions.

* Example (Hypothetical): Primarily 25-40 years old. This suggests a focus on platforms like Instagram, YouTube, and potentially TikTok (for educational/aspirational content), with a secondary focus on Pinterest or LinkedIn depending on the product.

  • Gender Distribution:

* Insight: Gender can influence product interest, content preferences, and preferred communication styles.

* Trend: While many products appeal to all genders, some categories (e.g., beauty, gaming, specific fashion niches) may have a predominant gender interest.

* Example (Hypothetical): 60% Female, 40% Male. This might suggest a slight lean towards influencers who resonate more with female audiences, but still ensure inclusion for male audiences.

  • Geographic Location:

* Insight: Crucial for localizing campaigns, adhering to regional trends, and targeting specific markets. Language and cultural nuances are vital.

* Trend: Hyper-local targeting is increasingly effective, especially for brick-and-mortar businesses or regionally specific products.

* Example (Hypothetical): Predominantly urban and suburban areas in the US (California, New York, Texas, Florida), with growing interest in key European markets (UK, Germany, France). This implies a need for US-based influencers primarily, with potential for international expansion.

  • Income Level & Education:

* Insight: Dictates purchasing power, brand perception, and the type of messaging that resonates (e.g., luxury vs. value-driven). Education can correlate with interest in complex or niche topics.

* Trend: Audiences with higher disposable income often seek premium or aspirational products, while value-conscious segments respond to affordability and utility.

* Example (Hypothetical): Middle to Upper-Middle Income ($60k-$150k household income), Bachelor's degree or higher. This suggests an audience that values quality, innovation, and perhaps sustainability, and is willing to invest in solutions that improve their life or status.

  • Occupation/Industry:

* Insight: Relevant for B2B campaigns or products targeting specific professional groups.

* Example (Hypothetical): Young professionals, tech workers, creative industries. This informs the potential for professional-oriented platforms like LinkedIn or thought leadership content on YouTube.


3. Detailed Audience Psychographics & Interests

Understanding why your audience makes decisions and what truly matters to them is paramount for authentic connection.

  • Lifestyle & Hobbies:

* Insight: Reveals what they do in their free time, which can align with product usage or content themes.

* Trend: Audiences are increasingly looking for content that aligns with their personal passions and values (e.g., wellness, outdoor activities, DIY, sustainable living).

* Example (Hypothetical): Active lifestyle, health-conscious, interested in personal development, travel, technology, and home improvement. This broadens the scope for diverse content themes beyond direct product promotion.

  • Values & Beliefs:

* Insight: What principles guide their lives? Authenticity, sustainability, social responsibility, innovation, community?

* Trend: Consumers are more likely to support brands and influencers who share their values. Purpose-driven marketing resonates deeply.

* Example (Hypothetical): Value convenience, efficiency, quality, ethical sourcing, and community support. This means influencers should embody these values and messaging should highlight these aspects of the product/brand.

  • Attitudes & Personality Traits:

* Insight: Are they early adopters, skeptical, trend-followers, or opinion leaders? This affects how messages are received.

* Trend: Audiences appreciate transparency, relatability, and genuine enthusiasm from influencers.

* Example (Hypothetical): Open to trying new solutions, tech-savvy, aspirational, seeking efficiency and enjoyment in daily tasks. This suggests a receptive audience for innovative products and problem-solving content.


4. Behavioral Insights & Media Consumption

Knowing where your audience spends their time online and how they consume content is crucial for platform and content format selection.

  • Social Media Platform Usage:

* Insight: Different platforms cater to different content types and audience demographics.

* Trend: Multi-platform engagement is common, but primary platforms vary. Short-form video (TikTok, Reels) continues to dominate attention, while YouTube remains strong for longer-form educational/entertainment content.

* Example (Hypothetical):

* Primary: Instagram (Stories, Reels, Feed posts), YouTube (tutorials, reviews, vlogs), TikTok (short-form trends, educational snippets).

* Secondary: Pinterest (inspiration, product discovery), Facebook (community groups, targeted ads), LinkedIn (professional insights, B2B if applicable).

  • Content Preferences:

* Insight: What content formats do they engage with most? (Video, images, long-form articles, short-form text, live streams, podcasts).

* Trend: Authenticity and user-generated content (UGC) style videos perform exceptionally well. Educational, entertaining, and inspirational content drives engagement.

* Example (Hypothetical):

* Highly Preferred: Short-form video (tutorials, quick tips, lifestyle snippets), high-quality imagery (product showcases, aesthetic lifestyle shots), authentic storytelling.

* Preferred: In-depth product reviews, "how-to" guides, behind-the-scenes content, Q&A sessions.

  • Online Behavior & Purchase Journey:

* Insight: How do they research products? What influences their buying decisions? (Reviews, recommendations, expert opinions, peer validation).

* Trend: Social proof and peer recommendations (from influencers or friends) are powerful. Mobile-first shopping experiences are critical.

* Example (Hypothetical): Conduct online research (Google, Amazon), read reviews, seek recommendations from trusted sources (influencers, friends), compare prices. Influencers play a role in both discovery and consideration phases.


5. Needs, Pain Points, and Aspirations

Understanding the problem your product/service solves and the desires it fulfills is central to crafting compelling influencer messaging.

  • Needs:

* Insight: What essential functions or benefits does your audience seek?

* Example (Hypothetical): Efficiency, convenience, time-saving, improved well-being, problem-solving, aesthetic appeal, status.

  • Pain Points:

* Insight: What challenges or frustrations does your audience experience that your product can alleviate?

* Example (Hypothetical): Lack of time, complex processes, unreliable products, feeling overwhelmed, desire for better solutions, outdated tools.

  • Aspirations:

* Insight: What goals or ideals does your audience strive for? How can your product help them achieve these?

* Example (Hypothetical): A healthier lifestyle, greater productivity, financial freedom, personal growth, a more organized home, unique experiences, creative expression.


6. Influencer Affinity & Trust Factors

Identifying what makes an influencer trustworthy and engaging for your audience helps in selecting the right partners.

  • Types of Influencers They Follow:

* Insight: Do they prefer celebrity endorsements, expert opinions, relatable micro-influencers, or niche content creators?

* Trend: Authenticity and relatability often outweigh sheer follower count. Micro and nano-influencers often drive higher engagement due to perceived authenticity and stronger community ties.

* Example (Hypothetical): Primarily follow micro and mid-tier influencers (10k-100k followers) who are perceived as experts or highly relatable peers in their respective niches (e.g., tech reviewers, lifestyle bloggers, fitness coaches). Some engagement with macro-influencers for broader trends.

  • Trust Factors:

* Insight: What qualities make an influencer credible to this audience? (Authenticity, expertise, transparency, consistent values, genuine product use).

* Trend: Audiences are savvy; forced endorsements are easily spotted. Genuine enthusiasm and transparent disclosure are non-negotiable.

* Example (Hypothetical): Value genuine product integration, honest reviews (both pros and cons), clear disclosure of sponsored content, and influencers who clearly use and believe in the product themselves.


7. Recommendations for Influencer Campaign Strategy

Based on the detailed audience analysis, here are initial strategic recommendations:

  • Target Platforms: Prioritize Instagram (Reels, Stories, Feed), YouTube (Long-form reviews, tutorials), and TikTok (Short-form, trend-based content). Consider Pinterest for aspirational content and product discovery, and Facebook for community engagement/retargeting.
  • Influencer Tiers: Focus primarily on Micro-influencers (10k-100k) and Mid-tier influencers (100k-500k) for higher engagement rates and perceived authenticity. Supplement with a few Macro-influencers (500k-1M+) for broader reach and brand awareness, ensuring strong alignment.
  • Content Themes & Formats:

* Educational/Problem-Solving: "How-to" guides, tutorials, product demonstrations, before & after comparisons.

* Lifestyle Integration: Showcasing the product seamlessly integrated into daily routines, travel, hobbies.

* Authentic Storytelling: Personal anecdotes, genuine reviews, challenges overcome with the product.

* Inspirational/Aspirational: Content that aligns with their goals (e.g., achieving fitness goals, creating a beautiful home).

* Engagement-Driven: Q&A sessions, polls, interactive challenges, user-generated content features.

* Format Focus: Prioritize short-form video (Reels, TikTok), high-quality static images, and longer-form video (YouTube).

  • Messaging Angles:

* Emphasize convenience, efficiency, and quality.

* Highlight ethical sourcing or sustainability if applicable.

* Focus on how the product solves specific pain points and helps achieve aspirations.

* Use relatable language and avoid overly corporate jargon.

  • Call-to-Action (CTA) Strategy:

* Direct links (swipe up, link in bio).

* Exclusive discount codes tied to influencers.

* Promote specific landing pages for product information or purchase.

* Encourage comments, shares, and saves to drive engagement.


8. Next Steps

This comprehensive audience analysis provides a robust foundation. To move forward effectively with your "Influencer Campaign Planner" workflow:

  1. Product/Service Deep Dive: Provide specific details about the product or service you wish to promote. This will allow us to refine the audience analysis with concrete examples and tailor recommendations even further.
  2. Competitor Analysis (Optional but Recommended): Information on key competitors and their influencer strategies can provide valuable insights and identify potential gaps or opportunities.
  3. Campaign Goals & KPIs: Define your primary objectives for this campaign (e.g., brand awareness, lead generation, sales, website traffic, app downloads). This will inform the selection of influencers and the measurement framework.

gemini Output

Influencer Campaign Planner: Your Blueprint for Success

Welcome to your comprehensive Influencer Campaign Planner! This detailed guide provides all the essential components to launch, manage, and measure a highly effective influencer marketing campaign. From identifying the perfect partners to tracking your return on investment, we've got you covered.


1. Crafting Your Ideal Influencer Profile

Finding the right influencers is the cornerstone of a successful campaign. This section outlines the key characteristics to look for, ensuring alignment with your brand and campaign objectives.

Understanding Your Perfect Partner

Before outreach, define what makes an influencer an ideal fit. This goes beyond follower count and delves into authenticity, engagement, and audience relevance.

Key Profile Attributes:

  • Audience Demographics & Psychographics:

* Alignment: Does their audience match your target customer base in terms of age, gender, location, interests, income level, and online behavior?

* Niche Relevance: Are they genuinely interested in topics related to your product/service?

  • Niche & Content Category:

* Specificity: Do they operate within a content niche (e.g., beauty, tech, fitness, sustainable living, gaming) that naturally intersects with your brand?

* Content Quality: Do they consistently produce high-quality, engaging, and aesthetically pleasing content relevant to their niche?

  • Follower Tiers & Reach:

* Nano-Influencers (1k-10k followers): High engagement, strong community trust, often more affordable. Ideal for niche markets and authentic storytelling.

* Micro-Influencers (10k-100k followers): Excellent balance of reach and engagement, often specialized. Great for driving specific actions.

* Mid-Tier Influencers (100k-500k followers): Broader reach, still good engagement, can offer significant brand exposure.

* Macro-Influencers (500k-1M+ followers): Extensive reach, strong brand awareness drivers, but engagement may be lower, and costs higher.

* Mega-Influencers/Celebrities (1M+ followers): Maximum reach, significant brand awareness, but very high cost and potentially lower engagement percentage.

  • Engagement Rate (ER):

Benchmark: Aim for an ER of 2-5% or higher. (Calculated as: (Likes + Comments + Shares) / Followers 100).

* Authenticity Check: Look for genuine comments and interactions, not just likes. Avoid influencers with suspiciously high follower counts but low engagement.

  • Brand Alignment & Values:

* Authenticity: Does their personal brand and past content align with your brand's values, mission, and tone of voice?

* Past Collaborations: Review their history of sponsored content. Is it seamless and authentic, or does it feel forced?

* Brand Safety: Ensure their content is free from controversial or inappropriate material.

  • Platform Proficiency:

* Dominant Platforms: Which social media platforms are they most active and successful on (e.g., Instagram, TikTok, YouTube, Blogs, Pinterest, LinkedIn)?

* Content Format: Do they excel in formats relevant to your campaign (e.g., Reels, Stories, long-form video, blog posts)?


2. Professional Outreach Templates

Effective outreach is crucial for securing partnerships. These templates provide a professional and persuasive framework for initial contact and follow-up. Remember to personalize every message!

Initial Contact: Email/Direct Message Template

Subject: Collaboration Opportunity: [Your Brand Name] x [Influencer's Name/Handle]

Hi [Influencer's Name],

My name is [Your Name] and I'm the [Your Title] at [Your Brand Name]. I've been following your content on [Platform, e.g., Instagram] for a while now, and I'm consistently impressed by [mention something specific you admire: e.g., "your unique approach to sustainable fashion," or "your engaging product reviews," or "your incredible photography style"].

At [Your Brand Name], we [briefly describe what your brand does and its core mission, e.g., "create innovative eco-friendly skincare products," or "empower small businesses with intuitive software"]. We're currently planning an exciting campaign around [Campaign Theme/Product, e.g., "our new line of vegan lipsticks," or "the launch of our productivity app"], and we immediately thought of you.

We believe your [mention specific content style, audience, or values, e.g., "authentic voice and engaged audience interested in clean beauty"] would be a perfect fit to introduce [Your Brand Name/Product] to a wider audience. Your ability to [specific skill, e.g., "tell compelling stories," or "create visually stunning tutorials"] aligns perfectly with our vision for this campaign.

Would you be open to a brief call next week to discuss this potential collaboration in more detail? We'd love to share more about our campaign vision and explore how we can create something impactful together.

Looking forward to hearing from you.

Best regards,

[Your Name]

[Your Title]

[Your Brand Name]

[Your Website Link]

[Your Social Media Link (Optional)]


Follow-Up Email Template

Subject: Following Up: Collaboration Opportunity with [Your Brand Name]

Hi [Influencer's Name],

Hope you're having a great week!

I'm just following up on my previous email regarding a potential collaboration between [Your Brand Name] and you. We're truly excited about the possibility of working together, given your [reiterate key reason, e.g., "passion for sustainable living" or "expertise in home decor"].

We're confident that this partnership would not only introduce our [Product/Service] to a highly relevant audience but also provide a valuable opportunity for you to [mention influencer benefit, e.g., "create unique content," or "connect with a new brand aligned with your values"].

If you're interested, please let me know a good time for a quick 15-minute chat. Alternatively, if this isn't the right time, we completely understand.

Thanks again for your time and consideration.

Best,

[Your Name]

[Your Brand Name]


3. Essential Contract Terms for Influencer Partnerships

A clear, comprehensive contract protects both your brand and the influencer, ensuring a smooth and successful collaboration. These are the critical terms to include.

Key Clauses for Your Influencer Agreement

  • Scope of Work (SOW):

* Deliverables: Specific content types (e.g., 1 Instagram feed post, 3 Instagram Stories, 1 TikTok video, 1 blog post).

* Platforms: Where content will be posted (e.g., Instagram, TikTok, YouTube, personal blog).

* Content Details: Required elements (e.g., product mentions, specific hashtags, calls to action, links).

* Number of Revisions: How many rounds of content review are allowed.

  • Payment Terms:

* Compensation: Agreed-upon fee (flat fee, per deliverable, commission-based, product-only).

* Payment Schedule: When and how payment will be made (e.g., 50% upfront, 50% upon content approval; net 30 days after campaign completion).

* Payment Method: (e.g., bank transfer, PayPal).

* Performance Bonuses (Optional): Incentives for exceeding specific KPIs.

  • Content Rights & Usage:

* Ownership: Who owns the content created? (Typically, the influencer retains ownership, but grants usage rights to the brand).

* Usage Rights: Specify how and where the brand can repurpose, repost, or use the content (e.g., on brand's social media, website, paid ads, for how long).

* Exclusivity: If the brand requires exclusive rights to the content or the influencer's services within a certain product category for a specified period.

  • Disclosure Requirements:

* Legal Compliance: Mandatory inclusion of clear disclosures (e.g., #ad, #sponsored, #partner) as per FTC (US), ASA (UK), or local advertising standards.

* Placement: Where disclosures must appear (e.g., visible in the first line of the caption, verbally in video, clearly marked).

  • Content Approval Process:

* Submission Deadlines: Dates for draft content submission.

* Review Period: How long the brand has to review and provide feedback.

* Revision Process: How feedback will be communicated and incorporated.

* Final Approval: Brand's final sign-off before content goes live.

  • Timeline & Deadlines:

* Key Dates: Dates for product receipt, content creation, submission for approval, and live posting.

* Penalties: Consequences for missed deadlines (if any).

  • Exclusivity Clause:

* Competitor Restrictions: Prohibition from promoting competing brands/products during the campaign period and for a specified time afterward.

* Duration: Length of the exclusivity period.

  • Termination Clause:

* Conditions: Grounds for either party to terminate the agreement (e.g., breach of contract, failure to meet deadlines, inappropriate conduct).

* Notice Period: Required notice for termination.

* Consequences: What happens to payment and content rights upon termination.

  • Confidentiality:

* Non-Disclosure: Agreement to keep campaign details, product information, and compensation confidential.

  • Indemnification:

* Protection: Clauses protecting both parties from liability arising from third-party claims due to content or actions.

  • Governing Law:

* Jurisdiction: Which state or country's laws will govern the contract.


4. Comprehensive Content Guidelines

Clear content guidelines empower influencers to create authentic, on-brand content that resonates with their audience while meeting your campaign objectives.

Ensuring On-Brand, Engaging Content

Provide influencers with a detailed brief that covers all aspects of content creation.

Essential Content Guidelines:

  • Campaign Objectives & Key Messaging:

* Goal: What do you want to achieve? (e.g., drive sales, build brand awareness, generate leads, promote a specific feature).

* Core Messages: What are the 1-3 key takeaways you want the audience to remember?

* Call to Action (CTA): What specific action should viewers take? (e.g., "Shop now at [link in bio]," "Download the app," "Visit our website for 20% off with code [INFLUENCERNAME]").

  • Brand Voice & Tone:

* Personality: How should the content feel? (e.g., playful, authoritative, inspiring, educational, luxurious, casual).

* Language: Any specific words to use or avoid? Slang, formal language, etc.

  • Product/Service Integration:

* Key Features/Benefits: Which aspects of the product/service should be highlighted?

* Usage Scenarios: How should the product be shown in use? Provide examples.

* Visual Representation: How should the product be positioned? Any specific angles, lighting, or context?

  • Visual Requirements:

* Aesthetics: Desired visual style (e.g., bright & airy, moody, minimalist, vibrant).

* Image/Video Quality: High resolution, professional lighting, clear audio.

* Brand Assets: Provide logos, brand colors, specific fonts, if applicable.

* Do's & Don'ts: Examples of desired visuals and images/settings to avoid.

* Product Placement: How prominently should the product be featured?

  • Required Hashtags & Tags:

* Campaign Hashtag: (e.g., #YourBrandNameCampaign).

* Brand Hashtag: (e.g., #YourBrandName).

* Disclosure Hashtags: #ad, #sponsored, #partner, etc.

* Brand Tag: @YourBrandHandle.

* Relevant Industry Hashtags: (e.g., #sustainablefashion, #techgadgets).

  • Content Formats & Specifics:

* Instagram Feed Post: Caption length, image/carousel requirements.

* Instagram Stories: Number of frames, video length, stickers, swipe-up links.

* TikTok Video: Video length, music choices, specific trends to follow/avoid.

* YouTube Video: Video length, intro/outro requirements, description box content.

* Blog Post: Word count, image requirements, internal/external links.

  • Prohibited Content:

* Brand Safety: Topics to avoid (e.g., political, religious, controversial, explicit content).

* Misleading Claims: No false or unsubstantiated claims about the product/service.

* Competitor Mentions: No mention or comparison to competitors.

  • Review & Approval Process:

* Submission Method: How drafts should be submitted (e.g., Google Drive link, specific platform).

* Feedback Mechanism: How feedback will be provided.

* Final Approval: Confirmation that content cannot go live without explicit brand approval.


5. ROI Tracking Framework: Measuring Your Success

Measuring the Return on Investment (ROI) of your influencer campaign is crucial for understanding its effectiveness and optimizing future efforts. This framework outlines key metrics and tracking methods.

Quantifying Campaign Impact

Define your KPIs early and set up tracking mechanisms to capture valuable data.

Key Performance Indicators (KPIs):

  • Awareness Metrics:

*

gemini Output

Influencer Campaign Planner: Optimized & Finalized Deliverable

This document provides a comprehensive, actionable framework for planning and executing a successful influencer marketing campaign. It covers all critical aspects from influencer identification and outreach to content guidelines, contractual agreements, and robust ROI tracking.


Executive Summary

The "Influencer Campaign Planner" is designed to guide your team through the process of launching and managing an effective influencer marketing initiative. By leveraging authentic voices, this strategy aims to enhance brand visibility, drive engagement, and ultimately achieve specific marketing objectives. This plan outlines best practices for identifying the right partners, structuring agreements, ensuring brand consistency in content, and meticulously measuring performance to demonstrate tangible returns on investment.


1. Campaign Objectives & Target Audience

Before diving into influencer specifics, clearly define your campaign's core objectives and target audience. These foundational elements will inform every subsequent decision.

  • Campaign Objectives (SMART Goals):

* Increase brand awareness by X% among [Target Audience] within [Timeframe].

* Drive X website visits/app downloads/leads from influencer content.

* Generate X% increase in sales for [Specific Product/Service].

* Improve brand sentiment/perception by X points.

* Achieve X engagement rate on influencer posts.

  • Target Audience Profile:

* Demographics (Age, Gender, Location, Income).

* Psychographics (Interests, Hobbies, Values, Lifestyle).

* Online Behavior (Preferred platforms, content consumption habits).

* Pain Points & Aspirations.


2. Ideal Influencer Profiles

Identifying the right influencers is paramount. Focus on authenticity, relevance, and engagement over mere follower count.

2.1. Key Criteria for Influencer Selection:

  • Niche Relevance: Do their content and audience align directly with your brand, products, or services? (e.g., a beauty brand partnering with a makeup artist).
  • Audience Demographics & Psychographics: Does their audience match your target audience profile?
  • Engagement Rate: High engagement (likes, comments, shares, saves) indicates an active and loyal audience, which is more valuable than a large, passive one.
  • Authenticity & Trust: Does the influencer genuinely connect with their audience? Are they perceived as trustworthy and credible?
  • Brand Alignment: Do their personal values, content style, and past collaborations align with your brand's image and values? Avoid influencers with controversial histories.
  • Content Quality: Do they produce high-quality, visually appealing, and well-produced content?
  • Professionalism: Are they responsive, reliable, and easy to work with?
  • Past Performance: Review their previous sponsored content for disclosure, engagement, and effectiveness.
  • Fraudulent Activity Check: Use tools to identify suspicious follower growth, bot activity, or engagement pods.

2.2. Influencer Tiering Strategy:

Consider a mix of tiers based on campaign objectives and budget.

  • Nano-Influencers (1K - 10K followers):

* Pros: Highest engagement rates, highly niche, very authentic, cost-effective.

* Cons: Lower reach, more individual management.

* Best for: Niche product launches, community building, hyper-targeted campaigns.

  • Micro-Influencers (10K - 100K followers):

* Pros: Strong engagement, good balance of reach and authenticity, perceived as experts.

* Cons: Moderate reach compared to larger tiers.

* Best for: Driving conversions, product reviews, sustained brand awareness.

  • Macro-Influencers (100K - 1M followers):

* Pros: Significant reach, established personal brand, professional content creators.

* Cons: Lower engagement rates than micro/nano, higher cost.

* Best for: Broad brand awareness, major product launches, driving traffic.

  • Celebrity/Mega-Influencers (1M+ followers):

* Pros: Massive reach, high credibility (if aligned), media attention.

* Cons: Very high cost, lowest engagement rates, less authentic feel, requires agent negotiation.

* Best for: Major brand campaigns, global launches, mainstream media buzz.

2.3. Tools for Influencer Identification:

  • Manual Search: Instagram, TikTok, YouTube, blogs (using relevant hashtags, keywords).
  • Influencer Marketing Platforms: Upfluence, Grin, AspireIQ, CreatorIQ, HypeAuditor.
  • Social Listening Tools: Mention, Brandwatch, Sprout Social (to identify organic brand advocates).
  • Agency Partnerships: Leverage influencer agencies for curated lists and managed campaigns.

3. Influencer Outreach Templates

Personalized and professional outreach is key to securing partnerships.

3.1. Initial Contact Email Template:

Subject: Collaboration Opportunity: [Your Brand Name] x [Influencer's Name/Handle]

Dear [Influencer's Name],

My name is [Your Name] and I'm the [Your Title] at [Your Brand Name]. I've been following your work on [Platform, e.g., Instagram/TikTok] for some time, and I'm consistently impressed by your [specific aspect, e.g., "creative storytelling," "authentic reviews," "engaging content about X"]. We particularly loved your recent post about [mention a specific piece of content] – it truly resonated with our brand's values.

[Your Brand Name] is a [briefly describe your brand and what it does, e.g., "fast-growing sustainable skincare brand dedicated to natural ingredients"]. We're currently planning an exciting campaign around [campaign theme/product, e.g., "our new eco-friendly moisturizer line"] and immediately thought of you as an ideal partner.

We believe your audience, who are clearly interested in [mention audience interest, e.g., "conscious living and effective beauty solutions"], would genuinely appreciate our [product/service]. We envision a collaboration that would involve [briefly suggest content ideas, e.g., "a dedicated Instagram Reel showcasing your daily skincare routine with our product, or an authentic review on your blog"].

Would you be open to discussing this potential partnership further? We can share more details about our brand, the campaign goals, and how we can create a mutually beneficial collaboration.

Thank you for your time and consideration.

Best regards,

[Your Name]

[Your Title]

[Your Brand Name]

[Your Website]

[Your Social Media Link]

3.2. Follow-Up Email Template:

Subject: Following Up: Collaboration Opportunity with [Your Brand Name]

Dear [Influencer's Name],

Hope you're having a great week.

I wanted to gently follow up on my email from [Date of previous email] regarding a potential collaboration between [Your Brand Name] and you.

We're genuinely excited about the possibility of working together and believe our [product/service] would be a fantastic fit for your audience, especially given your passion for [mention influencer's niche/passion].

Please let me know if you've had a chance to review the proposal, or if there's a better time to connect. We're flexible and happy to answer any questions you might have.

Looking forward to hearing from you.

Best regards,

[Your Name]

3.3. Rejection Email Template (for non-selected influencers):

Subject: Regarding Your Interest in [Your Brand Name] Collaboration

Dear [Influencer's Name],

Thank you so much for your interest in collaborating with [Your Brand Name] and for taking the time to share your insights. We truly appreciate you considering our brand.

We received a significant number of applications for our current campaign, and while your profile is impressive, we've decided to move forward with other partners whose audiences were a slightly closer match for this specific campaign's objectives.

We encourage you to keep an eye on our social channels and website for future opportunities, as we frequently launch new campaigns and are always looking for authentic voices.

We wish you all the best in your future collaborations!

Sincerely,

The Team at [Your Brand Name]


4. Influencer Contract Terms

A clear, comprehensive contract protects both your brand and the influencer, ensuring expectations are aligned.

4.1. Key Contractual Elements:

  • Scope of Work & Deliverables:

* Specific content formats (e.g., 1 Instagram Feed Post, 3 Instagram Stories, 1 TikTok video).

* Minimum requirements (e.g., video length, number of photos, specific product mentions).

* Posting schedule and deadlines.

* Required captions, hashtags, @mentions, CTAs.

  • Compensation:

* Payment Model: Flat fee, product gifting, affiliate commission, performance-based, or a hybrid.

* Amount: Clearly state the agreed-upon fee.

* Payment Schedule: (e.g., 50% upfront, 50% upon content approval; or 100% net 30 days post-campaign).

* Payment Method: (e.g., bank transfer, PayPal).

  • Content Rights & Usage:

* Ownership: Who owns the raw content?

* Usage Rights: Grant your brand specific rights to repurpose and use the influencer's content (e.g., on your website, social media, ads) for a specified period (e.g., 1 year) and geographic region.

* Exclusivity: Prevent the influencer from collaborating with direct competitors for a defined period (e.g., 30-60 days before, during, and after your campaign).

  • Disclosure Requirements:

* Mandatory adherence to FTC (USA), ASA (UK), or local advertising standards for sponsored content disclosure (e.g., #Ad, #Sponsored, "Paid partnership with [Brand Name]").

* Clear instructions on how and where disclosures must appear.

  • Approval Process:

* Timeline for content submission, brand review, and revision rounds.

* Who has final approval on all content before publication.

  • Term & Termination:

* Start and end dates of the agreement.

* Conditions under which either party can terminate the contract (e.g., breach of terms, failure to deliver).

* Consequences of termination (e.g., clawback of payment, removal of content).

  • Confidentiality:

* Non-disclosure of campaign details, compensation, or proprietary information.

  • Representations & Warranties:

* Influencer confirms they own the rights to their content, will comply with laws, and their content won't infringe on third-party rights.

  • Indemnification:

* Protects both parties from liabilities arising from breach of contract or third-party claims.

  • Governing Law:

* Specifies the jurisdiction whose laws will govern the contract.


5. Content Guidelines & Brief

A detailed content brief ensures brand consistency and effective messaging.

5.1. Core Campaign Information:

  • Campaign Title & Goal: (e.g., "Summer Glow Up," drive sales of new sunscreen).
  • Key Message/Theme: (e.g., "Effortless beauty with natural ingredients," "Sustainable living made easy").
  • Target Audience: Reiterate who the content should resonate with.
  • Product/Service Focus: Clearly identify the specific product(s) or service(s) to be featured.

5.2. Content Requirements:

  • Mandatory Elements:

* Hashtags: (e.g., #YourBrandName, #CampaignHashtag, #ProductLaunch).

* @Mentions: (e.g., @YourBrandOfficial).

* Call-to-Action (CTA): (e.g., "Link in bio to shop!", "Use code [DISCOUNTCODE] for X% off!").

* Disclosure: (e.g., #Ad, Paid Partnership).

  • Tone of Voice: (e.g., "Informative and friendly," "Playful and energetic," "Sophisticated and aspirational").
  • Visual Style: (e.g., "Bright and airy," "Minimalist," "Vibrant and colorful"). Provide visual examples or mood boards.
  • Do's and Don'ts:

* Do: Be authentic, share personal experiences, highlight key benefits, use high-quality visuals.

* Don't: Make unsubstantiated claims, use competitor products, feature inappropriate content, use copyrighted music without permission.

  • Key Messaging Points/Product Benefits: (e.g., "Our serum is clinically proven to reduce fine lines by X%," "Made with 100% recycled materials").
  • Forbidden Content: (e.g., political statements, explicit content, negative comments about competitors).

5.3. Platform-Specific Guidelines:

  • Instagram Feed Post:

* High-resolution image/carousel.

* Caption length guidance.

* Tagging instructions.

  • Instagram Stories:

* Video/image format.

* Swipe-up link (if applicable).

* Interactive elements (polls, questions).

* Duration.

  • TikTok Video:

* Video length range.

* Use of specific sounds/trends.

* On-screen text requirements.

* Call-to-action within video.

  • YouTube Video:

* Minimum video length.

* Integration points for product.

* Description box requirements (links, disclosures).

* Thumbnail guidelines.

5.4. Content Submission & Approval Process:

  • Draft Submission: Influencer submits content drafts to [Your Contact Person/Email] by [Date].
  • Review Period: Brand commits to reviewing content within [X business days].
  • Revision Rounds: [Number] rounds of revisions allowed.
  • Final Approval: Written approval required from brand before publication.
  • Live Post Notification: Influencer to notify brand once content goes live.

6. ROI Tracking Framework

Measuring the effectiveness of your influencer campaign is crucial for optimizing future strategies and demonstrating value.

6.1. Key Performance Indicators (KPIs):

Group KPIs by campaign objectives:

  • Awareness:

* Reach: Total unique individuals who saw the content.

* Impressions: Total number of times content was displayed.

* Brand Mentions: Number of times your brand was mentioned (organic and sponsored).

* Share of Voice: Your brand's mentions vs. competitors' mentions.

* Website Traffic: Direct traffic from influencer links.

  • Engagement:

Engagement Rate: (Likes + Comments + Shares + Saves) / Followers 100.

* Comments: Quality and quantity of comments.

* Shares/Saves: Indicates content resonance and utility.

* Story Views/Swipe-Ups: For Instagram Stories.

  • Conversions/Sales:

* Click-Through Rate (CTR): Clicks on influencer links / Impressions.

* Conversion Rate: Purchases/Leads from influencer traffic.

* Sales Revenue: Direct revenue generated from unique influencer codes/links.

*

influencer_campaign_planner.md
Download as Markdown
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);}});}