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

Executive Summary

This document provides a comprehensive analysis of the target audience, crucial for informing the influencer campaign strategy. A deep understanding of demographics, psychographics, behavioral patterns, and content consumption habits will enable the selection of ideal influencers, crafting resonant messaging, and optimizing content for maximum impact and ROI. This analysis will serve as the foundation for developing influencer profiles, content guidelines, and outreach strategies in subsequent steps.

1. Target Audience Profile

To ensure a highly targeted and effective influencer campaign, we define the primary and secondary target audience segments. Please note that for a precise campaign, these profiles will be refined with specific client product/service data.

1.1. Primary Target Audience: "The Conscious Explorer"

  • Demographics:

* Age: 25-40 years old

* Gender: Predominantly female (60%), but significant male segment (40%)

* Location: Urban and suburban areas in developed countries (e.g., North America, Western Europe, Australia). Tech-savvy cities.

* Income: Mid to high-income earners ($60,000 - $150,000+ annually), disposable income for premium or value-aligned products.

* Education: Bachelor's degree or higher.

* Occupation: Young professionals, entrepreneurs, creatives, tech workers.

  • Psychographics:

* Interests: Sustainability, ethical consumption, health & wellness, personal development, travel, technology, outdoor activities, cultural experiences, home decor, eco-friendly living.

* Values: Authenticity, transparency, social responsibility, environmental impact, quality over quantity, self-improvement, community.

* Lifestyle: Active, health-conscious, socially aware, early adopters of trends, value experiences over material possessions, digitally native. Seek convenience but prioritize ethical choices.

* Personality Traits: Curious, open-minded, discerning, influential within their social circles, proactive.

  • Behavioral Data:

* Online Habits: Heavy social media users (Instagram, TikTok, YouTube, Pinterest, LinkedIn). Actively research products online, read reviews, follow thought leaders. Engaged with podcasts and online communities.

* Purchasing Behavior: Values-driven purchases. Willing to pay a premium for sustainable, ethical, or high-quality products. Influenced by peer recommendations and expert opinions. Shop both online and in curated physical stores.

* Content Consumption: Prefer long-form educational content (e.g., YouTube reviews, blog posts), inspirational visual content (Instagram Reels/Stories, Pinterest boards), and short-form engaging content (TikTok trends, quick tips).

* Pain Points: Information overload, difficulty discerning truly ethical brands, lack of time, desire for products that align with their values without compromising quality or convenience.

* Motivations: To make informed choices, live a healthier and more sustainable lifestyle, express their identity, connect with like-minded individuals, stay ahead of trends.

1.2. Secondary Target Audience: "The Aspiring Innovator"

  • Demographics:

* Age: 18-24 years old

* Gender: Even split.

* Location: Global, with a strong presence in urban centers and university towns.

* Income: Students, entry-level professionals, varying income levels but often budget-conscious.

* Education: High school graduates, university students, recent graduates.

  • Psychographics:

* Interests: Emerging tech, gaming, fashion, music, pop culture, social justice, personal branding, entrepreneurship, skill development.

* Values: Authenticity, self-expression, community, innovation, accessibility, social impact.

* Lifestyle: Digitally immersed, trend-aware, early adopters of new platforms, highly social, budget-conscious but willing to splurge on perceived value or status.

  • Behavioral Data:

* Online Habits: Dominant users of TikTok, YouTube, Instagram, Snapchat, Discord. Engage with short-form video, memes, live streams.

* Purchasing Behavior: Influenced heavily by peers and micro-influencers. Seek out trending products, value for money, and products that enhance their social standing or creative pursuits.

* Content Consumption: Short, entertaining, visually appealing content. Tutorials, challenges, "unboxing" videos, relatable vlogs.

* Pain Points: Financial constraints, fear of missing out (FOMO), desire for unique identity, navigating complex choices.

* Motivations: To be part of a community, express individuality, discover new things, gain skills, stay relevant.

2. Data Insights & Trends

2.1. General Market Trends

  • Rise of Authenticity & Micro-Influencers: Consumers increasingly value genuine connections and relatable content over polished, aspirational perfection. Micro and nano-influencers (1k-100k followers) often boast higher engagement rates due to their niche focus and perceived authenticity.
  • Video-First Content Dominance: Short-form video (TikTok, Instagram Reels, YouTube Shorts) continues to be the most engaging content format, driving discovery and purchase intent. Long-form video (YouTube) remains crucial for in-depth reviews and tutorials.
  • Transparency & ESG Focus: Consumers, especially the younger demographic, demand transparency from brands regarding their environmental, social, and governance (ESG) practices. Brands aligning with sustainability and ethical values resonate strongly.
  • Community Building: Influencers who foster strong, interactive communities around shared interests are more effective. Engagement metrics beyond likes (comments, shares, saves) are increasingly important.
  • Personalization at Scale: Audiences expect personalized content and recommendations. Influencers excel at this by creating content that speaks directly to their niche community's specific needs and interests.
  • Shopping Integration: Social commerce features (in-app shopping, shoppable tags) are becoming standard, reducing friction in the purchase journey.

2.2. Audience-Specific Insights

  • Trust in Peers & Experts: Both segments highly trust recommendations from individuals they perceive as peers or experts in a specific niche, rather than traditional celebrities or brand advertisements.
  • Research-Driven Decisions (Primary Audience): The "Conscious Explorer" will actively research claims made by influencers, cross-referencing with reviews and independent sources. Content must be credible and well-supported.
  • Discovery & Entertainment (Secondary Audience): The "Aspiring Innovator" is more likely to discover new products through entertaining, trend-driven content on platforms like TikTok and be influenced by their immediate social circles and relatable creators.
  • Visual Storytelling is Key: Both audiences are highly visual. High-quality imagery and video are non-negotiable. Storytelling that evokes emotion, provides value, or entertains will capture attention.
  • Call to Action (CTA) Clarity: While the primary audience may appreciate educational content, both need clear, compelling CTAs to guide them towards the desired action (e.g., "Shop now," "Learn more," "Sign up").

3. Audience Pain Points & Motivations

Understanding these critical elements allows us to position the campaign and product effectively.

3.1. Pain Points

  • Information Overload & Decision Fatigue: Too many choices, too much conflicting information. Our audience seeks trusted sources to simplify decisions.
  • Lack of Authenticity/Greenwashing: Skepticism towards brands making vague claims, especially around sustainability or effectiveness. They need proof and genuine stories.
  • Time Constraints: Busy lifestyles mean they value convenience and efficiency. Content needs to be easily digestible or highly engaging to warrant their time.
  • Fear of Missing Out (FOMO) / Irrelevance: Especially for the secondary audience, staying updated with trends and having the "right" products is important for social standing.
  • Finding Products that Truly Align with Values: Difficulty in discovering brands that genuinely embody their ethical and sustainable principles.

3.2. Motivations

  • Self-Improvement & Personal Growth: Desire for products/services that enhance their lives, health, knowledge, or skills.
  • Identity & Self-Expression: Products that reflect who they are or who they aspire to be.
  • Community & Connection: Desire to belong to groups that share their interests and values.
  • Impact & Contribution: For the primary audience, making responsible choices that positively impact the world.
  • Discovery & Novelty: Enjoyment of discovering new, innovative, or unique products/experiences.
  • Convenience & Efficiency: Products that simplify their lives without compromising on quality or values.
  • Validation & Trust: Seeking social proof and trusted endorsements before committing to a purchase.

4. Social Media & Content Consumption Habits

4.1. Platform Preferences

  • Instagram: Strong for visual storytelling, aesthetic content, product showcases, lifestyle integration, Reels, Stories, Guides. Ideal for brand building and soft selling.
  • TikTok: Dominant for short-form, authentic, entertaining, and trend-driven content. High discovery potential, particularly for the secondary audience. Excellent for viral campaigns and user-generated content (UGC) inspiration.
  • YouTube: Crucial for in-depth reviews, tutorials, "how-to" guides, long-form vlogs, and educational content. Builds deep trust and authority.
  • Pinterest: Key for inspirational content, product discovery, mood boards, and long-tail search. Strong for visual product discovery and planning.
  • LinkedIn: Relevant if the product/service has a professional or career development angle, connecting with industry thought leaders.
  • Blogs/Websites: Still relevant for detailed articles, comparisons, and expert opinions, often linked from social platforms.

4.2. Content Formats & Engagement

  • Video Content (Short & Long-Form): Highest engagement across all platforms. Must be high-quality, engaging, and provide clear value (entertain, educate, inspire).
  • Authentic Storytelling: Behind-the-scenes, personal anecdotes, real-life applications, and problem/solution narratives resonate deeply.
  • User-Generated Content (UGC): Highly trusted. Encouraging and showcasing UGC is vital.
  • Educational & Informative Content: How-to guides, product breakdowns, myth-busting, ingredient deep dives (especially for primary audience).
  • Inspirational & Aspirational Content: Lifestyle integration, vision boards, "day in the life" content.
  • Interactive Content: Polls, Q&A sessions, live streams, challenges, direct engagement in comments.

5. Influencer Preferences

Based on the audience analysis, the ideal influencers will exhibit the following characteristics:

  • Authenticity & Relatability: They must be genuine and connect on a personal level with their audience. Polished perfection is less valued than real-life experiences.
  • Niche Expertise: Influencers who are true experts or passionate advocates in relevant fields (e.g., sustainability, tech, wellness, specific hobbies) will resonate more than general lifestyle influencers.
  • Strong Engagement Rates: High comment-to-like ratio, active dialogue with followers, and community management.
  • Aligned Values: Influencers whose personal brand and values align with the product's mission (e.g., if the product is sustainable, the influencer should demonstrate sustainable living).
  • Diverse Audience Reach: While niche is important, influencers who can reach both primary and secondary audiences (or specific segments within them) are valuable.
  • Storytellers: Ability to weave compelling narratives around the product, integrating it naturally into their content and life.
  • Transparent & Trustworthy: Open about sponsored content, maintains audience trust.

6. Recommendations for Influencer Campaign Strategy

Based on this audience analysis, we recommend the following strategic directions:

  1. Prioritize Micro & Mid-Tier Influencers: Focus on influencers with 10k-500k followers who have strong engagement and a niche audience aligned with our target segments. They offer higher ROI and perceived authenticity.
  2. Emphasize Video-First Content: Develop content strategies centered around TikTok, Instagram Reels, and YouTube. Encourage influencers to create short, engaging videos that demonstrate product use, benefits, and integrate into their lifestyle.
  3. Highlight Value Alignment: Partner with influencers who genuinely embody the brand's values (e.g., sustainability, innovation, wellness). Their authentic endorsement will resonate deeply with the "Conscious Explorer."
  4. Focus on Problem/Solution Content: Position the product as a solution to identified pain points (e.g., "simplifies routine," "ethical choice," "enhances experience").
  5. Leverage Educational & Entertaining Content:

* Primary Audience: Partner with influencers for in-depth reviews, "why it matters" content, and comparisons on YouTube/blogs.

* Secondary Audience: Collaborate on trending challenges, creative integrations, and quick tips on TikTok/Reels.

  1. Encourage Interactive & Community-Driven Content: Ask influencers to host Q&As, polls, or challenges to foster engagement and generate UGC.
  2. Integrate Social Commerce: Ensure influencers use shoppable links, product tags, and clear calls to action to reduce friction in the purchase journey.
  3. Authenticity Above All: Provide creative freedom to influencers within clear guidelines to ensure their content feels organic and true to their voice. Avoid overly scripted content.

7. Next Steps

  1. Client Review & Feedback: Present this audience analysis to the client for validation, refinement, and to incorporate any specific product/service insights not yet covered.
  2. Competitor Analysis (Step 2 Prep): Conduct a thorough analysis of competitors' influencer strategies, identifying successful tactics, influencer types, and content themes.
  3. Influencer Identification & Vetting: Begin identifying potential influencers based on the defined profiles and preferences. This will involve using influencer marketing platforms, manual research, and examining engagement metrics.
  4. Develop Campaign Objectives & KPIs: Based on the audience and desired outcomes, establish clear, measurable objectives (e.g., brand awareness, website traffic, sales conversions) and Key Performance Indicators (KPIs).
  5. Budget Allocation: Start planning the budget allocation based on target influencer tiers and campaign scope.
gemini Output

Influencer Campaign Planner: Your Blueprint for Success

Welcome to your comprehensive Influencer Campaign Planner! This detailed guide provides the strategic framework, practical templates, and essential guidelines to launch and manage a highly effective influencer marketing campaign. From identifying the perfect partners to tracking your return on investment, we've outlined every critical step to ensure your campaign not only reaches your target audience but also drives measurable results.

Let's dive into building your impactful influencer strategy!


1. Defining Your Ideal Influencer Profiles

Identifying the right influencers is the cornerstone of a successful campaign. Beyond follower count, we focus on genuine connection, audience relevance, and brand alignment.

Key Characteristics of Your Ideal Influencer:

  • Audience Alignment:

* Demographics: Do their followers match your target customer's age, gender, location, income, and interests?

* Psychographics: Do their followers share values, lifestyle choices, and pain points that your product or service addresses?

  • Niche & Expertise:

* Relevance: Does their content niche directly relate to your industry, product, or service?

* Authority: Are they recognized as a credible voice or expert within their community on topics relevant to your brand?

  • Engagement Metrics:

* High Engagement Rate: Look for consistent likes, comments, shares, and saves relative to their follower count. This indicates an active and loyal audience, not just passive viewers.

* Authentic Interactions: Are comments genuine and thoughtful, rather than generic?

* Story Views/Swipe-ups: For platforms like Instagram, analyze story engagement for direct response potential.

  • Brand Fit & Values:

* Authenticity: Does their personal brand and content style naturally align with your brand's voice, aesthetic, and mission?

* Reputation: Do they have a positive public image? Avoid influencers with controversial histories or inconsistent brand messaging.

* Previous Partnerships: Have they successfully partnered with similar (non-competing) brands in a way that feels organic?

  • Content Quality & Style:

* Visual Appeal: Is their content high-quality, professional, and visually appealing?

* Storytelling Ability: Can they weave compelling narratives that resonate with their audience and naturally integrate your brand?

* Platform Proficiency: Are they adept at creating engaging content across the specific platforms relevant to your campaign (e.g., Reels, TikToks, YouTube long-form, blog posts)?

  • Reach & Follower Demographics:

* Follower Count: While not the sole factor, this indicates potential reach. Consider micro-influencers (10k-100k) for higher engagement and niche targeting, macro-influencers (100k-1M) for broader reach, and mega-influencers (1M+) for significant brand awareness.

* Audience Location: Ensure a significant portion of their audience resides in your target geographical markets.


2. Crafting Compelling Outreach Templates

Your initial outreach is crucial for making a strong first impression. These templates are designed to be professional, personalized, and value-driven, encouraging a positive response.

Key Elements of an Effective Outreach Message:

  • Personalization: Always address the influencer by name and reference specific content of theirs you admire.
  • Clear Introduction: Briefly introduce yourself and your brand.
  • Value Proposition: Clearly articulate why this partnership would be beneficial for them and their audience.
  • Campaign Overview (Brief): Provide a concise summary of the campaign idea and objectives.
  • Call to Action: Suggest a next step (e.g., a brief call, sending a media kit).
  • Professionalism: Maintain a respectful and enthusiastic tone.

Template 1: Initial Outreach Email

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

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/YouTube] for some time now, and I'm consistently impressed by your [mention specific content, e.g., "authentic storytelling around sustainable living," or "creative approach to beauty tutorials"]. Your recent [specific post/video] about [topic] particularly resonated with us.

At [Your Brand Name], we [briefly describe your brand and its mission/product benefit, e.g., "create eco-friendly home goods designed to simplify daily life," or "offer innovative tech gadgets that enhance productivity"]. We believe our [product/service] would be a fantastic fit for your audience, who we know values [mention shared audience value, e.g., "quality, sustainability, and practical solutions"].

We're currently planning an exciting campaign focused on [Campaign Theme/Goal, e.g., "showcasing sustainable living tips for the modern home" or "unveiling the latest in smart home technology"]. We envision a partnership where you could [briefly suggest content idea, e.g., "integrate our [Product Name] into your daily routine content," or "create an engaging review/tutorial demonstrating its unique features"].

We're confident this collaboration would not only be a great way to introduce your audience to a product they'll love but also align perfectly with your existing content themes.

Would you be open to a brief 15-minute call next week to discuss this opportunity further and share more details about our campaign goals and potential compensation? Please let me know what time works best for you.

Thank you for your time and consideration.

Best regards,

[Your Name]

[Your Title]

[Your Brand Name]

[Your Website]

[Your Social Media Links]


Template 2: Follow-Up Email (If no response after 5-7 business days)

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

Dear [Influencer's Name],

I hope this email finds you well.

I'm following up on my previous email regarding a potential collaboration between [Your Brand Name] and you. We're truly excited about the possibility of working together, given your unique voice and engaged community around [Influencer's Niche].

We believe our [Product/Service] offers significant value to your audience, especially given your focus on [mention relevant content theme].

If you're interested in learning more, I'd be happy to share a brief overview of our campaign and how we envision this partnership benefiting both your brand and ours. We're very flexible and committed to creating a mutually beneficial arrangement.

Please let me know if you've had a chance to review our initial proposal or if you have any questions.

Thank you again for your time.

Best regards,

[Your Name]

[Your Title]


3. Essential Influencer Contract Terms

A clear, comprehensive contract protects both your brand and the influencer, ensuring expectations are aligned and deliverables are met. Always consult with legal counsel when drafting or finalizing contracts.

Key Contract Clauses to Include:

  • 1. Scope of Work & Deliverables:

* Specifics: Clearly list exact deliverables (e.g., 1 Instagram feed post, 3 Instagram Stories, 1 YouTube video, 1 blog post).

* Content Type: Specify format (photo, video, carousel), length, and required elements (e.g., product placement, specific messaging).

* Platforms: Identify all platforms where content will be posted.

* Posting Schedule: Define exact dates or a timeframe for content submission and publication.

  • 2. Payment Terms & Schedule:

* Compensation: Clearly state the agreed-upon fee (flat rate, per deliverable, commission, product in-kind, or a combination).

* Payment Schedule: Specify when payments will be made (e.g., 50% upfront, 50% upon completion; net 30 days after invoice).

* Payment Method: How will payment be made (e.g., bank transfer, PayPal)?

* Expenses: Clearly state if any additional expenses (travel, production costs) are covered and how.

  • 3. Content Ownership & Usage Rights:

* Ownership: Who owns the raw content and the final published content? (Typically, the influencer owns the raw, brand gets a license to use final).

* Usage License: Define the brand's right to re-post, re-purpose, or use the influencer's content in other marketing materials (e.g., website, ads, email marketing).

* Duration: How long can the brand use the content (e.g., 6 months, 1 year, perpetual)?

* Territory: Where can the content be used (e.g., worldwide, specific regions)?

* Media: On which channels can the brand use the content (e.g., social media, website, paid ads, print)?

* Exclusivity: If the brand wants exclusive rights to certain content or the influencer for a specific period, this must be explicitly stated.

  • 4. Disclosure Requirements (FTC/ASA Compliance):

* Mandatory: Explicitly state the legal obligation for the influencer to clearly and conspicuously disclose the paid nature of the partnership in all content (e.g., #Ad, #Sponsored, #BrandPartner).

* Specifics: Detail preferred disclosure placement (e.g., top of caption, first few seconds of video, visible on screen).

  • 5. Exclusivity Clause:

* Competitors: Prohibit the influencer from promoting competing brands for a specified period (e.g., 30 days before/after campaign, duration of the campaign).

* Product Category: Define the scope of the exclusivity (e.g., specific product type, entire industry).

  • 6. Approval Process:

* Submission: Outline the timeline for the influencer to submit content drafts for review.

* Review & Revisions: Specify the number of revision rounds the brand is entitled to and the timeframe for feedback.

* Final Approval: State that final content must be approved by the brand before publication.

  • 7. Termination Clause:

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

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

  • 8. Performance Metrics & Reporting:

* Data Sharing: Require the influencer to share performance data (e.g., reach, impressions, engagement rates, click-throughs) for sponsored content.

* Reporting: Specify the format and timeframe for reporting (e.g., within 7 days of campaign end).

  • 9. Indemnification:

* Protects both parties from legal claims arising from the other's actions.

  • 10. Governing Law:

* Specifies which jurisdiction's laws will govern the contract.


4. Comprehensive Content Guidelines for Influencers

Clear content guidelines are essential for ensuring brand consistency, message accuracy, and campaign effectiveness. These guidelines empower influencers to create authentic content that still meets your objectives.

Core Guidelines for Influencer Content:

  • 1. Campaign Objectives & Key Messages:

* Primary Goal: What is the main objective (e.g., brand awareness, drive sales, generate leads, promote a new feature)?

* Key Message(s): What 1-3 core messages must be communicated about your product/service?

* Unique Selling Proposition (USP): Highlight what makes your offering stand out.

  • 2. Product/Service Integration:

* Natural Placement: Emphasize organic integration rather than forced endorsements.

* Demonstration: How should the product be used or showcased? Provide specific use cases or scenarios.

Benefits: Focus on communicating the benefits* to the audience, not just features.

  • 3. Brand Aesthetics & Tone of Voice:

* Visual Style: Provide examples of your brand's preferred visual style (e.g., bright & airy, minimalist, vibrant, lifestyle-focused). Share a mood board if possible.

* Color Palette: Any specific colors to avoid or incorporate?

* Tone of Voice: Is your brand playful, authoritative, educational, inspiring, luxurious? Guide them on the desired voice for captions and dialogue.

* "Do's and Don'ts": Provide clear examples of content that aligns and content that does not.

  • 4. Required Deliverables (Per Platform):

* Instagram:

* Feed Post: 1-3 high-quality images/videos, caption length, specific hashtags (#YourBrand, #CampaignHashtag, #Ad), tagging @YourBrand.

* Stories: 3-5 frames, include product usage, swipe-up link (if applicable), poll/quiz sticker, mention @YourBrand.

* Reel/Video: Length (e.g., 15-30 seconds), music style, specific call to action.

* TikTok:

* Video: Length, trending audio/challenge integration, on-screen text, specific CTA, product focus.

* YouTube:

* Video: Length, integration type (dedicated, unboxing, mention), mention in description box, link to product/landing page.

* Blog Post: Word count, key messages to include, link placement, image requirements.

  • 5. Call to Action (CTA):

Clear & Specific: What do you want the audience to do* after seeing the content? (e.g., "Shop now at [link in bio]," "Learn more at [website.com/campaign]," "Use code [DISCOUNTCODE] for 15% off").

* Placement: Where should the CTA appear (e.g., end of video, prominent in caption)?

  • 6. Disclosure Requirements (Reinforced):

* Mandatory: Reiterate the legal obligation for clear and conspicuous disclosure.

* Examples: Provide specific examples of acceptable disclosures (e.g., "#Ad," "#Sponsored," "Paid Partnership with @YourBrand").

* Platform-Specific: Remind them of built-in disclosure tools (e.g., Instagram's "Paid partnership with" tag).

  • 7. Approval Process:

* Submission Deadline: When should drafts be submitted?

* Review Time: How long will your team take to review and provide feedback?

* Revision Rounds: How many rounds of revisions are permitted?

  • 8. Forbidden Content:

* Competitors: Do not mention or feature competing brands.

* Offensive/Inappropriate Content: No content that is discriminatory, explicit, or politically charged.

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

* Negative Association: Avoid pairing your brand with any potentially harmful or controversial activities.


5. Robust ROI Tracking Framework

Measuring the Return on Investment (ROI) is crucial for understanding campaign effectiveness and optimizing future strategies. This framework outlines how to track, analyze, and report on your influencer campaign's performance.

A. Defining Key Performance Indicators (KPIs):

Your KPIs should align directly with your campaign objectives.

  • 1. Brand Awareness & Reach:

* Impressions: Total number of times your content was displayed.

*

gemini Output

Influencer Campaign Planner: Optimized & Finalized Plan

This document provides a comprehensive, detailed, and actionable framework for planning and executing a successful influencer marketing campaign. It covers all essential elements from influencer identification to ROI tracking, designed to guide your team through each stage with clarity and precision.


1. Campaign Overview & Objectives

Before diving into the specifics, clearly define the campaign's core identity and goals.

  • Campaign Name: \[e.g., "Spring Refresh Collection Launch", "Healthy Habits Challenge"]
  • Target Audience:

* Demographics: (e.g., Females, 25-40, urban, high income)

* Psychographics: (e.g., Health-conscious, eco-aware, tech-savvy, value convenience)

* Pain Points/Desires: (e.g., Seeks time-saving solutions, desires sustainable products, wants to improve fitness)

  • Campaign Goals (SMART Objectives):

* Specific: What exactly do you want to achieve?

* Measurable: How will you quantify success?

* Achievable: Is the goal realistic given resources and timeline?

* Relevant: Does it align with broader business objectives?

* Time-bound: What is the deadline for achieving this goal?

Example:* Increase brand awareness by achieving 5 million impressions across influencer content within 6 weeks.

Example:* Drive 1,000 unique website visits to the new product page via influencer links within 4 weeks.

Example:* Generate 200 sales conversions directly attributable to influencer discount codes within 8 weeks.

  • Key Message/Call to Action (CTA): What is the core message influencers should convey, and what action should their audience take?

Example:* "Discover the new [Product Name] – your ultimate solution for [benefit]! Shop now with code [DISCOUNT_CODE] for 15% off!"


2. Ideal Influencer Profiles

Defining your ideal influencer is crucial for effective targeting and partnership success.

  • Niche/Category:

Primary:* (e.g., Fitness, Beauty, Tech, Sustainable Living, Parenting, Travel)

Secondary (if applicable):* (e.g., Vegan food, DIY home decor)

  • Audience Size & Tier:

* Nano-influencers: 1k - 10k followers (High engagement, niche communities, authentic)

* Micro-influencers: 10k - 100k followers (Strong community, good reach, cost-effective)

* Mid-tier influencers: 100k - 500k followers (Broader reach, established presence)

* Macro-influencers: 500k - 1M+ followers (Massive reach, high production value, higher cost)

* Celebrity/Mega-influencers: 1M+ followers (Brand ambassador potential, very high cost)

Recommendation:* Consider a mix of micro and mid-tier for balanced reach and authenticity.

  • Audience Demographics & Psychographics:

* Alignment: The influencer's audience should closely match your campaign's target audience.

* Location: (e.g., Primarily US, specific states/cities, global)

* Interests: (e.g., Similar interests to your target audience beyond the influencer's primary niche)

  • Engagement Rate Benchmarks:

* Target Engagement Rate: (e.g., 3-5% for micro, 1-3% for macro)

* Indicators of Authentic Engagement: Quality comments, shares, saves, not just likes. Watch out for bot-like comments.

  • Content Quality & Aesthetics:

* Visual Style: (e.g., Bright & airy, dark & moody, minimalist, vibrant)

* Production Value: (e.g., Professional photography/videography, high-quality audio)

* Brand Fit: Do their aesthetics and content style naturally align with your brand's image?

  • Brand Alignment & Values:

* Authenticity: Does the influencer genuinely use/believe in products similar to yours?

* Values: Do their personal values and public persona align with your brand's ethos (e.g., sustainability, inclusivity, community focus)?

* Past Partnerships: Have they worked with competitors? Are their past partnerships relevant and successful?

  • Performance & Professionalism:

* Reliability: Do they consistently post on time? Are they responsive to communication?

* Professionalism: Do they maintain a professional demeanor in their content and communications?

  • Red Flags to Avoid:

* Inflated follower counts (bot followers)

* Low or inauthentic engagement (comment pods, spam comments)

* Frequent controversial content or unaligned political views

* History of unreliable communication or missed deadlines

* Over-saturation with sponsored content (appears inauthentic)


3. Influencer Outreach Strategy & Templates

A personalized and professional outreach approach is key to securing partnerships.

Outreach Strategy:

  1. Research & Personalization: Thoroughly research each influencer. Reference specific content, recent posts, or shared interests in your initial message.
  2. Choose the Right Channel:

* Email: Preferred for formal proposals (look for business email in bio).

* Direct Message (DM): Good for initial contact, especially on Instagram/TikTok, but follow up with email if possible.

* LinkedIn: For industry-specific or professional influencers.

  1. Clear Value Proposition: Immediately convey what's in it for them (e.g., exciting product, fair compensation, creative freedom).
  2. Concise & Professional: Get straight to the point, respect their time.
  3. Follow-Up: A polite follow-up can significantly increase response rates.

Outreach Templates:

A. Initial Outreach (Email/Long-form DM)

Subject: Partnership Opportunity: \[Your Brand Name] x \[Influencer Name]

Hi \[Influencer Name],

My name is \[Your Name] and I'm the \[Your Title] at \[Your Brand Name]. We've been following your work on \[Platform] for a while now, and we're particularly impressed by your \[mention specific content/style, e.g., "authentic reviews of sustainable products", "engaging travel vlogs", "beautiful photography in the [niche] space"]. Your audience's engagement with your content around \[relevant topic] truly stands out.

At \[Your Brand Name], we create \[briefly describe your product/service and its unique selling proposition, e.g., "eco-friendly skincare products made from natural ingredients", "innovative smart home devices that simplify daily life"]. We believe your audience, who values \[mention audience values, e.g., "conscious consumption", "technological advancements", "healthy lifestyles"], would genuinely connect with our mission to \[your brand's mission].

We're currently planning an exciting campaign for our new \[Product/Service Name] and would love to explore a potential collaboration with you. We envision a partnership that could involve \[suggest content ideas, e.g., "an authentic review on your feed", "a series of engaging Instagram Stories", "a dedicated YouTube video showcasing product benefits"]. We offer competitive compensation and are open to discussing creative ideas that align with your unique content style.

Would you be open to a brief call next week to discuss this further? Please let me know your availability or if you prefer to continue via email.

Thank you for your time and consideration.

Best regards,

\[Your Name]

\[Your Title]

\[Your Brand Name]

\[Your Website]

\[Your Social Media Link]

B. Follow-up (Email/DM)

Subject: Following up: Partnership Opportunity with \[Your Brand Name]

Hi \[Influencer Name],

Hope you're having a great week!

Just wanted to gently follow up on my previous email regarding a potential collaboration between \[Your Brand Name] and you. We're very keen on the idea of working together given your fantastic content and engaged audience.

If you're interested in learning more about our \[Product/Service Name] campaign, please let me know. I'd be happy to share more details or schedule a quick chat at your convenience.

Thanks again,

\[Your Name]

\[Your Brand Name]


4. Influencer Contract Terms (Key Elements)

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

  • 1. Parties: Full legal names and addresses of both the brand and the influencer.
  • 2. Scope of Work (Deliverables):

* Specific Content: (e.g., 1 Instagram Feed Post, 2 Instagram Stories, 1 TikTok video, 1 Blog Post, 1 YouTube Integration)

* Content Type: (e.g., Photo, Video, Carousel, Reel)

* Key Messages: Mandatory points/features to include.

* Required Tags/Hashtags: (e.g., @yourbrand, #YourBrandName, #ad, #sponsored)

* Links: Specific URLs to include (with UTM parameters).

  • 3. Payment Terms:

* Compensation: Clearly state the agreed-upon fee (e.g., flat fee, product-in-kind, commission, combination).

* Payment Schedule: (e.g., 50% upfront, 50% upon content approval/publishing; Net 30 days after invoice).

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

* Expenses: Who covers production costs, travel, etc.?

  • 4. Content Usage Rights & Licensing:

* Duration: How long can the brand use the influencer's content for its own marketing (e.g., 3 months, 1 year, perpetual)?

* Channels: Where can the brand use the content (e.g., brand's social media, website, paid ads, email marketing)?

* Exclusivity: Is the influencer prohibited from working with competitors for a certain period (category exclusivity)?

* Ownership: Who owns the original content files? (Typically, influencer owns, brand licenses).

  • 5. Disclosure Requirements:

* Compliance: Mandatory adherence to FTC (US), ASA (UK), or local advertising standards for sponsored content.

* Specific Language: (e.g., prominently display #ad, #sponsored, "Paid Partnership" tool).

* Placement: Disclosure must be clear and visible (e.g., at the beginning of a video, top of a caption).

  • 6. Timeline & Deadlines:

* Content Submission Date: Date for draft content submission.

* Brand Approval Deadline: Date by which brand provides feedback.

* Content Publishing Date: Date for live posting.

* Campaign Duration: Overall period of the campaign.

  • 7. Approval Process:

* Draft Submission: Influencer submits drafts for review.

* Revision Rounds: Number of revision rounds permitted (e.g., 1-2).

* Final Approval: Brand's final approval required before publishing.

  • 8. 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., partial payment, return of product).

  • 9. Confidentiality: Agreement not to disclose proprietary information about the brand or campaign.
  • 10. Indemnification: Protection for the brand against claims arising from the influencer's actions (e.g., copyright infringement, false claims).
  • 11. Governing Law: Jurisdiction whose laws will govern the contract in case of dispute.
  • 12. Representations & Warranties: Influencer confirms they have the right to create and license content, will comply with laws, etc.

5. Content Guidelines & Creative Brief

Provide clear creative direction while allowing influencers artistic freedom.

  • 1. Campaign Theme & Messaging:

* Core Message: What is the single most important takeaway for the audience?

* Desired Tone: (e.g., Fun, informative, inspirational, luxurious, casual, humorous)

* Narrative/Story Angle: Suggest a story they can tell (e.g., "My journey to healthier skin", "How I organized my home with X", "A day in my life with Y").

  • 2. Content Formats & Deliverables:

* Required Platforms: (e.g., Instagram, TikTok, YouTube, Blog)

* Specific Deliverables: (e.g., 1x Instagram Feed Post, 2x Instagram Stories, 1x 30-60 second TikTok video, 1x dedicated YouTube video)

* Video Length/Image Count: (e.g., Reels 15-30s, YouTube min 3 mins, Instagram carousel 3-5 images).

  • 3. Mandatory Elements:

* Product Placement: How should the product be featured? (e.g., prominently displayed, naturally integrated into daily routine).

* Brand Mentions: (e.g., Tag @YourBrandName in caption and image/video).

* Hashtags: (e.g., #YourBrandName, #YourCampaignSlogan, #ad, #sponsored, #partner).

* Call to Action (CTA): What specific action should the audience take? (e.g., "Click link in bio to shop," "Use code [DISCOUNT_CODE] for X% off," "Learn more at [Website]").

* Links: Specific trackable links (with UTMs) to be included in bio, swipe-up, or caption

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);}});}