Influencer Campaign Planner
Run ID: 69cba15c61b1021a29a8addd2026-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.

Influencer Campaign Planner: Step 1 of 3 - Audience Analysis

This document provides a comprehensive analysis of the target audience, a critical first step in planning an effective influencer marketing campaign. Understanding your audience profoundly impacts influencer selection, content strategy, platform choice, and ultimately, campaign ROI.


1. The Imperative of Deep Audience Understanding

Before engaging any influencer, it is paramount to have a granular understanding of the target audience. This analysis moves beyond basic demographics to uncover psychographics, behavioral patterns, and content consumption habits. An influencer campaign's success hinges on reaching the right people with the right message, delivered by the right messenger, on the right platform.

2. Key Dimensions of Audience Analysis

To build an effective influencer strategy, we must dissect the audience across several crucial dimensions:

2.1. Demographics

These are the foundational data points that define who your audience is.

  • Age Range: Crucial for understanding life stage, disposable income, and content preferences.
  • Gender Identity: Important for tailoring messaging and visual content, though modern campaigns often embrace gender fluidity.
  • Geographic Location: City, region, country – essential for localized campaigns or understanding cultural nuances.
  • Income Level/Socioeconomic Status: Impacts purchasing power and aspirational messaging.
  • Education Level: Can influence the complexity of messaging and preferred content formats.
  • Occupation/Industry: Provides insights into daily routines, pain points, and professional interests.
  • Family Status: Single, married, parents – affects priorities and purchasing decisions.

2.2. Psychographics

These insights delve into the "why" behind audience behavior, revealing their motivations, values, and lifestyle.

  • Interests & Hobbies: What do they do in their free time? What topics do they actively seek out? (e.g., fitness, gaming, sustainable living, fashion, technology).
  • Values & Beliefs: What principles guide their decisions? (e.g., environmentalism, social justice, authenticity, community, innovation).
  • Lifestyle: How do they live? (e.g., active, minimalist, luxury-seeking, budget-conscious, tech-savvy).
  • Attitudes & Opinions: Their general outlook on life, brands, and specific product categories.
  • Personality Traits: Are they adventurous, cautious, trend-followers, or trend-setters?
  • Pain Points & Challenges: What problems are they trying to solve? What frustrations do they experience?
  • Aspirations & Goals: What do they strive for in life? What kind of person do they want to be?

2.3. Behavioral Insights

Understanding how your audience interacts with content and makes purchasing decisions is vital.

  • Online Behavior:

* Preferred Social Media Platforms: Which platforms do they spend the most time on? (e.g., TikTok, Instagram, YouTube, X, Pinterest, LinkedIn, Facebook, Twitch).

* Content Consumption Habits: Do they prefer short-form video, long-form tutorials, live streams, blog posts, static images, or carousels?

* Engagement Patterns: Do they primarily watch, comment, share, or create content?

* Device Usage: Mobile-first, desktop, or mixed?

  • Purchasing Behavior:

* Decision-Making Process: Are they impulse buyers, do they research extensively, or rely on peer recommendations?

* Influences on Purchase: What factors drive their buying decisions? (e.g., price, quality, brand reputation, peer reviews, influencer endorsements, sustainability).

* Brand Loyalty: Are they loyal to specific brands, or open to trying new ones?

* Shopping Channels: Online, in-store, or a mix?


3. Current Trends & Data Insights Shaping Audience Engagement

The digital landscape is constantly evolving, and understanding these trends is crucial for effective audience analysis:

  • Authenticity Over Perfection: Audiences, especially Gen Z and younger Millennials, prioritize genuine, relatable content over highly polished, unrealistic portrayals. This drives the success of micro and nano-influencers.
  • Video Dominance: Short-form video (TikTok, Instagram Reels, YouTube Shorts) continues its explosive growth, demanding dynamic, engaging content. Long-form video (YouTube) remains critical for in-depth reviews and tutorials.
  • Community & Niche Interests: Audiences are increasingly seeking out niche communities where their specific interests are understood and celebrated. This necessitates targeting influencers who genuinely resonate with these specific groups.
  • Creator Economy Growth: The sheer volume of content creators means audiences have more choice, making it harder to capture attention. High-quality, value-driven content is key.
  • Social Commerce Integration: The lines between social media and e-commerce are blurring, with in-app shopping features and direct links becoming standard. Audiences expect seamless transitions from discovery to purchase.
  • Trust in Peer Recommendations: Consumers often trust influencers they follow more than traditional advertisements, especially when the influencer's values align with their own.
  • Privacy Concerns & Data Literacy: Audiences are more aware of data collection and value brands that respect their privacy. Transparency in sponsored content is non-negotiable.

4. Hypothetical Target Audience Profile: "The Conscious Explorer" (Example)

To illustrate the application of these dimensions, let's assume, for demonstration purposes, that our campaign is for a new sustainable travel accessories brand aiming to promote its eco-friendly backpacks and reusable travel kits.

4.1. Demographics

  • Age Range: 24-38 years old (Young Millennials & older Gen Z).
  • Gender Identity: Predominantly female (60%) but strong male and non-binary representation (40%).
  • Geographic Location: Urban and suburban areas across North America and Western Europe, with a focus on major cities known for outdoor activities or easy access to nature.
  • Income Level: Mid to upper-mid income ($50k-$100k+), with disposable income for travel and premium, ethically-sourced products.
  • Education Level: College-educated or pursuing higher education.
  • Occupation: Young professionals in various fields (tech, creative industries, healthcare, education), freelancers, or remote workers.
  • Family Status: Mostly single, DINK (Dual Income No Kids) couples, or young families with 1-2 small children.

4.2. Psychographics

  • Interests & Hobbies: Sustainable travel, outdoor adventures (hiking, camping, glamping), photography, wellness, minimalism, ethical consumption, cultural immersion, eco-tourism, personal growth.
  • Values & Beliefs: Environmental responsibility, social impact, authenticity, experiences over possessions, conscious consumerism, supporting ethical brands, personal well-being.
  • Lifestyle: Active, curious, adventurous, health-conscious, digitally native, value experiences, prioritize quality and durability, seek out unique and off-the-beaten-path destinations.
  • Attitudes & Opinions: Skeptical of greenwashing, critical of over-tourism, believe in making a positive impact through their choices, value transparency from brands.
  • Pain Points: Finding genuinely sustainable travel gear, products that are durable and functional for various travel types, reducing their environmental footprint while traveling, ethical sourcing.
  • Aspirations: To explore the world responsibly, have authentic travel experiences, minimize their environmental impact, inspire others to travel sustainably.

4.3. Behavioral Insights

  • Online Behavior:

* Preferred Social Media Platforms: Instagram (visual inspiration, travel guides, Reels), YouTube (vlogs, gear reviews, destination guides), Pinterest (travel planning, aesthetic inspiration), TikTok (short travel snippets, hacks). Less active on Facebook/X for personal use.

* Content Consumption Habits: Engages with high-quality photography and videography, personal travel stories, ethical brand spotlights, practical travel tips, packing guides, "day in the life" vlogs. Watches both short-form (Reels/TikTok) for quick inspiration and long-form (YouTube) for detailed reviews.

* Engagement Patterns: Likes, saves (for future reference), shares relevant content, comments with questions or personal experiences. Actively seeks out user-generated content and reviews.

  • Purchasing Behavior:

* Decision-Making Process: Researches extensively online (blogs, reviews, YouTube), seeks recommendations from trusted sources (influencers, friends), prioritizes product longevity and brand values over lowest price.

* Influences on Purchase: Authenticity of the influencer, alignment with their values, product features that solve specific travel problems (e.g., durability, organization, lightweight), positive reviews from like-minded individuals.

* Brand Loyalty: High loyalty to brands that consistently deliver on quality, sustainability, and ethical practices. Willing to pay a premium for these attributes.

* Shopping Channels: Primarily online (brand websites, specialty eco-friendly retailers), but might visit flagship stores for tactile experience before purchasing online.


5. Recommendations for Deeper Analysis & Next Steps

This hypothetical profile provides a strong foundation. For your specific campaign, we recommend the following to refine this audience analysis:

  1. Leverage Existing Data:

* CRM Data: Analyze your current customer database for demographics, purchase history, and engagement.

* Website Analytics: Google Analytics can reveal demographics, interests, and how users interact with your content.

* Social Media Insights: Use built-in analytics from platforms like Instagram, Facebook, and TikTok to understand your current followers' demographics and interests.

* Past Campaign Performance: Review data from previous marketing efforts to identify what resonated with your audience.

  1. Conduct Primary Research:

* Surveys & Polls: Directly ask your audience about their preferences, pain points, and content consumption habits.

* Focus Groups/Interviews: Gain qualitative insights into motivations, perceptions, and decision-making processes.

* Social Listening Tools: Monitor conversations around your brand, industry, and competitors to identify trends, sentiment, and key influencers within your niche.

  1. Competitor Analysis:

* Identify who your competitors are targeting and which influencers they are working with. Analyze the performance of their influencer campaigns.

  1. Define Audience Segments:

* If your brand appeals to multiple distinct groups, create separate profiles for each segment. This allows for more targeted influencer selection and messaging.

  1. Create Audience Personas:

* Develop detailed, semi-fictional representations of your ideal customers based on the gathered data. Give them names, backstories, and specific goals to make them more tangible.

Impact on Influencer Selection:

This detailed audience analysis directly informs the ideal influencer profile:

  • Relevance: Influencers whose content, values, and audience align perfectly with "The Conscious Explorer" persona.
  • Platform Alignment: Prioritizing Instagram, YouTube, and TikTok influencers who specialize in travel, outdoor, and sustainable living content.
  • Content Style: Influencers known for authentic storytelling, high-quality visuals, and informative reviews.
  • Audience Demographics: Influencers with a significant following within the 24-38 age range, with similar geographic distribution.
  • Engagement Metrics: Influencers whose audience actively engages with content related to sustainability, travel, and lifestyle.

By thoroughly understanding your audience, you can strategically select influencers who are not just popular, but truly resonant and capable of driving meaningful engagement and conversion for your brand.

gemini Output

Influencer Campaign Planner: Your Blueprint for Impactful Partnerships

Unlock Brand Growth Through Strategic Influencer Collaborations

Welcome to your comprehensive guide for planning and executing a high-impact influencer marketing campaign. In today's dynamic digital landscape, authentic voices drive genuine connections. This planner provides the strategic framework, actionable templates, and essential guidelines to forge successful partnerships, amplify your brand message, and achieve measurable results.


1. Campaign Objectives & Target Audience

Before diving into influencer selection, it's crucial to define what success looks like and who you aim to reach.

1.1. Campaign Objectives (SMART Goals)

Clearly outline your primary and secondary goals for this campaign. Examples include:

  • Brand Awareness: Increase brand mentions, impressions, or followers by X% within [timeframe].
  • Engagement: Boost average engagement rate on influencer content by X% compared to industry benchmarks.
  • Website Traffic: Drive X unique visitors to a specific landing page using influencer links.
  • Lead Generation: Generate X qualified leads through influencer promotions.
  • Sales/Conversions: Achieve X sales or sign-ups directly attributed to influencer campaigns.
  • Content Generation: Acquire X pieces of high-quality user-generated content for repurposing.

1.2. Target Audience Profile

Deeply understand who you want to influence.

  • Demographics: Age, gender, location, income, education.
  • Psychographics: Interests, values, lifestyle, pain points, aspirations, online behavior.
  • Platforms: Where do they spend most of their time online? (e.g., Instagram, TikTok, YouTube, Pinterest, Blogs, LinkedIn).
  • Content Preferences: What kind of content resonates with them? (e.g., tutorials, reviews, challenges, lifestyle vlogs, educational posts).

2. Ideal Influencer Profiles: Finding Your Perfect Voice

Selecting the right influencers is paramount to your campaign's success. Use these criteria to identify partners who genuinely align with your brand and audience.

2.1. Key Profile Characteristics

  • Niche & Expertise: Do they genuinely operate within a relevant niche that aligns with your product/service? Do they have credible expertise or experience?
  • Audience Demographics & Psychographics: Ensure their audience closely matches your target audience defined in Section 1.2. Request audience insights if available.
  • Authenticity & Brand Alignment: Does their personal brand, values, and content style naturally fit with your brand's image and messaging? Avoid forced collaborations.
  • Engagement Rate: High follower counts are less important than high engagement. Look for likes, comments, shares, and saves relative to follower count (typically 2-10% is good, varies by platform/niche).
  • Content Quality & Aesthetic: Do they produce high-quality, visually appealing, and well-edited content that meets your brand's standards?
  • Past Campaign Performance: Have they worked with similar brands successfully? Do they disclose sponsored content transparently? (Check for #ad, #sponsored, etc.)
  • Follower Growth & Authenticity: Look for consistent, organic growth. Be wary of sudden spikes or unusually high follower-to-engagement ratios, which could indicate bot activity.
  • Professionalism & Responsiveness: Are they easy to communicate with? Do they meet deadlines? (This will become apparent during outreach).
  • Reach Tier:

* Nano-Influencers (1k-10k followers): High engagement, niche focus, authentic.

* Micro-Influencers (10k-100k followers): Strong community, good engagement, growing reach.

* Mid-Tier Influencers (100k-500k followers): Broader reach, still good engagement.

* Macro-Influencers (500k-1M+ followers): Significant reach, can be more expensive, engagement might be lower.

* Celebrity/Mega-Influencers (1M+ followers): Massive reach, high cost, often managed by agencies.

2.2. Influencer Vetting Checklist

  • [ ] Audience demographics align with target audience.
  • [ ] Engagement rate is healthy (e.g., >3% for micro, >1% for macro).
  • [ ] Content quality is high and on-brand.
  • [ ] Past sponsored content is disclosed transparently.
  • [ ] No history of controversial posts or brand conflicts.
  • [ ] Audience sentiment towards influencer is generally positive.
  • [ ] Consistent posting schedule.

3. Influencer Outreach Strategy: Making the First Connection

Your initial outreach sets the tone for the entire partnership. Aim for personalization, clarity, and professionalism.

3.1. Outreach Best Practices

  • Personalization is Key: Research each influencer. Reference specific content they've created or aspects of their profile that resonate with your brand.
  • Be Clear & Concise: State who you are, why you're reaching out, and what you're proposing.
  • Highlight Mutual Value: Explain what's in it for them – beyond just payment (e.g., access to an innovative product, alignment with their audience, creative freedom).
  • Provide Next Steps: Clearly outline what you'd like them to do next (e.g., schedule a call, review a brief).
  • Choose the Right Channel: Instagram DM, professional email (often found in their bio or media kit), or contact via their agent. Email is generally preferred for official proposals.
  • Follow Up: A polite follow-up after 3-5 business days is appropriate if you haven't heard back.

3.2. Outreach Template: Initial Contact Email

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

Dear [Influencer's Name/Handle],

My name is [Your Name] and I'm the [Your Title] at [Your Brand Name]. We've been following your work on [Platform, e.g., Instagram, TikTok] for some time now, and we're particularly impressed by your [mention specific content, e.g., "authentic reviews of sustainable products," "creative tutorials," "engaging travel vlogs"]. Your approach to [specific aspect, e.g., "showcasing eco-friendly living," "making complex topics accessible"] truly resonates with our brand values.

At [Your Brand Name], we [briefly describe what your brand does and its mission/product]. We believe your audience of [mention a key audience characteristic, e.g., "conscious consumers," "adventure seekers," "tech enthusiasts"] would genuinely appreciate our [product/service, e.g., "new line of ethically sourced skincare," "innovative smart home device"].

We're currently planning an exciting campaign to [mention campaign goal, e.g., "launch our new product," "raise awareness for sustainable practices"] and we immediately thought of you as a perfect partner. We envision a collaboration where you could [briefly suggest content idea, e.g., "create a review of our product," "integrate our service into your daily routine," "host a giveaway"] to share your authentic experience with your followers.

We're flexible and keen to hear your creative ideas on how you could best integrate [Your Brand Name] into your unique content style.

Would you be open to a brief call next week to discuss this potential partnership further? Please let me know your availability, or if you prefer, I can send over a more detailed brief for your review.

Thank you for your time and consideration. We look forward to the possibility of working together!

Best regards,

[Your Name]

[Your Title]

[Your Brand Name]

[Your Website]

[Your Social Media Link (Optional)]


4. Influencer Contract & Partnership Terms: Building Strong Agreements

A clear, comprehensive contract protects both parties and ensures a smooth collaboration. Always consult legal counsel for final contract review.

4.1. Essential Contract Terms

  • Campaign Overview & Objectives: Reiterate the campaign goals and the role of the influencer.
  • Deliverables:

* Quantity & Type: E.g., 1 Instagram feed post, 3 Instagram Stories, 1 YouTube video.

* Specific Requirements: E.g., minimum video length, specific product features to highlight, required hashtags/tags.

* Platforms: Specify where content will be posted.

* Timeline: Deadlines for content submission, approval, and publication.

  • Payment Terms:

* Compensation: Clearly state the agreed-upon fee (flat fee, per post, commission, product value).

* Payment Schedule: E.g., 50% upfront, 50% upon content publication; or net 30 days post-campaign completion.

* Payment Method: E.g., bank transfer, PayPal.

  • Content Rights & Usage:

* Ownership: Who owns the original content? (Typically the influencer).

* Usage Rights: Grant your brand specific rights to repost, repurpose, or use the content in your own marketing channels (e.g., website, ads, social media) for a specified duration and territory. Clearly define if this requires additional payment.

* Exclusivity:

* Product/Category Exclusivity: Prohibit the influencer from promoting competing products/services for a specified period (e.g., 30-90 days) during and after the campaign.

Brand Exclusivity: Less common, but can prohibit working with any* other brand during the campaign.

  • Disclosure Requirements:

* Mandate clear and conspicuous disclosure of sponsored content as per FTC guidelines (e.g., #ad, #sponsored, "Paid Partnership with [Brand Name]").

* Specify placement (e.g., top of caption, first few seconds of video).

  • Content Approval Process:

* Specify review stages (e.g., draft script/storyboard, final content).

* Define revision limits (e.g., 1-2 rounds of revisions).

* State approval deadlines.

  • Key Performance Indicators (KPIs) & Reporting:

* Confirm metrics to be tracked (e.g., impressions, reach, engagement, clicks).

* Specify reporting requirements (e.g., screenshots of insights, final report within X days of campaign end).

  • Termination Clauses: Conditions under which either party can terminate the agreement (e.g., breach of contract, failure to meet deadlines, negative publicity).
  • Confidentiality: Non-disclosure of campaign details, product information, or payment terms.
  • Governing Law: Jurisdiction for legal disputes.
  • Indemnification: Protection against legal claims arising from the influencer's actions.

5. Content Guidelines & Creative Brief: Crafting Engaging Stories

A detailed creative brief empowers influencers to produce content that resonates with their audience while meeting your brand's objectives.

5.1. Core Campaign Messaging

  • Key Message(s): What is the one core idea or benefit you want to communicate?
  • Brand Voice & Tone: Describe your brand's personality (e.g., friendly, authoritative, playful, sophisticated).
  • Call to Action (CTA): What do you want the audience to do? (e.g., "Shop now at [link]," "Learn more at [website]," "Follow @[yourbrand]," "Use code [discount code]").

5.2. Content Format & Requirements

  • Platform Specifics:

* Instagram: Feed post (photo/carousel), Reels, Stories (video/static), IGTV, Live.

* TikTok: Short-form video, specific trends/sounds.

* YouTube: Long-form video, Shorts.

* Blog: Written review, integrated post.

* Pinterest: Idea Pin, static Pin.

  • Mandatory Elements:

* Product/Service Integration: How should the product be featured? (e.g., in use, styled, demonstrated).

* Mentions/Tags: @[YourBrandHandle], specific people/accounts.

* Hashtags: #YourBrandCampaign, #YourBrandName, #ProductName, relevant niche hashtags.

* Links: Specific UTM-tracked links to landing pages, product pages.

* Disclosure: #ad, #sponsored, "Paid partnership with [Brand Name]".

  • Visual & Audio Guidelines:

* Aesthetic: Any specific color palettes, lighting, or visual styles?

* Music/Sounds: Any preferred or forbidden music types?

* Product Placement: How should the product appear in shots?

  • "Do's and Don'ts":

* Do's: Be authentic, showcase genuine enthusiasm, integrate naturally, use high-quality visuals, engage with comments.

* Don'ts: Make exaggerated claims, use misleading information, badmouth competitors, include offensive content, use copyrighted material without permission.

5.3. Content Approval Workflow

  • Draft Submission: Influencer submits content draft (e.g., script, storyboard, unedited video) by [Date].
  • Review Period: Brand reviews content within [X business days].
  • Feedback & Revisions: Brand provides clear, actionable feedback. Influencer makes revisions.
  • Final Approval: Brand provides final approval.
  • Publication: Influencer publishes content by [Date/Time].
  • Reporting: Influencer shares analytics/screenshots within [X days] of publication.

6. ROI Tracking & Measurement Framework: Proving Campaign Success

Measuring your campaign's return on investment (ROI) is crucial for optimizing future efforts and demonstrating value.

6.1. Key Performance Indicators (KPIs)

Tailor your KPIs to your campaign objectives (from Section 1.1).

  • Awareness:

* Impressions/Reach: Total unique views and total times content was displayed.

* Brand Mentions: Number of times your brand is mentioned (excluding the influencer's post).

* Follower Growth: Increase in your brand's social media followers.

* Sentiment Analysis: Positive, neutral, or negative comments/mentions.

  • Engagement:

* Engagement Rate: (Likes + Comments + Shares + Saves) / Reach or Followers.

* Comments: Quality and quantity of audience interaction.

* Shares/Saves: Indicates content value and resonance.

  • Traffic:

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

* Website Visits: Number of unique visitors from influencer content (tracked via UTMs).

* Time on Site/Pages per Session: Indicates quality of traffic.

  • Conversions/Sales:

* Conversion Rate: Number of conversions / Clicks.

* Sales Revenue: Total revenue generated directly from influencer codes/links.

* Lead Generation: Number of sign-ups, downloads, or inquiries.

* Cost Per Acquisition (CPA): Total campaign cost / Number of conversions.

6.2. Tracking Tools & Methods

  • UTM Parameters: Use unique UTM tags for every influencer link to track traffic sources, campaigns, and content in Google Analytics or similar tools.

* Example: `yourwebsite.com/product?utm_source=instagram&utm_medium=influencer&utm_campaign=

gemini Output

Influencer Campaign Planner: Optimized & Finalized Strategy

This document outlines a comprehensive, actionable plan for your influencer marketing campaign, covering ideal influencer profiles, outreach strategies, contract essentials, content guidelines, and a robust ROI tracking framework.


1. Campaign Overview & Objectives

Campaign Goal: [Insert Specific Campaign Goal, e.g., Increase brand awareness by 20%, Drive 15% increase in product sales, Generate 1000 qualified leads for new product launch]

Target Audience: [Describe your target demographic, e.g., Gen Z females, ages 18-24, interested in sustainable fashion and beauty products, located in urban areas of North America.]

Core Message: [What single, compelling message do you want to convey? e.g., "Experience effortless style and sustainability with [Your Brand's Product]."]

Desired Outcome: A successful influencer campaign that effectively reaches the target audience, drives engagement, and achieves measurable business objectives.


2. Ideal Influencer Profiles

Identifying the right influencers is crucial. Our strategy focuses on authenticity, relevance, and engagement over mere follower count.

2.1 Target Audience Alignment:

  • Demographics: Influencer's audience must match your brand's target demographic (age, gender, location, interests).
  • Psychographics: Influencer's audience values and lifestyle should align with your brand's ethos.

2.2 Influencer Tiers & Focus:

We recommend a tiered approach to maximize reach and authenticity.

  • Nano-Influencers (1k-10k followers): High engagement rates, niche communities, perceived authenticity. Ideal for driving trust and word-of-mouth.
  • Micro-Influencers (10k-100k followers): Strong engagement, specific niches, growing influence. Excellent for targeted campaigns and product reviews.
  • Macro-Influencers (100k-1M followers): Broader reach, established credibility. Good for brand awareness and driving traffic.
  • Celebrity/Mega-Influencers (1M+ followers): Massive reach, high visibility. Reserved for large-scale awareness campaigns with significant budget.

Recommendation: Prioritize a mix of Nano and Micro-influencers for authentic engagement and cost-effectiveness, supplementing with select Macro-influencers for broader reach where budget allows.

2.3 Key Selection Criteria:

  • Niche Relevance: Does their content align directly or indirectly with your product/service category?
  • Engagement Rate: (Likes + Comments + Shares) / Followers. Aim for >3% for macro, >5% for micro, >8% for nano.
  • Audience Authenticity: Check for bot followers, sudden spikes in follower count, or unusually generic comments. Tools like HypeAuditor or SparkToro can assist.
  • Brand Alignment: Do their personal brand values, tone of voice, and aesthetic align with yours? Avoid influencers with controversial content or past behavior.
  • Content Quality: High-quality visuals, clear audio/video, compelling storytelling.
  • Past Collaborations: Review previous sponsored content for integration style and disclosure practices.
  • Communication & Professionalism: Responsiveness and ease of communication during initial outreach.

2.4 Influencer Identification Tools:

  • Social Media Native Search: Instagram, TikTok, YouTube search for relevant hashtags and keywords.
  • Influencer Marketing Platforms: Upfluence, Grin, AspireIQ, CreatorIQ (offer advanced filtering and analytics).
  • Audience Demographics Tools: Use platform insights or third-party tools to verify audience data.
  • Manual Vetting: Always manually review profiles for fit, authenticity, and content quality.

3. Outreach Strategy & Templates

A personalized and value-driven outreach approach is essential for securing top talent.

3.1 Outreach Strategy:

  • Research First: Understand their content, audience, and previous brand collaborations. Personalize every message.
  • Clear Value Proposition: Immediately convey why this collaboration is beneficial for them.
  • Transparency: Be clear about expectations, compensation, and the timeline.
  • Multi-Channel Approach: Use email primarily, but follow up on social media (DM) if no response.

3.2 Outreach Templates:

Template 3.2.1: Initial Contact Email (Personalized)

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

Body:

Hi [Influencer's Name],

My name is [Your Name] and I'm the [Your Role] at [Your Brand Name]. I've been following your work on [Platform, e.g., Instagram/TikTok] for a while, and I'm particularly impressed by your [Specific content piece or style, e.g., "authentic storytelling around sustainable living" or "creative approach to beauty tutorials"]. Your audience's engagement with [specific post/video] truly stood out to us.

At [Your Brand Name], we're passionate about [Your Brand's Mission/Values, e.g., "empowering individuals through sustainable fashion" or "creating innovative tech solutions"]. We're launching an exciting new campaign focused on [Campaign Theme, e.g., "showcasing how easy and stylish sustainable choices can be"] and we immediately thought of you as an ideal partner.

We believe your unique voice and engaged community would be a perfect fit to introduce our [Product/Service Name] to a wider audience. Our [Product/Service] aligns well with your content around [Influencer's Niche, e.g., "eco-friendly lifestyles/tech reviews"].

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

Looking forward to hearing from you!

Best regards,

[Your Name]

[Your Title]

[Your Brand Name]

[Your Website]

[Your Social Media Link]


Template 3.2.2: Follow-Up Email (If no response after 3-5 business days)

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

Body:

Hi [Influencer's Name],

Hope you're having a great week!

I just wanted to follow up on my email from [Date of previous email] regarding a potential collaboration with [Your Brand Name] for our upcoming [Campaign Theme] campaign.

We're really keen to explore how your unique content style and engaged audience could help us share the story of [Your Brand's Product/Service]. We envision a partnership where you have creative freedom to genuinely integrate our [Product/Service] in a way that resonates with your followers.

If now isn't the right time, no worries at all. But if you're interested, please let me know your availability for a quick 15-minute call next week.

Thanks again for your time and consideration.

Best,

[Your Name]


4. Contract Terms & Legal Considerations

A clear, legally sound contract protects both parties and ensures smooth execution. Always consult legal counsel for final contract review.

4.1 Key Contract Clauses:

  • Scope of Work & Deliverables:

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

* Minimum content requirements (e.g., duration of video, number of product mentions).

* Key messaging points to include.

* Specific hashtags and tags required.

* Timeline for content creation, submission for review, and publication.

  • Compensation:

* Agreed-upon fee (flat fee, per post, retainer).

* Payment schedule (e.g., 50% upfront, 50% upon content approval/publication).

* Payment method (bank transfer, PayPal).

* Any additional perks (free products, affiliate commission).

  • Content Ownership & Usage Rights:

* Who owns the intellectual property of the created content? (Typically, influencer owns it, but grants brand license).

* Brand's right to repost, reshare, or repurpose content across its own channels (website, social media ads) for a specified period (e.g., 1 year) and scope (organic, paid).

* Clarity on whether the brand can edit or modify the content.

  • Disclosure Requirements:

* Mandatory inclusion of clear and conspicuous disclosures (e.g., #Ad, #Sponsored, "Paid Partnership with [Brand Name]") per FTC (US), ASA (UK), or local regulatory guidelines.

* Influencer's responsibility to adhere to these guidelines.

  • Exclusivity:

* Period during which the influencer cannot promote competing brands or products.

* Geographic scope of exclusivity.

  • Approval Process:

* Brand's right to review and request revisions to content before publication.

* Number of revision rounds allowed.

* Timeline for brand approval.

  • Performance Metrics & Reporting:

* Agreement on what data the influencer will provide post-campaign (e.g., reach, impressions, engagement rate, link clicks).

* Reporting format and deadline.

  • Confidentiality:

* Agreement to keep campaign details and proprietary information confidential.

  • Termination Clause:

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

* Consequences of termination (e.g., pro-rata payment, return of products).

  • Indemnification:

* Influencer agrees to indemnify brand against claims arising from their content (e.g., copyright infringement, false claims).

  • Governing Law:

* Jurisdiction whose laws will govern the contract.


5. Content Guidelines & Creative Brief

A detailed creative brief empowers influencers while maintaining brand consistency.

5.1 Campaign Theme & Core Message:

  • Theme: [Reiterate Campaign Theme, e.g., "Everyday Elegance with Sustainable Choices"]
  • Core Message: [Reiterate Core Message, e.g., "Sustainable fashion doesn't compromise on style or quality."]
  • Tone of Voice: [e.g., Empowering, Authentic, Informative, Playful, Luxurious]

5.2 Key Messaging Points (3-5 max):

  • [Product/Service unique selling proposition 1, e.g., "Crafted from 100% recycled materials."]
  • [Product/Service unique selling proposition 2, e.g., "Versatile design for day-to-night wear."]
  • [Product/Service unique selling proposition 3, e.g., "Comfortable and durable for everyday life."]
  • [Call to Value, e.g., "Join us in making a positive impact on the planet without sacrificing your personal style."]

5.3 Required Content Formats & Deliverables:

  • Instagram:

* 1x Feed Post (Image/Carousel/Reel): High-quality photo/video showcasing product in lifestyle context. Caption 150-250 words.

* 2x Stories: Behind-the-scenes, unboxing, quick review, or "how-to" clips. Must include swipe-up link/product sticker.

* 1x Reel (15-30 seconds): Creative demonstration, transition, or trend-based content featuring the product.

  • TikTok:

* 1x Video (15-45 seconds): Engaging, authentic content aligning with TikTok trends. Product prominently featured.

  • YouTube (if applicable):

* 1x Dedicated Video (5-10 minutes): In-depth review, haul, or integration into existing content series.

  • Blog Post (if applicable):

* 1x Article (500-800 words): Review, "how-to," or personal experience with product. Must include high-quality images.

5.4 Call to Action (CTA):

  • Primary CTA: "Shop now at [Your Website Link] and use code [Discount Code] for [X]% off!"
  • Secondary CTAs: "Learn more about our sustainability efforts," "Tag a friend who needs this," "Visit our profile link in bio."

5.5 Visual & Brand Guidelines:

  • Aesthetics: [e.g., Bright & airy, minimalist, vibrant, natural light preferred.]
  • Color Palette: [e.g., Align with brand colors, avoid overly saturated filters.]
  • Product Placement: Product should be clearly visible and integrated naturally, not overtly staged.
  • Prop Styling: Use props that align with brand aesthetic (e.g., natural elements, elegant accessories).
  • Brand Logo/Packaging: If visible, should be presented cleanly and clearly.
  • Forbidden Content: Avoid explicit, controversial, or low-quality content. No competing products shown.

5.6 Hashtags & Tagging Requirements:

  • Branded Hashtags: #YourBrandName #YourBrandCampaign
  • General Hashtags: #SustainableFashion #EcoFriendly #StyleInspo #NewProductLaunch [Relevant to campaign/product]
  • Tagging: @YourBrandOfficial (Instagram, TikTok), Link to your brand's profile.

5.7 Content Review Process:

  • Submission: Influencer to submit draft content (photos, video links, caption text) to [Your Email Address] by [Date].
  • Review Period: Brand will provide feedback within [e.g., 48 hours].
  • Revisions: Up to [e.g., 2] rounds of reasonable revisions.
  • Publication: Content to be published by [Date] after final brand approval.

6. ROI Tracking & Measurement Framework

Measuring campaign effectiveness is paramount. Our framework focuses on key performance indicators (KPIs) and robust tracking methods.

6.1 Key Performance Indicators (KPIs):

  • Awareness:

* Reach: Total unique users who saw the content.

* Impressions: Total number of times content was displayed.

* Brand Mentions: Number of times your brand was mentioned (organic/paid).

* Follower Growth: Increase in brand's social media followers during/post-campaign.

  • Engagement:

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

* Comments: Quality and quantity of comments on influencer posts.

* Shares/Saves: Indicates content resonance and value.

  • Traffic & Clicks:

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

* Website Traffic: Referral traffic from influencer links/profiles.

* Link Clicks: Total clicks on specific campaign links.

  • Conversions & Sales:

* Sales Revenue: Total revenue generated directly from influencer-attributed sales.

* Conversion Rate: (Sales / Clicks) or (Sales / Impressions).

* Customer Acquisition Cost (CAC): Campaign Cost / New Customers Acquired.

* Return on Ad Spend (ROAS): Revenue / Campaign Cost.

  • Brand Sentiment:

* Sentiment Analysis: Monitoring positive/negative mentions and overall brand perception shift.

* Qualitative Feedback: Reviewing comments and DMs.

6.2 Tracking Methods:

  • Unique UTM Parameters: For every link shared by an influencer (website, product page), use a unique UTM code (e.g., `utm
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);}});}