Influencer Campaign Planner
Run ID: 69cb068e58b35c7ea758c35a2026-03-30Marketing
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 Planner

This document provides a comprehensive analysis of your target audience, crucial for informing the influencer marketing campaign strategy. Understanding your audience's demographics, psychographics, behaviors, and preferences is foundational to selecting the right influencers, crafting compelling content, and maximizing campaign ROI.


1. Target Audience Overview

Our primary target audience for this campaign can be broadly defined as Environmentally Conscious and Socially Aware Consumers who prioritize sustainability, ethical consumption, and well-being in their purchasing decisions. They are not just looking for products, but for brands that align with their values and contribute positively to the planet and society.

  • Core Focus: Individuals actively seeking sustainable, high-quality, and ethically produced goods for their homes and personal lives.
  • Key Driver: A strong desire to reduce their environmental footprint and support responsible businesses.
  • Influencer Relevance: They trust authentic voices who embody these values and provide genuine recommendations.

2. Detailed Audience Segmentation

2.1. Demographics

  • Age: Primarily 25-45 years old, with a secondary segment of 45-55 years old. This group is often established in their careers, has disposable income, and is making conscious lifestyle choices.
  • Gender: Slightly skewed towards Female (60-65%), but with a significant and growing male segment (35-40%) showing increased interest in sustainable living.
  • Location: Predominantly Urban and Suburban areas in developed markets, where access to information, eco-friendly options, and community groups is higher.
  • Income Level: Middle to Upper-Middle Income, as sustainable products often carry a premium, and these consumers are willing to invest in quality and ethics.
  • Education Level: College-educated or higher, indicating a propensity for research, critical thinking, and engagement with complex topics like sustainability.
  • Family Status: A mix of young professionals, couples, and young families, all looking to create a healthier, more sustainable environment for themselves and their loved ones.

2.2. Psychographics

  • Values & Beliefs:

* Sustainability & Environmentalism: Core value; deeply concerned about climate change, waste, and ethical sourcing.

* Health & Wellness: Prioritize personal well-being, often linking it to environmental health.

* Authenticity & Transparency: Value honesty from brands and influencers; wary of "greenwashing."

* Community & Social Impact: Seek to connect with like-minded individuals and support businesses that give back.

* Conscious Consumption: Prefer quality over quantity, durability over disposability.

  • Lifestyle:

* Often described as "mindful," "intentional," or "eco-conscious."

* Engage in practices like recycling, composting, reducing plastic, and supporting local businesses.

* Active in outdoor activities, wellness routines (yoga, meditation), and community events.

* Early adopters of new sustainable technologies or products.

  • Attitudes: Optimistic about positive change, but also frustrated by systemic issues. Empowered by their individual choices. Seek solutions and practical advice.
  • Personality Traits: Curious, empathetic, responsible, discerning, community-oriented.

2.3. Behavioral Data

  • Online Habits:

* Research-driven: Extensive online research before making purchases, checking reviews, certifications, and brand ethos.

* Social Media Engagement: Active on platforms for inspiration, education, and community building.

* Content Consumption: Consume a mix of educational content (blogs, documentaries, long-form videos), inspirational visuals (Instagram, Pinterest), and short-form educational/entertaining content (TikTok).

  • Purchase Behavior:

* Brand Loyalty: High loyalty to brands that consistently deliver on their sustainability promises.

* Price Sensitivity (Balanced): Willing to pay a premium for truly sustainable and high-quality products, but still seek value and transparency on pricing.

* Influencer Impact: Highly influenced by recommendations from trusted individuals who share their values, especially micro- and nano-influencers.

  • Preferred Communication: Appreciate direct, honest, and informative communication. Respond well to storytelling that highlights impact and values.

3. Key Audience Insights & Trends

  1. Rise of "Conscious Consumerism": This isn't a niche; it's a growing mainstream movement. Consumers are increasingly scrutinizing supply chains, environmental impact, and social responsibility.
  2. "Greenwashing" Skepticism: The audience is highly educated and critical. They can spot inauthentic sustainability claims and will quickly disengage from brands perceived as misleading. Authenticity is paramount.
  3. Community & Shared Values: These consumers seek connection with others who share their values. Influencers who foster genuine communities around sustainability will be highly effective.
  4. Demand for Education & Solutions: They are looking for practical ways to live more sustainably. Content that educates, provides actionable tips, and offers tangible solutions will resonate strongly.
  5. Visual Storytelling Dominance: Visual platforms are key for showcasing sustainable lifestyles and product integration into daily life. High-quality, authentic visuals are critical.
  6. Trust in Peers & Experts: While celebrity endorsements might offer reach, this audience places higher trust in relatable "experts" or peers who genuinely use and advocate for sustainable products.

4. Audience Pain Points & Motivations

4.1. Pain Points

  • Lack of Trust/Greenwashing: Difficulty identifying truly sustainable products amidst misleading marketing claims.
  • High Costs: Perceived or actual higher price points for eco-friendly alternatives.
  • Limited Accessibility: Challenges in finding sustainable options in conventional retail channels.
  • Information Overload: Overwhelmed by conflicting information on what is truly sustainable.
  • Sacrifice of Quality/Aesthetics: Fear that sustainable products might compromise on performance, design, or convenience.

4.2. Motivations

  • Environmental Impact: Desire to reduce their carbon footprint, minimize waste, and protect natural resources.
  • Health & Safety: Seeking products free from harmful chemicals for themselves and their families.
  • Ethical Sourcing: Supporting fair labor practices and humane treatment of animals.
  • Inspiring Others: Wanting to lead by example and encourage sustainable practices within their social circles.
  • Sense of Purpose: Aligning their purchasing power with their personal values and contributing to a better future.
  • Durability & Longevity: Investing in products that last, reducing the need for frequent replacements.

5. Preferred Platforms & Content Formats

5.1. Key Platforms

  • Instagram:

* Usage: Visual inspiration, product discovery, community building, short-form video (Reels, Stories).

* Content: Aesthetically pleasing home tours, sustainable lifestyle snippets, product flat lays, behind-the-scenes glimpses of ethical production.

  • TikTok:

* Usage: Quick tips, product demonstrations, educational "explainers" (e.g., "3 ways to reduce plastic"), relatable daily routines.

* Content: Short, engaging videos showcasing product utility, "a day in my sustainable life," myth-busting greenwashing.

  • Pinterest:

* Usage: Idea generation, mood boards, DIY projects, long-term planning for home decor/lifestyle changes.

* Content: Curated boards of sustainable home decor, eco-friendly DIYs, sustainable living tips, product wishlists.

  • YouTube:

* Usage: In-depth reviews, educational content, "how-to" guides, brand story deep dives, unboxing videos.

* Content: Detailed product comparisons, vlogs on sustainable living challenges, interviews with experts, longer-form brand narratives.

  • Blogs/Podcasts:

* Usage: Deep dives into sustainability topics, expert opinions, product research.

* Content: Articles on ethical sourcing, guides to zero-waste living, interviews with brand founders.

5.2. Preferred Content Formats

  • Authentic, Unfiltered Visuals: Less polished, more real-life content resonates.
  • Educational Tutorials/How-Tos: Practical advice on using products or adopting sustainable practices.
  • Storytelling: Narratives that highlight the impact, origin, or ethical journey of products.
  • Product Demos & Reviews: Honest assessments of product performance and sustainability claims.
  • Q&A Sessions: Opportunities for direct engagement and transparency.
  • Before & After Transformations: Demonstrating the positive change sustainable choices can bring.

6. Influencer Affinity & Trust Factors

6.1. Ideal Influencer Profile

  • Authenticity & Relatability: They live and breathe sustainable values, not just promote them. Their personal brand aligns seamlessly with the product's mission.
  • Expertise & Knowledge: Possess genuine knowledge about sustainability, ethical sourcing, and product categories.
  • Engaged Community: Have a highly engaged, loyal audience that trusts their recommendations, regardless of follower count (micro/nano influencers often excel here).
  • Transparency: Open about partnerships, potential biases, and their own journey towards sustainability.
  • Strong Storytellers: Can weave compelling narratives around products and their impact.
  • Aesthetic Alignment: Their content style should be appealing and align with the brand's visual identity.

6.2. Trust Factors

  • Genuine Use: Influencers who genuinely incorporate the product into their daily lives.
  • Personal Testimonials: Sharing personal experiences and results.
  • In-depth Reviews: Going beyond surface-level promotion to discuss product features, benefits, and challenges.
  • Alignment of Values: The influencer's personal brand and values must be consistent with the brand's.
  • Disclosure: Clear and honest disclosure of sponsored content.
  • Consistency: A track record of promoting genuinely sustainable and ethical brands.

7. Strategic Recommendations for Influencer Campaign

Based on this audience analysis, here are key strategic recommendations:

  1. Prioritize Micro & Nano-Influencers: These influencers often have higher engagement rates, more authentic connections, and are perceived as more trustworthy by this audience.
  2. Focus on Value Alignment: Select influencers whose personal brand and content deeply resonate with sustainability, ethical living, and conscious consumption.
  3. Emphasize Education & Solutions: Encourage influencers to create content that educates the audience on sustainability topics, provides practical tips, and positions the product as a solution to their pain points.
  4. Leverage Visual Storytelling: Utilize Instagram, TikTok, and Pinterest for visually appealing content that showcases product integration into a sustainable lifestyle.
  5. Demand Authenticity & Transparency: Insist on genuine product use and honest reviews. Provide influencers with ample product time to truly experience and evaluate.
  6. Encourage Community Engagement: Look for influencers who foster active communities and can facilitate discussions around sustainable living.
  7. Diversify Content Formats: Support influencers in creating a mix of content, including unboxings, tutorials, "day in the life" vlogs, and Q&As.
  8. Highlight Key Differentiators: Arm influencers with clear talking points on what makes the brand/product genuinely sustainable (e.g., certifications, materials, ethical practices, impact reports).
  9. Long-Term Partnerships: Consider longer-term collaborations to build deeper trust and allow influencers to genuinely integrate the brand into their content over time.

8. Next Steps

  1. Develop Detailed Influencer Personas: Create 2-3 specific influencer archetypes based on the ideal profiles identified (e.g., "The Zero-Waste Advocate," "The Eco-Conscious Family Blogger").
  2. Begin Influencer Identification & Vetting: Start researching and shortlisting influencers who fit the developed personas and demonstrate strong audience alignment and authenticity.
  3. Refine Messaging Framework: Develop core campaign messages that address audience pain points and highlight motivations, ensuring they are consistent across all influencer content.
  4. Content Brainstorming Session: Collaborate with potential influencers (or internally) on creative content ideas that align with their style and resonate with the target audience.
  5. Establish Campaign KPIs: Define specific, measurable goals for the campaign (e.g., engagement rate, website traffic, conversion rate) that align with audience behavior.

gemini Output

Influencer Campaign Planner: Your Blueprint for Success

Executive Summary: Ignite Your Brand with Strategic Influencer Partnerships

Welcome to your comprehensive Influencer Campaign Planner! In today's dynamic digital landscape, influencer marketing is a powerful engine for brand growth, authentic connection, and measurable results. This document provides a detailed, actionable blueprint to design, execute, and optimize an impactful influencer campaign.

From identifying the perfect brand advocates to crafting compelling content and tracking your return on investment, this planner covers every critical step. Our goal is to empower you with the strategies and tools to forge meaningful partnerships that resonate with your target audience and drive your business objectives forward.


1. Campaign Objectives & Target Audience

Before diving into influencer selection, a clear understanding of your campaign's "why" and "who" is paramount.

1.1. Core Campaign Objectives

  • Brand Awareness: Increase visibility and recognition of your brand or a specific product/service.
  • Audience Engagement: Drive interaction, conversation, and community building around your brand.
  • Lead Generation/Sales: Convert influencer-driven traffic into qualified leads or direct purchases.
  • Content Generation: Acquire high-quality, user-generated content for repurposing across your channels.
  • Brand Sentiment/Perception: Improve brand image, trust, or introduce a new brand narrative.

Example Objective: For our new "Glow & Grow" eco-friendly skincare line, the primary objectives are to achieve 15% increased brand awareness among women aged 25-45 in the US, drive 500 new product trials (via discount codes), and generate 100 pieces of user-generated content within the next quarter.

1.2. Target Audience Definition

  • Demographics: Age, gender, location, income, education.
  • Psychographics: Interests, values, lifestyle, pain points, aspirations.
  • Online Behavior: Preferred social platforms, content consumption habits, trusted sources.

Example Target Audience: Environmentally conscious women, aged 25-45, residing in urban/suburban areas, interested in natural beauty, wellness, and sustainable living. They are active on Instagram and TikTok, follow beauty and lifestyle creators, and value authenticity and transparency in brands.


2. Ideal Influencer Profiles: Finding Your Brand Champions

Identifying the right influencers is the cornerstone of a successful campaign. We'll define the characteristics and criteria for your ideal brand partners.

2.1. Key Influencer Criteria

  • Niche Relevance: The influencer's content and audience must align naturally with your brand's industry and values.
  • Audience Demographics: Their follower base should closely match your target audience (age, gender, interests, location).
  • Engagement Rate: A strong indicator of an active and loyal audience. Look for rates typically above 2-3% (varies by platform and follower count).
  • Content Quality & Aesthetic: Professional, visually appealing, and consistent content that resonates with your brand's image.
  • Authenticity & Trust: Influencers who genuinely connect with their audience and maintain credibility. Avoid those with a history of inauthentic collaborations or purchased followers.
  • Brand Alignment: Their personal values, messaging, and past collaborations should align positively with your brand's ethos.
  • Past Performance: Evidence of successful brand collaborations and positive audience feedback.

2.2. Influencer Tiers & Strategic Application

We recommend a diversified approach, leveraging different tiers of influencers for varied impact:

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

* Strengths: High engagement rates, strong niche communities, perceived authenticity, cost-effective.

* Best for: Driving specific product trials, hyper-targeted campaigns, generating authentic UGC, building long-term advocates.

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

* Strengths: Excellent balance of reach and engagement, often specialized in a particular niche, more professional than Nano but still highly relatable.

* Best for: Building brand awareness within specific communities, driving conversions with trusted recommendations, product launches.

  • Mid-Tier Influencers (100K - 500K followers):

* Strengths: Significant reach, established personal brand, often higher production quality.

* Best for: Broader brand awareness, major product launches, reaching a larger segment of your target audience.

  • Macro-Influencers (500K - 1M+ followers):

* Strengths: Extensive reach, celebrity-like status, high-profile collaborations.

* Best for: Mass market awareness campaigns, major brand announcements, driving significant traffic.

  • Celebrity Influencers (1M+ followers):

* Strengths: Massive reach, instant credibility, significant media attention.

* Best for: Large-scale brand campaigns, global launches, mainstream visibility (often requires substantial budget).

Recommended Mix for "Glow & Grow" Skincare:

  • 60% Micro-Influencers: For authentic reviews, driving trials, and targeted community engagement.
  • 30% Nano-Influencers: For user-generated content, hyper-niche reach, and long-tail advocacy.
  • 10% Mid-Tier Influencers: For broader visibility and leveraging established beauty/wellness voices.

3. Influencer Outreach Strategy & Templates

A professional and personalized outreach approach is crucial for securing partnerships with top-tier influencers.

3.1. Outreach Strategy Principles

  • Research & Personalization: Never send generic emails. Reference specific content, interests, or past work of the influencer.
  • Value Proposition: Clearly articulate what's in it for them (product, payment, exposure, alignment with their audience).
  • Clear Call to Action: State what you want them to do next (schedule a call, reply with their media kit).
  • Professionalism & Brevity: Be concise, respectful, and error-free.
  • Multiple Touchpoints: If no response, follow up once or twice, but respect their decision if they decline.

3.2. Influencer Outreach Templates

Template 1: Initial Contact (Personalized Introduction)

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

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 a while now, and I'm consistently impressed by your [mention specific content, e.g., "authentic skincare reviews" or "commitment to sustainable living"]. Your recent post about [mention a specific post/story] truly resonated with our brand's mission.

At [Your Brand Name], we're passionate about [briefly state your brand's mission/product focus, e.g., "creating high-quality, eco-friendly skincare solutions that nourish both skin and planet"]. We're launching our new "Glow & Grow" line, and we immediately thought of you as an ideal partner to introduce it to your engaged audience.

We believe your audience, with their interest in [mention relevant audience interest, e.g., "natural beauty and conscious consumption"], would genuinely appreciate our commitment to [mention a key brand value, e.g., "clean ingredients and sustainable packaging"].

Would you be open to a brief virtual coffee chat next week to discuss a potential collaboration further and share more about our new line? Please let me know your availability, or if you have a media kit you could share.

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 (If no response after 3-5 business days)

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

Dear [Influencer's Name],

Hope this email finds you well.

I'm just following up on my previous email regarding a potential collaboration with [Your Brand Name] for our new "Glow & Grow" skincare line.

We're genuinely excited about the possibility of partnering with you, given your amazing content around [mention relevant topic] and your highly engaged audience. We truly believe our new eco-friendly products would be a fantastic fit for your community.

If you're interested in learning more, I'd be happy to share additional details or schedule a quick call at your convenience.

Thanks again for your time!

Best regards,

[Your Name]

[Your Title]


Template 3: Proposal / Partnership Details (After initial interest)

Subject: Partnership Proposal: [Your Brand Name] x [Influencer's Name] - "Glow & Grow" Campaign

Dear [Influencer's Name],

Thank you for expressing interest in partnering with [Your Brand Name]! We're thrilled about the potential to collaborate with you on our "Glow & Grow" campaign.

As discussed, our "Glow & Grow" line focuses on [reiterate key product benefits/values]. We envision a partnership where you creatively showcase these products to your audience in a way that feels authentic to your style.

Here's a proposed scope of work for your consideration:

Deliverables:

  • Instagram:

* 1 Static Feed Post (photo or carousel) showcasing the "Glow & Grow" line, including a genuine review and key product benefits.

* 2-3 Instagram Stories (video or photo series) demonstrating product usage or a "day in the life" incorporating the products.

* Required: Tag @[YourBrandHandle], use #[YourBrandHashtag], #[CampaignHashtag], and #ad/ #sponsored.

  • TikTok:

* 1 Video (15-30 seconds) creatively highlighting the "Glow & Grow" line, focusing on [specific product feature, e.g., "sustainable packaging" or "natural glow"].

* Required: Tag @[YourBrandTikTokHandle], use #[YourBrandHashtag], #[CampaignHashtag], and #ad/ #sponsored.

Timeline:

  • Content draft submission: [Date]
  • Content approval: [Date]
  • Live posting: Between [Start Date] and [End Date]

Compensation:

  • [Option A: Flat Fee] A flat fee of $[X] for the agreed-upon deliverables.
  • [Option B: Product + Fee] Product samples of the "Glow & Grow" line (value $[Y]) plus a fee of $[X].
  • [Option C: Affiliate Commission] Product samples plus a [Z]% commission on sales generated using your unique discount code [CODE].

We are also open to discussing a long-term partnership if this initial collaboration is successful.

Please let us know your thoughts on this proposal, and if you have any questions or suggestions. We're flexible and eager to create a mutually beneficial partnership.

Looking forward to your feedback!

Best regards,

[Your Name]

[Your Title]


4. Influencer Contract Terms & Legal Considerations

A clear, legally sound contract protects both your brand and the influencer, ensuring expectations are met.

4.1. Essential Contract Clauses

  • Scope of Work & Deliverables:

* Detailed list of all content pieces (posts, stories, videos, blog posts, etc.), platforms, and minimum/maximum word counts/durations.

* Specific requirements: hashtags, @mentions, links, call-to-actions, approval process.

  • Content Approval Process:

* Number of revision rounds allowed.

* Timeline for brand approval (e.g., 48 hours).

* Who has final approval.

  • Payment Terms:

* Agreed-upon compensation (flat fee, product, commission, hybrid).

* Payment schedule (e.g., 50% upfront, 50% upon completion; or net 30 days after posting).

* Method of payment.

  • Usage Rights & Licensing:

* Clearly define how the brand can repurpose the influencer's content (e.g., for ads, website, social media, print).

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

* Geographic scope of usage.

  • Exclusivity:

* Specify if the influencer cannot promote competing brands during the campaign period (and for how long after).

* Define the scope (e.g., specific product categories, entire industry).

  • Disclosure Requirements:

* Mandate clear and conspicuous disclosure of sponsored content (e.g., #ad, #sponsored, "Paid Partnership" tool).

* Reference relevant regulatory bodies (FTC in the US, ASA in the UK).

  • Timeline & Deadlines:

* Key dates for content submission, approval, and live posting.

* Penalties for missed deadlines (if any).

  • Termination Clause:

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

* Consequences of termination (e.g., pro-rated payment, content removal).

  • Confidentiality:

* Agreement not to disclose proprietary information.

  • Governing Law:

* Which jurisdiction's laws will govern the contract.

  • Indemnification:

* Protection for both parties against legal claims resulting from the partnership.

4.2. Legal & Ethical Considerations

  • FTC Guidelines (USA): Influencers must clearly and conspicuously disclose their material connection to the brand. This means using hashtags like #ad or #sponsored, or the platform's disclosure tools. Disclosure should be easily visible, not hidden in a string of hashtags.
  • International Regulations: Be aware of similar regulations in other countries where your audience resides (e.g., ASA in the UK, CMA in Canada).
  • Intellectual Property: Ensure the contract clearly states who owns the content created and the brand's rights to use it.
gemini Output

Influencer Campaign Planner: Optimized & Finalized Plan

This document outlines a comprehensive plan for executing a successful influencer marketing campaign. It integrates strategic objectives with tactical execution details, covering influencer identification, outreach, contractual agreements, content creation, and robust ROI tracking.


1. Executive Summary

This Influencer Campaign Planner provides a strategic framework for [Your Brand/Company Name]'s upcoming influencer marketing initiative. The campaign aims to [State primary objective, e.g., increase brand awareness, drive product sales, boost website traffic] by leveraging authentic voices within [Target Niche/Industry]. This plan details ideal influencer profiles, professional outreach strategies, robust contractual terms, clear content guidelines, and a comprehensive ROI tracking framework to ensure measurable success and optimize future campaigns.


2. Campaign Overview

  • Campaign Title: [Suggest a campaign title, e.g., "Innovate & Elevate with [Your Brand]", "The [Product Name] Experience"]
  • Campaign Period: [Start Date] – [End Date] (e.g., 8-12 weeks)
  • Primary Objective(s): (SMART Objectives - Specific, Measurable, Achievable, Relevant, Time-bound)

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

* Drive X new leads/sales for [Product/Service] by [Date].

* Generate X user-generated content (UGC) pieces featuring [Product/Service].

* Increase website traffic/social media engagement by X% for [Specific Page/Platform].

  • Target Audience:

* Demographics: [Age Range], [Gender], [Location], [Income Level]

* Psychographics: [Interests], [Values], [Lifestyle], [Pain Points]

  • Key Message(s):

* [Core message 1, e.g., "Experience unparalleled quality with [Product Name]."]

* [Core message 2, e.g., "[Brand Name] empowers your [solve a problem]."]

* [Call to Action, e.g., "Shop now at [Website Link] and use code [Discount Code]!"]

  • Key Products/Services to Promote: [List specific products/services]

3. Ideal Influencer Profiles

Identifying the right influencers is crucial. Our selection criteria focus on authenticity, engagement, and alignment with brand values.

  • Influencer Tiers & Focus:

* Nano-Influencers (1k-10k followers): High engagement rates, niche communities, strong authenticity. Ideal for driving word-of-mouth and detailed product reviews.

* Micro-Influencers (10k-100k followers): Engaged audiences, specific niche authority, good balance of reach and authenticity. Excellent for product launches and sustained engagement.

* Mid-Tier Influencers (100k-500k followers): Broader reach, established authority, suitable for awareness and consideration phases.

* Macro-Influencers (500k-1M+ followers): Significant reach, brand ambassadors, high visibility. Best for major awareness pushes and large-scale campaigns.

* Celebrity Influencers (1M+ followers): Maximum reach, significant brand halo effect. Reserved for high-budget, broad awareness campaigns.

  • Niche/Industry Alignment:

* Influencers must operate within [Specific Industry/Niche, e.g., sustainable fashion, tech gadgets, healthy living, DIY home improvement] and have a genuine interest in related topics.

* Their content should naturally align with [Your Brand]'s offerings and values.

  • Audience Demographics & Psychographics:

* A significant portion (e.g., >60%) of their audience should match our target audience (see Section 2).

* Audience interests should align with our product categories.

  • Engagement Rate:

* Minimum Target: [e.g., 2-3% for Macro, 5-10% for Micro/Nano]

* Look for genuine interactions (comments, shares, saves) over just likes.

  • Content Quality & Aesthetic:

* High-quality visuals (photos, videos), clear audio (for videos).

* Consistent brand aesthetic and professional presentation.

* Authentic and relatable tone of voice.

  • Brand Fit & Values:

* No past controversial content or brand affiliations that conflict with [Your Brand]'s image.

* Demonstrated ethical conduct and transparency.

* Alignment with [Your Brand]'s core values (e.g., sustainability, innovation, community).

  • Past Performance:

* Evidence of successful brand collaborations (if available).

* Ability to drive conversions/engagement for previous partners.


4. Influencer Outreach Strategy & Templates

A structured outreach approach ensures professionalism and maximizes response rates.

4.1. Outreach Strategy

  1. Identification & Vetting:

* Utilize influencer marketing platforms (e.g., AspireIQ, Upfluence, Grin), social media searches, and competitor analysis.

* Thoroughly vet profiles against the criteria in Section 3.

* Create a shortlist with contact information and initial assessment.

  1. Initial Contact (Personalized & Value-Driven):

* Send a personalized email or direct message (DM) expressing genuine admiration for their work.

* Clearly state why they are a good fit for [Your Brand] and the potential for mutual benefit.

* Briefly introduce the campaign concept without overwhelming details.

  1. Follow-Up:

* If no response within 3-5 business days, send a polite follow-up.

* Consider a different channel if the first attempt was via DM.

  1. Proposal & Negotiation:

* Once interest is confirmed, send a detailed proposal outlining deliverables, compensation (initial offer), timeline, and key campaign messages.

* Be open to negotiation, focusing on a win-win outcome.

  1. Onboarding:

* Upon agreement, send a formal contract, content brief, and product shipment details.

* Schedule an introductory call to answer questions and build rapport.

4.2. Outreach Templates

Template 1: Initial Outreach - Email

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

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/TikTok] for a while now, and I'm consistently impressed by your [Specific aspect, e.g., engaging storytelling, unique aesthetic, passion for sustainable living]. Your recent post about [Specific Post/Video] particularly resonated with us.

At [Your Brand Name], we create [Briefly describe your product/service and its unique selling proposition, e.g., innovative eco-friendly home goods designed to simplify daily life]. We're planning an exciting new campaign to [Campaign Objective, e.g., launch our new line of reusable kitchenware] and immediately thought of you as an ideal partner. Your authentic voice and engaged community of [mention their audience niche, e.g., conscious consumers] would be a perfect fit to share our mission.

Would you be open to a brief chat sometime next week to discuss a potential collaboration? I'd love to share more about our vision and how we believe we could create something truly impactful together.

Looking forward to hearing from you!

Best regards,

[Your Name]

[Your Title]

[Your Brand Name]

[Your Website]

[Your Social Media Links]


Template 2: Follow-Up - Email

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

Hi [Influencer's Name],

Hope you're having a great week!

Just wanted to gently follow up on my email from [Date of previous email] regarding a potential collaboration with [Your Brand Name]. We're still very keen on the idea of working with you to [reiterate a key benefit or campaign goal].

If you've had a chance to review it and are interested, please let me know. If not, no worries at all, but we'd still love to hear your thoughts.

Thanks again for your time and consideration!

Best regards,

[Your Name]


Template 3: Collaboration Offer - Email (After initial interest confirmed)

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

Hi [Influencer's Name],

Thanks again for expressing interest in collaborating with [Your Brand Name]! It was great to [mention previous interaction, e.g., chat/hear from you].

As discussed, we're excited about the possibility of you joining our upcoming campaign focused on [Campaign Theme]. We believe your [Specific quality, e.g., creative approach/authentic voice] would be invaluable in sharing our [Product/Service] with your audience.

Here’s a brief overview of our proposed collaboration:

  • Campaign Focus: [Briefly reiterate campaign goal/product]
  • Proposed Deliverables:

* [e.g., 1x Instagram Feed Post (static image/carousel) and 2x Instagram Stories]

* [e.g., 1x TikTok Video (15-30 seconds)]

* [e.g., 1x YouTube Video Integration (30-60 seconds)]

* [Specify any additional requirements, e.g., usage rights, duration of posts]

  • Key Messages to Include: [List 2-3 core messages/CTAs]
  • Mandatory Tags/Hashtags: @[YourBrandHandle], #[YourBrandHashtag], #[CampaignHashtag], #ad, #sponsored
  • Compensation: We are offering a fee of [Amount, e.g., $X,XXX] for the agreed deliverables. We also provide [Product Name] as part of the collaboration.
  • Timeline: Content to be posted by [Date], with draft submission for approval by [Date].
  • Usage Rights: [e.g., We request usage rights for your content on our social channels and website for 3 months.]

We've attached a detailed content brief that outlines the creative direction, key messaging, and logistical details. Please let us know if these terms work for you or if you have any questions or alternative suggestions. We're open to discussing further to ensure a mutually beneficial partnership.

We're really looking forward to the potential of working together!

Warmly,

[Your Name]

[Your Title]

[Your Brand Name]

[Your Website]

[Attached: Content Brief, Draft Contract (optional at this stage)]


5. Influencer Contract Terms & Agreements

A clear, legally sound contract protects both parties and sets expectations.

  • Parties Involved: Clearly identify [Your Brand Name] and the Influencer.
  • Scope of Work & Deliverables:

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

* Minimum/maximum word count, video length, number of images.

* Mandatory elements (e.g., product display, specific talking points, CTAs).

* Required tags, mentions, and hashtags (#ad, #sponsored, or equivalent disclosure).

* Submission deadlines for drafts and final content.

  • Compensation & Payment Terms:

* Agreed-upon fee (flat fee, per-post, commission, gifted product).

* Payment schedule (e.g., 50% upfront, 50% upon content approval; Net 30 days after campaign completion).

* Method of payment.

  • Content Rights & Usage:

* Brand's Usage Rights: Specify how [Your Brand] can use the influencer's content (e.g., reposting on brand channels, website, paid ads, email marketing). Define the duration (e.g., 6 months, 1 year, perpetual) and geographic scope.

* Influencer's Usage Rights: Typically, influencers retain ownership but grant a license to the brand.

  • Exclusivity Clause:

* Prevent the influencer from promoting competitor brands during the campaign period and for a specified time afterward (e.g., 30-90 days). Define the competitive set.

  • Disclosure Requirements (FTC/ASA/CMA Compliance):

* Mandatory use of clear disclosure hashtags like #ad, #sponsored, or platform-specific tools.

* Emphasize transparency and authenticity.

  • Approval Process:

* Number of revisions allowed for content drafts.

* Timeline for brand approval (e.g., 48-72 hours).

* Clear process for feedback and final sign-off.

  • Confidentiality:

* Influencer agrees not to disclose proprietary campaign information.

  • Termination Clause:

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

* Consequences of termination (e.g., pro-rata payment, content removal).

  • Indemnification:

* Protecting the brand from legal claims arising from the influencer's actions (e.g., copyright infringement, misleading claims).

  • Governing Law:

* Specify the jurisdiction whose laws will govern the contract.


6. Content Guidelines & Brief

A detailed content brief ensures creative alignment and consistent messaging.

6.1. General Content Guidelines

  • Overall Theme/Vibe: [e.g., Authentic, aspirational, educational, fun, inspirational]
  • Brand Voice: [e.g., Friendly, expert, innovative, approachable, premium]
  • Product Focus: Clearly identify the product(s) to be featured.
  • Mandatory Inclusions:

* Product Integration: How the product should be naturally incorporated (e.g., shown in use, part of a daily routine).

* Key Messages: Reiterate 2-3 essential messages (see Section 2).

* Call to Action (CTA): Clear instruction (e.g., "Shop now at [link in bio]", "Use code [DISCOUNT] for X% off").

* Hashtags: #[YourBrandHashtag], #[CampaignHashtag], #ad, #sponsored, #partner.

* Tagging: @[YourBrandHandle], @[RelevantPartnerHandles].

* Landing Page: Direct users to [Specific URL, e.g., product page, landing page].

  • Prohibited Content:

* Negative or disparaging remarks about competitors.

* Offensive, explicit, or controversial content.

* Misleading claims about the product/service.

* Use of copyrighted music/imagery without license.

  • Authenticity: Encourage influencers to use their own voice and style while adhering to guidelines. The goal is genuine recommendations.
  • Quality Standards: High-resolution images, well-lit videos, clear audio.

6.2. Example Content Brief Structure

Campaign Name: [Campaign Title]

Influencer: [Influencer's Name]

Brand Contact: [Your Name/Email]

Product(s) to Feature: [List products, include links to product pages/images]

1. Campaign Objectives (for Influencer):

  • To [e.g., drive awareness of our new product line].
  • To highlight [specific product features/benefits].
  • To encourage audience to [CTA, e.g., visit our website, use discount code].

2. Target Audience:

  • [Briefly describe the audience you want the influencer to reach, e.g., young professionals interested in sustainable living.]

3. Key Messages & Talking Points:

  • Core Message 1: [e.g., "[Product Name] makes [benefit] easier than ever."]
  • Core Message 2: [e.g., "Experience the quality and innovation of [Your Brand]."]
  • Optional Points: [e.g., "Perfect for busy mornings," "Eco-friendly choice."]

4. Deliverables & Requirements:

  • Platform: Instagram

* 1x Feed Post: (Static Image/Carousel)

* Visuals: [e.g., High-quality image(s) showing 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);}});}