Influencer Campaign Planner
Run ID: 69cc2deafdffe128046c54db2026-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 of 3: Audience Analysis for Influencer Campaign Planning

This document provides a comprehensive analysis of your target audience, crucial for laying the foundation of a successful influencer marketing campaign. Understanding who your audience is, what motivates them, and where they spend their time online will guide every subsequent decision, from influencer selection to content strategy and campaign messaging.


1. Introduction & Purpose of Audience Analysis

The primary goal of this audience analysis is to construct a detailed profile of the individuals you aim to reach through your influencer marketing efforts. By deeply understanding their demographics, psychographics, behaviors, and preferences, we can identify the most effective channels, content types, and influencer archetypes to maximize engagement and achieve your campaign objectives.

This analysis will serve as the bedrock for:

  • Influencer Identification: Matching your brand with influencers whose audience aligns perfectly with yours.
  • Content Strategy: Developing compelling narratives and formats that resonate deeply.
  • Platform Selection: Prioritizing channels where your target audience is most active and receptive.
  • Messaging & Tone: Crafting authentic communication that speaks directly to their needs and aspirations.

2. Core Target Audience Profile (Hypothetical Example: Sustainable Activewear Brand)

To provide actionable insights, we will model a detailed audience profile for a hypothetical "Sustainable Activewear Brand" targeting health-conscious, environmentally aware consumers. Please note: For your specific campaign, this section will be refined with your proprietary customer data and market research.

2.1. Demographics

  • Age: Primarily 22-45 years old, with a secondary segment of 45-55.
  • Gender: Predominantly Female (65-70%), with a growing Male (25-30%) and Non-Binary (5%) segment.
  • Location: Urban and suburban areas in developed countries (e.g., North America, Western Europe, Australia). Higher concentration in cities known for active lifestyles and environmental consciousness.
  • Income Level: Mid to upper-middle class ($60,000 - $150,000+ household income), with disposable income for premium, ethically sourced products.
  • Education: College-educated or higher; often professionals or pursuing higher education.
  • Occupation: White-collar professionals, creatives, entrepreneurs, students, health & wellness practitioners.

2.2. Psychographics

  • Values & Beliefs:

* Sustainability & Ethics: High value on environmental protection, ethical labor practices, transparency, and cruelty-free products. Willing to pay a premium for brands aligned with these values.

* Health & Wellness: Prioritize physical and mental well-being. Engaged in various fitness activities (yoga, running, gym, hiking) and mindful practices.

* Authenticity: Value genuine experiences, honest reviews, and relatable content over overly polished or commercialized messaging.

* Community: Seek connection with like-minded individuals and brands that foster a sense of belonging.

  • Lifestyle:

* Active and outdoorsy.

* Conscious consumers, often researching brands and product origins.

* Early adopters of trends in health, wellness, and sustainable living.

* Socially aware and often participate in advocacy or community initiatives.

* Tech-savvy and frequent users of social media for inspiration, information, and connection.

  • Pain Points:

* Difficulty finding stylish, high-performance activewear that is also truly sustainable and ethically made.

* Concerns about "greenwashing" and lack of transparency from brands.

* Desire for versatile activewear that transitions from workout to casual wear.

  • Aspirations:

* Live a healthy, balanced, and purposeful life.

* Contribute positively to the planet and society.

* Look and feel good while pursuing their passions.

* Be part of a community that shares their values.

2.3. Online Behavior & Media Consumption

  • Preferred Platforms:

* Instagram: High engagement for visual content (fashion, fitness inspiration, lifestyle, product showcases, Reels, Stories).

* TikTok: Growing importance for short-form, authentic, trend-driven content, fitness challenges, behind-the-scenes.

* YouTube: For longer-form content like workout routines, product reviews, "what I eat in a day," sustainable living vlogs.

* Pinterest: Inspiration for activewear styling, healthy recipes, home decor, sustainable living tips.

* Blogs/Niche Websites: Reading detailed reviews, sustainable fashion guides, health articles.

  • Content Preferences:

* Visual & Engaging: High-quality photos, dynamic videos, Reels, Stories.

* Educational & Informative: Content about sustainable materials, ethical production, health benefits, workout tips.

* Authentic & Relatable: "Day in the life," unboxing, real-time reviews, challenges.

* Inspirational: Fitness journeys, mindful moments, outdoor adventures.

* User-Generated Content (UGC): Highly valued; seeing real people use and love the products.

  • Influencer Preferences:

* Value authenticity, expertise, and genuine passion.

* Prefer micro and nano-influencers who have highly engaged, niche communities.

* Seek out influencers who embody their values (e.g., eco-conscious, fitness enthusiasts).

* Skeptical of overly promotional content; prefer integrated, natural endorsements.


3. Market & Trend Insights

3.1. Industry Trends Impacting Audience

  • Growth of Sustainable & Ethical Consumption: Consumers are increasingly prioritizing brands with strong ESG (Environmental, Social, Governance) credentials. Transparency in supply chains is no longer a niche request but a mainstream expectation.
  • "Athleisure" Dominance: Activewear has transcended the gym, becoming a staple in everyday fashion. This drives demand for versatile, comfortable, and stylish pieces.
  • Rise of Conscious Wellness: A holistic approach to health encompassing physical fitness, mental well-being, nutrition, and environmental impact.
  • Community-Driven Commerce: Consumers are drawn to brands that foster a sense of belonging and align with their values, often through online communities.
  • Video-First Content: Short-form video (Reels, TikTok) and live streaming continue to dominate engagement, emphasizing dynamic and authentic storytelling.

3.2. Competitor Audience Landscape

  • Leading sustainable activewear brands (e.g., Girlfriend Collective, Patagonia, Vuori, Lululemon's sustainable lines) have cultivated highly engaged communities.
  • Their audiences often overlap significantly with our target profile, demonstrating a proven market for values-driven activewear.
  • Competitors effectively use influencers who embody healthy, active, and sustainable lifestyles. They frequently leverage user-generated content and community challenges.
  • Key differentiator opportunities: deeper transparency, unique material innovations, specific niche community building (e.g., trail running, specific yoga styles).

3.3. Platform-Specific Audience Insights

  • Instagram: Ideal for aesthetic product showcasing, fitness tutorials, lifestyle integration, and "stories" for behind-the-scenes and Q&A. High engagement with polls and quizzes.
  • TikTok: Best for trend participation, bite-sized workout challenges, "get ready with me" content, and showcasing product functionality in a fun, authentic way. Excellent for reaching younger segments (Gen Z) and driving viral potential.
  • YouTube: Suited for in-depth product reviews, "wear test" videos, full workout routines, and longer-form content discussing sustainability and brand mission. Builds trust and authority.
  • Pinterest: Strong for visual discovery, creating mood boards, outfit ideas, and driving traffic to product pages or blog content. High purchase intent from users.

4. Key Audience Segments (Potential)

While our core audience is unified by health and sustainability, distinct segments may exist, allowing for more tailored messaging:

  • The Eco-Warrior (Primary): Highly engaged with environmental causes, prioritizes certifications and transparency, willing to pay more for truly sustainable products. Influencers focusing on environmental advocacy and conscious living will resonate.
  • The Fitness Enthusiast: Driven by performance, comfort, and durability in activewear. While they appreciate sustainability, performance is key. Influencers who are expert trainers, athletes, or fitness coaches are ideal.
  • The Mindful Mover: Focuses on holistic wellness, including yoga, meditation, and mental health. Seeks comfort and versatility. Influencers in yoga, mindfulness, and gentle movement.
  • The Style-Conscious Consumer: Values aesthetics and versatility for "athleisure" wear. Seeks stylish pieces that transition from workout to daily life. Influencers with strong fashion sense and lifestyle content.

Recommendation: Consider which segment is your immediate priority for this campaign, or if a multi-segment approach is feasible with different influencer tiers/messaging.


5. Strategic Implications for Influencer Campaign

5.1. Ideal Influencer Characteristics

  • Authenticity & Relatability: Influencers who genuinely use and love sustainable products and activewear in their daily lives. Their audience must trust their recommendations.
  • Values Alignment: Must align with the brand's core values of sustainability, ethics, and health. This goes beyond just posting; it's about their broader content and persona.
  • Niche Expertise: Influencers specializing in fitness, yoga, sustainable living, mindful wellness, or ethical fashion.
  • Engaged Community: Focus on engagement rates (likes, comments, shares, saves) over follower count alone. Micro (10k-100k followers) and nano (1k-10k followers) influencers often have higher engagement and more dedicated audiences.
  • Demonstrated Creativity: Ability to produce high-quality, visually appealing, and original content that fits platform best practices.
  • Geographic Relevance: If local presence is important, identify influencers in target regions.

5.2. Preferred Content Formats & Themes

  • "Day in the Life" / "Get Ready With Me": Showcasing activewear seamlessly integrated into daily routines.
  • Workout Tutorials & Challenges: Demonstrating product performance during actual exercise.
  • Sustainable Living Tips & Discussions: Weaving in the brand's ethical story naturally.
  • Product Reviews & Try-Ons: Honest feedback on fit, feel, durability, and sustainability features.
  • Behind-the-Scenes: Showcasing the brand's ethical production or material sourcing.
  • Transformation & Journey Content: Highlighting how activewear supports personal wellness goals.
  • "How to Style" / "Versatile Wear": Demonstrating the athleisure aspect of the clothing.
  • Q&A Sessions: Engaging directly with the audience about the brand and products.

5.3. Optimal Platforms

  • Primary: Instagram (Reels, Stories, Feed Posts), TikTok (short-form video), YouTube (long-form reviews/tutorials).
  • Secondary: Pinterest (visual discovery, styling inspiration), Blogs (in-depth reviews, thought leadership).

6. Recommendations for Campaign Focus

Based on this audience analysis, we recommend the following strategic focus for your influencer campaign:

  1. Prioritize Authenticity & Values Alignment: Partner with influencers who genuinely embody a sustainable and active lifestyle, rather than just those with large follower counts. This will resonate deeply with your audience's core values.
  2. Focus on Micro & Nano-Influencers: Leverage their high engagement rates and niche communities for more targeted and impactful reach. Consider a tiered approach with a few larger influencers for broader awareness and many smaller ones for deep engagement.
  3. Emphasize Storytelling & Education: Beyond showcasing the product, tell the story of its sustainability, ethical production, and the positive impact it has. Educate the audience about materials, processes, and the brand's mission.
  4. Integrate Product into Lifestyle: Encourage content that shows the activewear being used in real-life scenarios—workouts, errands, travel, relaxation—highlighting its versatility and comfort.
  5. Leverage Short-Form Video: Dedicate significant effort to Instagram Reels and TikTok content, as these platforms are crucial for reaching and engaging your target audience with dynamic and authentic visuals.
  6. Foster Community & Interaction: Encourage influencers to run polls, Q&As, and challenges that involve the audience, driving engagement and brand loyalty.

7. Next Steps

This comprehensive audience analysis provides a robust foundation. The next steps will involve translating these insights into concrete campaign elements:

  1. Define Campaign Objectives & KPIs: Clearly articulate what success looks like for this campaign, aligning with the insights gathered (e e.g., brand awareness, website traffic, sales conversions, community growth).
  2. Develop Influencer Persona & Selection Criteria: Based on the ideal influencer characteristics, create a detailed profile for the types of influencers you will target.
  3. Begin Influencer Identification & Vetting: Start researching and shortlisting influencers who fit the established criteria across the recommended platforms.
  4. Craft Initial Outreach Strategy: Prepare personalized outreach messages that resonate with the identified influencers, highlighting shared values and mutual benefits.
  5. Content Brainstorming: Begin developing specific content ideas and themes that align with audience preferences and campaign objectives.

By meticulously following this audience-first approach, your influencer campaign will be strategically positioned for maximum impact and ROI.

gemini Output

Influencer Campaign Planner: Your Blueprint for Success

Executive Summary

Welcome to your comprehensive Influencer Campaign Planner! In today's dynamic digital landscape, influencer marketing is a powerful strategy to connect with your target audience authentically and drive measurable results. This document provides a detailed blueprint for planning, executing, and tracking a successful influencer campaign, covering everything from identifying ideal partners to measuring your return on investment.

Our goal is to equip you with the tools and insights needed to forge meaningful partnerships, generate compelling content, and achieve your marketing objectives. Let's build a campaign that resonates!

1. Campaign Overview & Objectives

Before diving into the specifics, a clear understanding of your campaign's foundation is crucial.

1.1. Campaign Goals

What do you aim to achieve with this campaign? (Select 1-3 primary goals)

  • Brand Awareness: Increase visibility and recognition for your brand or a specific product/service.
  • Audience Engagement: Foster deeper interaction and community building around your brand.
  • Lead Generation: Collect qualified leads interested in your offerings.
  • Sales Conversion: Drive direct purchases or sign-ups.
  • Content Creation: Generate authentic user-generated content (UGC) for future marketing efforts.
  • Website Traffic: Direct users to your website, landing page, or e-commerce store.
  • Product Launch Support: Create buzz and demand for a new product or service.

1.2. Target Audience

Who are you trying to reach?

  • Demographics: Age, gender, location, income level, occupation.
  • Psychographics: Interests, values, lifestyle, pain points, aspirations, online behavior.
  • Platforms: Where does your target audience spend most of their time online? (e.g., Instagram, TikTok, YouTube, Pinterest, Blogs, LinkedIn).

1.3. Key Campaign Message & Value Proposition

What core message do you want influencers to convey? What makes your product/service unique and valuable to their audience?

  • Example: "Discover [Product Name], the sustainable [Product Category] that simplifies your [Problem Solved] while supporting [Brand Value]."

1.4. Campaign Duration & Phasing

  • Overall Duration: e.g., 4-6 weeks.
  • Phases:

* Phase 1: Awareness & Tease: Initial posts/stories building anticipation.

* Phase 2: Deep Dive & Education: Detailed reviews, tutorials, product in action.

* Phase 3: Conversion & Call to Action: Strong CTAs, discount codes, urgency.


2. Ideal Influencer Profiles

Identifying the right influencers is paramount. They should align with your brand values, resonate with your target audience, and maintain authentic engagement.

2.1. Influencer Tiers & Audience Size

Consider a mix of tiers for optimal reach and authenticity.

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

* Strengths: Highly engaged, niche communities, perceived as authentic friends, cost-effective.

* Best For: Driving authentic conversation, hyper-targeted reach, UGC.

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

* Strengths: Strong engagement, growing reach, more professional than nano, still relatable.

* Best For: Product reviews, brand advocacy, driving traffic, conversions.

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

* Strengths: Significant reach, established authority, professional content creators.

* Best For: Brand awareness, large-scale campaigns, product launches.

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

* Strengths: Massive reach, mainstream appeal, strong brand association potential.

* Best For: High-impact brand awareness, major product launches (often high cost).

2.2. Key Profile Attributes

When searching for influencers, prioritize these characteristics:

  • Audience Demographics: Must closely match your target audience (see Section 1.2).
  • Niche & Content Focus: Their content themes should naturally align with your brand/product (e.g., beauty, fitness, tech, sustainable living, parenting).
  • Engagement Rate: A healthy engagement rate (likes + comments / followers) is crucial.

* Nano: 5-10%+

* Micro: 3-8%

* Macro: 1-5%

* Mega: 0.5-2%

  • Brand Alignment & Values: Do their personal brand and values resonate with yours? Authenticity is key.
  • Content Quality & Aesthetic: Professional, high-quality visuals and compelling storytelling.
  • Authenticity & Trust: Look for genuine interactions with their audience, not just transactional posts.
  • Past Brand Collaborations: Review previous sponsored content to ensure it aligns with your brand's standards and doesn't conflict with your industry.
  • Red Flags:

* Sudden spikes in follower count without corresponding engagement.

* High percentage of bot comments or engagement pods.

* Lack of genuine audience interaction.

* Inconsistent posting schedule or content quality.

2.3. Search & Vetting Process

  1. Keyword Search: Use relevant hashtags and keywords on platforms.
  2. Competitor Analysis: See who your competitors are working with (and if there are opportunities to differentiate).
  3. Audience Insights: Utilize influencer marketing platforms or ask for media kits to verify audience demographics.
  4. Manual Review: Personally review their last 10-20 posts for content quality, engagement, and authenticity.

3. Influencer Outreach Strategy & Templates

A professional and personalized outreach approach is essential to secure top-tier talent.

3.1. Outreach Channels

  • Email: Preferred for formal proposals and detailed discussions. Always look for a business email in their bio.
  • Direct Message (DM): Suitable for initial contact, especially on Instagram/TikTok, to gauge interest before moving to email.
  • Influencer Platforms: If using a platform, leverage its built-in messaging system.

3.2. Best Practices for Outreach

  • Personalization is Key: Refer to specific content they've created, explain why you chose them. Avoid generic copy-pasting.
  • Be Concise: Influencers receive many proposals. Get straight to the point.
  • Clearly State Value: What's in it for them? Product, payment, exposure, long-term partnership?
  • Set Clear Expectations: Briefly mention the type of collaboration.
  • Easy Next Steps: Provide a clear call to action (e.g., "Let's schedule a quick 15-minute call").

3.3. Outreach Templates

Template 1: Initial Contact (Email)

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

Hi [Influencer Name],

My name is [Your Name] and I'm the [Your Role] at [Your Brand Name]. I've been following your content on [Platform, e.g., Instagram] for a while now, and I'm particularly impressed by your [mention specific post/style, e.g., "beautiful aesthetic and authentic reviews of sustainable fashion brands"].

At [Your Brand Name], we create [briefly describe your product/service, e.g., "eco-friendly skincare products designed for sensitive skin"]. We believe your audience, who values [mention their audience's values, e.g., "conscious living and effective beauty solutions"], would genuinely connect with our mission and products.

We're currently planning an exciting campaign to [mention campaign goal, e.g., "launch our new serum line"] and would love to explore a potential collaboration with you. We envision [briefly describe content idea, e.g., "a series of authentic stories and a dedicated post showcasing your experience with our products"].

Would you be open to learning more? I'd be happy to send over a detailed brief or schedule a quick 15-minute call at your convenience to discuss this further.

Thank you for your time and consideration.

Best regards,

[Your Name]

[Your Title]

[Your Brand Name]

[Your Website]

[Your Social Media Link]


Template 2: Follow-Up (Email - 3-5 days after initial contact)

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

Hi [Influencer Name],

Just wanted to gently follow up on my email from [Date of previous email] regarding a potential collaboration with [Your Brand Name].

We're truly excited about the possibility of working with you, given your unique voice and engaged community. We believe your audience would genuinely appreciate [reiterate key benefit/alignment, e.g., "the natural ingredients and effectiveness of our new serum"].

No pressure at all, but if you're interested in exploring this further, please let me know. We can send you more details about the campaign and discuss how we can create something impactful together.

Looking forward to hearing from you!

Best regards,

[Your Name]

[Your Brand Name]


Template 3: Proposal/Negotiation (Email - after initial interest)

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

Hi [Influencer Name],

Thank you for your interest in collaborating with [Your Brand Name]! We're thrilled at the prospect of working together.

Here’s a detailed overview of our proposed campaign:

Campaign Goal: [e.g., Drive awareness and sales for our new 'Glow Serum']

Key Message: [e.g., "Achieve radiant, healthy skin naturally with our plant-powered serum."]

Proposed Deliverables:

  • Instagram:

* 1x In-Feed Post (Static Image/Carousel or Reel) featuring [Product Name].

* Caption: Minimum 100 words, authentic review, key product benefits, CTA.

* Required: @YourBrandHandle tag, #[YourBrandHashtag], #[CampaignHashtag], #ad or #sponsored.

* 3x Instagram Stories (15-second segments each) demonstrating product use, swipe-up link to [Your Website/Product Page].

* Required: @YourBrandHandle tag, #[YourBrandHashtag], #ad or #sponsored.

  • [Other Platform, e.g., TikTok]:

* 1x TikTok Video (15-30 seconds) showcasing [Product Name] in a creative, engaging way.

* Caption: Key benefits, CTA, link in bio mention.

* Required: @YourBrandHandle tag, #[YourBrandHashtag], #[CampaignHashtag], #ad or #sponsored.

Timeline:

  • Content Draft Submission: [Date - e.g., 2 weeks prior to live date]
  • Content Live Date: [Date - e.g., between Oct 15-20]
  • Usage Rights: [e.g., 3 months for brand social channels, website]

Compensation:

  • Monetary: $[X,XXX] USD for all agreed deliverables.
  • Product: [List specific products and their value, e.g., Full range of our new Glow Serum line, valued at $XXX].
  • Payment Terms: 50% upfront upon signed contract, 50% upon content approval and going live.

We are confident that your creative approach and engaged audience would be a perfect fit for this campaign. Please let me know if these terms work for you or if you have any questions or alternative suggestions.

We look forward to partnering with you!

Best regards,

[Your Name]

[Your Brand Name]


4. Influencer Contract Terms (Key Considerations)

A clear, legally sound contract protects both parties and outlines expectations. Always consult with legal counsel to draft your final agreements.

4.1. Scope of Work & Deliverables

  • Specific Content: Detail types (post, story, reel, blog), quantity, platform, and minimum duration (for videos).
  • Key Messages: Core points to be included.
  • Required Elements: Mentions (@handle), hashtags (#campaignhashtag, #brandhashtag), links (swipe-up, link-in-bio).
  • Deadlines: Content submission for approval, live posting dates.

4.2. Compensation & Payment Terms

  • Monetary Fee: Clearly state the total amount and currency.
  • Product/Service Value: If applicable, list items provided and their retail value.
  • Payment Schedule: e.g., 50% upfront, 50% upon content live; or net 30 days post-campaign.
  • Payment Method: Bank transfer, PayPal, etc.
  • Tax Implications: Clarify responsibility for taxes.

4.3. Content Ownership & Usage Rights

  • Who owns the content? Typically, the influencer owns the original content.
  • Brand Usage Rights: Specify how and where the brand can re-use the influencer's content (e.g., on brand social channels, website, paid ads, for X months/years).
  • Edits: Can the brand edit the content for re-use? (e.g., cropping, adding text overlays).

4.4. Disclosure Requirements (FTC/ASA Compliance)

  • Mandatory: Clear and conspicuous disclosure of sponsored content (e.g., #ad, #sponsored, "Paid Partnership with [Brand]").
  • Platform-Specific Tools: Use built-in paid partnership tools where available.
  • No Misleading Claims: Influencers must not make false or unsubstantiated claims about the product.

4.5. Exclusivity Clauses

  • Category Exclusivity: Prevent the influencer from promoting direct competitors for a specified period (e.g., 30-60 days before, during, and after the campaign).
  • Campaign Exclusivity: Prevent them from promoting any other brand during the active campaign period.

4.6. Approvals Process

  • Content Review: Brand must have the right to review and request revisions to content drafts before going live.
  • Number of Revisions: Set a reasonable limit (e.g., 1-2 rounds of minor revisions).
  • Approval Timeline: Specify how quickly the brand will provide feedback.

4.7. Termination Clauses

  • Breach of Contract: Conditions under which either party can terminate (e.g., failure to meet deadlines, brand misrepresentation, influencer misconduct).
  • Consequences of Termination: What happens to payment, content, and usage rights upon termination.

4.8. Confidentiality

  • Protect sensitive campaign
gemini Output

This document outlines a comprehensive plan for launching and managing a successful influencer marketing campaign. It covers all critical aspects from identifying ideal partners to tracking the return on investment (ROI), ensuring a structured and effective approach.


Influencer Campaign Planner: Optimized & Finalized Deliverable

Campaign Name: [Insert Your Campaign Name Here, e.g., "Summer Glow Up"]

Brand/Company: [Your Brand Name]

Product/Service: [Specific Product/Service being promoted, e.g., "New Eco-Friendly Skincare Line"]

Campaign Duration: [e.g., 8 weeks, May 15th - July 15th]

1. Campaign Overview & Objectives

This campaign aims to [e.g., increase brand awareness, drive sales, generate leads, boost website traffic] for [Your Product/Service] by collaborating with authentic and engaging influencers.

Primary Goal: [Select One: Brand Awareness / Lead Generation / Sales / Website Traffic / Community Building]

Specific, Measurable Objectives (SMART):

  • Awareness: Achieve [X] million impressions and [Y] thousand mentions across chosen platforms.
  • Engagement: Attain an average engagement rate of [X]% across all sponsored posts.
  • Traffic: Drive [Y] unique visitors to the product landing page via influencer links.
  • Conversions: Generate [Z] sales/sign-ups using unique influencer discount codes/affiliate links.
  • Sentiment: Improve brand sentiment by [X]% (measured by social listening).

2. Ideal Influencer Profiles

Identifying the right influencers is paramount. Our target influencers will possess the following characteristics:

  • Niche/Category Alignment:

* Primary: [e.g., Sustainable Beauty, Tech Reviewers, Fitness & Wellness, Home Decor, Parenting]

* Secondary (if applicable): [e.g., Lifestyle, DIY, Travel]

* Avoid: Irrelevant or controversial niches.

  • Audience Demographics:

* Age: [e.g., 25-45 years old]

* Gender: [e.g., Predominantly Female, Balanced, Male-focused]

* Location: [e.g., USA (major cities), Global, specific regions]

* Interests: Must align with our product/service (e.g., eco-conscious living, healthy eating, gaming, fashion).

  • Follower Count Range:

* Micro-influencers (10K - 100K followers): High engagement, niche focus, perceived authenticity.

* Mid-tier influencers (100K - 500K followers): Broader reach than micro, still good engagement.

* Nano-influencers (1K - 10K followers): Very high engagement, strong community, often underutilized.

* Rationale: Prioritize micro/mid-tier for higher engagement and authenticity, potentially including a few nano-influencers for hyper-niche reach.

  • Engagement Rate:

* Target: Minimum 3% for micro/nano, 1.5% for mid-tier. Higher is always preferred.

* Metrics: Likes, comments, shares, saves relative to follower count.

  • Content Style & Aesthetics:

* Visuals: High-quality photography/videography, consistent aesthetic that aligns with [Your Brand Name]'s visual identity.

* Tone: Authentic, relatable, positive, informative, and genuine; avoids overly promotional or inauthentic content.

* Authenticity: History of genuine recommendations, not solely sponsored content.

  • Brand Alignment & Values:

* Influencers whose personal brand, values, and previous collaborations resonate with [Your Brand Name]'s mission and ethics (e.g., sustainability, innovation, community focus).

* No history of controversial or damaging content.

  • Preferred Platforms:

* Primary: [e.g., Instagram (Feed, Stories, Reels), TikTok (Short-form video), YouTube (Long-form reviews, vlogs)]

* Secondary: [e.g., Blogs, Pinterest, X (formerly Twitter)]

3. Outreach Strategy & Templates

A personalized and professional outreach approach is crucial for securing partnerships.

Outreach Channels:

  • Primary: Email (preferred for detailed proposals)
  • Secondary: Instagram DM (for initial contact or if email is unavailable), LinkedIn (for professional influencers/agents).

Key Principles:

  • Personalization: Reference specific content, posts, or values of the influencer.
  • Value Proposition: Clearly articulate what's in it for them (compensation, brand alignment, creative freedom).
  • Clarity: State the campaign goal and desired action upfront.

Outreach Template 1: Initial Cold Outreach (Email)

Subject: Collaboration Opportunity: [Your Brand Name] x [Influencer's Name] for [Campaign Name]

Hi [Influencer's Name],

My name is [Your Name] and I'm the [Your Title] at [Your Brand Name]. I'm reaching out because I've been following your work on [Platform, e.g., Instagram] for a while, and I'm particularly impressed by your [mention specific content piece, e.g., "recent review of sustainable products" or "engaging storytelling in your travel vlogs"]. Your audience's engagement and your authentic approach to [their niche] align perfectly with our brand's values.

We're launching an exciting new campaign for our [Your Product/Service], which is designed to [briefly explain product benefit/mission, e.g., "revolutionize daily skincare with eco-friendly ingredients"]. We believe your unique voice and engaged community would be ideal for introducing [Your Product/Service] to a wider audience.

We're looking for partners to create [specify content type, e.g., "an Instagram Reel showcasing their morning routine," "a dedicated YouTube video review," "a series of engaging stories"] that highlights [1-2 key campaign messages/product features].

Would you be open to a brief call next week to discuss this potential collaboration further and share more details about our vision and compensation structure? Please let me know your availability or if you have a media kit you can share.

Thank you for your time and consideration.

Best regards,

[Your Name]

[Your Title]

[Your Brand Name]

[Your Website]

[Your Social Media Link]


Outreach Template 2: Follow-up Email (if no response after 5-7 business days)

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

Hi [Influencer's Name],

Just following up on my email from [Date of previous email] regarding a potential collaboration with [Your Brand Name] for our [Your Product/Service] campaign.

We're very excited about the possibility of working with you, given your fantastic content around [their niche] and your highly engaged audience.

If you're interested in learning more, I'd be happy to share a detailed brief and discuss how we can create something impactful together.

Please let me know if you'd like to schedule a quick chat, or if this isn't a good fit at this time.

Thanks again,

[Your Name]

[Your Title]

[Your Brand Name]


4. Contract Terms & Legal Considerations

A clear, legally sound contract protects both parties and ensures smooth execution.

Essential Contract Clauses:

  1. Scope of Work (SOW):

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

* Required platforms for each deliverable.

* Specific posting dates or date ranges.

* Key messages, hashtags, and CTAs to be included.

  1. Compensation & Payment Terms:

* Agreed-upon fee (fixed, tiered, commission-based).

* Payment schedule (e.g., 50% upfront, 50% upon completion; net 30 days post-invoice).

* Method of payment (e.g., bank transfer, PayPal).

* Reimbursement for expenses (if applicable).

  1. Usage Rights & Licensing:

* Grant of rights for [Your Brand Name] to use, reproduce, modify, and distribute the influencer's content for marketing purposes (e.g., reposting on brand channels, using in paid ads, website).

* Duration of usage rights (e.g., 1 year, perpetual).

* Specify if additional compensation is required for extended usage or specific ad placements.

  1. Disclosure Requirements:

* Mandatory disclosure of sponsored content per FTC guidelines (USA), ASA (UK), or local regulations (e.g., #ad, #sponsored, "Paid Partnership with [Your Brand Name]").

Clear instructions on how and where* to place disclosures.

  1. Exclusivity Clause:

* Prohibition from partnering with direct competitors of [Your Brand Name] for a specified period (e.g., 30 days before, during, and 30 days after the campaign).

* Specify the product/service category for exclusivity.

  1. Content Approval Process:

* Influencer to submit content drafts for [Your Brand Name]'s review and approval before posting.

* Number of revision rounds allowed.

* Clear timeline for review and feedback (e.g., 48-72 hours).

  1. Performance Metrics & Reporting:

* Influencer agrees to provide performance data (e.g., reach, impressions, engagement, clicks) within [X] days post-campaign.

* Data should be verifiable (e.g., screenshots of platform analytics).

  1. Termination Clause:

* Conditions under which either party can terminate the agreement (e.g., breach of contract, failure to meet deadlines, negative publicity).

* Consequences of termination (e.g., prorated payment, return of products).

  1. Confidentiality:

* Influencer agrees not to disclose proprietary campaign details, compensation, or brand strategies.

  1. Intellectual Property:

* Clarification of ownership of the content created. Typically, the influencer retains IP, but grants usage rights to the brand.

  1. Representations & Warranties:

* Influencer confirms they own the rights to content, will comply with laws, and content will be original.

  1. Governing Law:

* Specify the jurisdiction whose laws will govern the contract.

5. Content Guidelines & Creative Brief

A detailed creative brief ensures content aligns with brand messaging while allowing influencer authenticity.

Campaign Theme & Core Message:

  • Theme: [e.g., "Embrace Your Natural Glow," "Smart Tech for a Smarter Home," "Fueling Your Fitness Journey"]
  • Core Message: [Your Product/Service] helps you [key benefit/solution] by [unique selling proposition].

Key Messaging Points (Mandatory to Include):

  • [e.g., "Our skincare is 100% cruelty-free and vegan."]
  • [e.g., "The [Product Feature] makes this device incredibly user-friendly."]
  • [e.g., "I love how [Your Product/Service] fits seamlessly into my daily routine."]

Call to Action (CTA):

  • Primary CTA: [e.g., "Shop now at link in bio," "Download the app," "Use code [INFLUENCERNAME] for 15% off," "Learn more at [Your Website]."]
  • Secondary CTA (if applicable): [e.g., "Tag a friend who needs this!"]

Mandatory Elements:

  • Hashtags:

* Campaign Hashtag: #[YourCampaignHashtag]

* Brand Hashtag: #[YourBrandName]

* Disclosure Hashtags: #ad #sponsored #PaidPartnershipWith[YourBrandName]

  • Mentions: @[YourBrandHandle] (on all relevant platforms).
  • Product Placement: Clear, natural, and visible display of [Your Product
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);}});}