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

Deliverable: Comprehensive Target Audience Profile for Influencer Campaign Strategy

This document provides a detailed analysis of your target audience, laying the foundational insights necessary for a successful influencer marketing campaign. Understanding your audience is paramount to identifying the right influencers, crafting compelling content, and achieving measurable ROI.


1. Executive Summary

This audience analysis identifies key demographic, psychographic, and behavioral attributes of your prospective customers. We've outlined their interests, pain points, preferred content formats, and digital platforms. The insights derived will directly inform the ideal influencer profiles, content strategy, and engagement tactics for your campaign, ensuring maximum relevance and impact. Our findings suggest a strong emphasis on authentic, value-driven content delivered via visual-first platforms to resonate with an audience that values community and genuine recommendations.


2. Target Audience Definition

To effectively target and engage your audience, we must first clearly define who they are.

2.1. Demographics

  • Age Range: Primarily 25-45 years old, with a secondary segment of 18-24 years old showing increasing engagement. (Adjust based on product/service)
  • Gender: Fairly balanced, leaning slightly towards Female (55%), but with significant male representation (45%). (Adjust based on product/service)
  • Location: Predominantly Urban and Suburban areas in [Specify Key Countries/Regions, e.g., North America, Western Europe], with growing interest in secondary metropolitan areas.
  • Income Level: Mid to Upper-Mid household income, indicating disposable income for quality products/services.
  • Education Level: College-educated or higher, suggesting a discerning audience interested in informed decisions.
  • Occupation: Professionals, young entrepreneurs, and creatives who are digitally savvy.

2.2. Psychographics

  • Values:

* Authenticity & Transparency: Highly value genuine content and honest reviews. Skeptical of overly polished or inauthentic promotions.

* Community & Connection: Seek belonging and value recommendations from trusted sources or peers.

* Self-Improvement & Growth: Interested in products/services that enhance their lifestyle, skills, or well-being.

* Convenience & Efficiency: Appreciate solutions that save time or simplify their lives.

* Sustainability & Ethical Practices: Increasingly concerned with brand values and environmental/social impact.

  • Lifestyles:

* Active, health-conscious, and digitally integrated.

* Early adopters of technology and trends.

* Value experiences over material possessions (though appreciate quality items).

* Often juggle multiple responsibilities (work, family, personal interests).

  • Personality Traits: Curious, open-minded, socially conscious, aspirational, and pragmatic.
  • Motivations:

* Solving specific pain points (e.g., saving time, improving health, learning a new skill).

* Achieving personal goals (e.g., fitness, career advancement, creative expression).

* Seeking inspiration and new ideas.

* Being part of a community.

2.3. Behavioral Data

  • Online Habits:

* Heavy social media users (2-4 hours daily average).

* Regularly consume video content (YouTube, TikTok, Instagram Reels).

* Engage with user-generated content (UGC) and live streams.

* Research products/services online before purchasing.

* Read reviews and seek recommendations from peers and influencers.

  • Purchase Triggers:

* Personal recommendations from trusted sources (friends, family, respected influencers).

* Demonstrated value and problem-solving capabilities of the product/service.

* Exclusive offers or early access.

* Social proof and positive reviews.

  • Brand Loyalty: Tend to be loyal to brands that consistently deliver value, align with their values, and offer excellent customer experience.

3. Audience Interests & Content Preferences

Understanding what content resonates with your audience is critical for crafting effective influencer campaigns.

3.1. Key Interests & Values

  • Product/Service Category: [Specify, e.g., sustainable living, tech gadgets, healthy recipes, fitness routines, personal finance tips, beauty hacks, travel experiences].
  • Related Interests: (e.g., wellness, productivity, home decor, fashion, career development, specific hobbies).
  • Entertainment: Comedy, educational content, vlogs, behind-the-scenes glimpses.
  • Social Causes: Environmental protection, mental health awareness, social justice (align these with your brand's values where applicable).

3.2. Pain Points & Needs (How your product/service solves them)

  • [Pain Point 1, e.g., Lack of time]: Your product/service offers convenience, efficiency, or time-saving solutions.
  • [Pain Point 2, e.g., Overwhelm with choices]: Your product/service simplifies decisions, provides clear guidance, or curates options.
  • [Pain Point 3, e.g., Difficulty achieving goals]: Your product/service provides tools, motivation, or expert advice.
  • [Pain Point 4, e.g., Desire for authenticity]: Your product/service is genuinely effective, transparent in its claims, and aligns with ethical practices.

3.3. Content Themes that Resonate

  • Educational/Informative: "How-to" guides, tutorials, myth-busting, expert tips, product demos explaining benefits.
  • Inspirational/Aspirational: Success stories, transformations, goal-setting, lifestyle showcases (realistic, not overly curated).
  • Entertaining/Humorous: Relatable skits, challenges, comedic takes on common struggles.
  • Authentic/Relatable: "Day in the life" content, unboxing, genuine reviews, unfiltered experiences.
  • Community-Driven: Q&A sessions, polls, interactive content, user-generated content features.
  • Problem/Solution Focused: Content that clearly articulates a problem and positions your product/service as the effective solution.

4. Preferred Platforms & Content Formats

Where and how your audience consumes content dictates platform selection and content strategy.

4.1. Primary Platforms

  • Instagram: High engagement for visual content (Reels, Stories, Carousels, Posts). Ideal for lifestyle, fashion, beauty, food, travel, and aspirational content.
  • TikTok: Dominant for short-form, engaging video content. Excellent for trends, challenges, educational snippets, and humorous content. Strong for reaching younger demographics.
  • YouTube: Preferred for longer-form video content, in-depth tutorials, reviews, vlogs, and educational series. Builds strong trust and authority.
  • Facebook: Still relevant for community groups, events, and a slightly older demographic. Can be effective for targeted ads and specific community engagement.
  • Pinterest: Strong for discovery, inspiration, and product-focused content, especially in home, fashion, and DIY niches. Drives website traffic.
  • [Other relevant platforms, e.g., LinkedIn for B2B, Twitch for gaming, Blogs/Podcasts for niche interests].

4.2. Optimal Content Formats

  • Short-Form Video (Reels, TikToks): Highly engaging, attention-grabbing, excellent for quick tips, product showcases, and trend participation.
  • Long-Form Video (YouTube Vlogs, Tutorials, Reviews): Builds deeper understanding, trust, and demonstrates product utility in detail.
  • Interactive Stories/Polls: Drives immediate engagement, gathers feedback, and creates a sense of community.
  • High-Quality Photography/Carousels (Instagram): Visually appealing, showcases product aesthetics and multiple features.
  • Live Streams/Q&A: Fosters real-time interaction, builds authenticity, and allows for direct audience engagement with influencers.
  • Testimonials/User-Generated Content (UGC): Highly credible and persuasive, leveraging social proof.

4.3. Engagement Timing

  • Peak Activity: Generally mid-day (11 AM - 2 PM) and evenings (7 PM - 9 PM) on weekdays, with consistent engagement throughout weekends.
  • Specific Platform Nuances:

* Instagram: Strong during lunch breaks and evenings.

* TikTok: More fluid, but often spikes during off-hours and evenings.

* YouTube: Consistent throughout the day, with peaks in the evening.

* (Further analysis with specific client data can refine these times).


5. Insights for Influencer Profiling

This audience analysis directly informs the characteristics of ideal influencers for your campaign.

5.1. Key Characteristics of Ideal Influencers

  • Authenticity & Relatability: Must genuinely use and believe in the product/service. Their content should feel natural and unforced.
  • Niche Alignment: Influencers whose primary content themes and audience interests align closely with your product/service category.
  • Engaged Community: Prioritize engagement rates over follower count. A smaller, highly engaged audience is often more valuable.
  • Content Quality: High-quality visuals, clear audio, and compelling storytelling.
  • Brand Alignment: Influencers whose personal brand, values, and previous collaborations align with your brand's image and messaging.
  • Trust & Credibility: Perceived as an expert or trusted peer within their niche.
  • Diverse Audience Representation: Consider influencers who reach different segments within your target audience (e.g., varying demographics, interests).

5.2. Audience-Influencer Alignment Criteria

  • Demographic Match: The influencer's audience demographics should closely mirror your target audience.
  • Psychographic Match: The influencer's content should resonate with the values, interests, and motivations of your target audience.
  • Engagement Metrics: High comment-to-like ratio, genuine conversations in comments, and consistent interaction.
  • Audience Sentiment: The influencer's audience should generally be positive, supportive, and open to recommendations.
  • Past Performance: Look at their previous sponsored content. Was it well-received? Did it drive engagement?

6. Recommendations

Based on the detailed audience analysis, we recommend the following strategic directions for your influencer campaign:

  1. Prioritize Authenticity: Focus on influencers who can genuinely integrate your product/service into their existing content and lifestyle, rather than forced placements. This builds trust with an audience that values transparency.
  2. Emphasize Visual-First Platforms: Allocate significant resources to Instagram (Reels, Stories, Carousels) and TikTok for broad reach and high engagement, complemented by YouTube for deeper dives and reviews.
  3. Content Strategy for Problem/Solution: Develop content guidelines that empower influencers to showcase how your product/service directly addresses the identified pain points and needs of the audience.
  4. Leverage Educational & Inspirational Content: Encourage influencers to create "how-to" guides, tutorials, personal success stories, and aspirational content that aligns with the audience's desire for self-improvement and growth.
  5. Foster Community Engagement: Incorporate interactive elements like Q&As, polls, and calls for user-generated content to deepen audience connection and gather valuable feedback.
  6. Micro- and Mid-Tier Influencer Focus: Consider a strategy that balances reach with engagement by incorporating a mix of micro- (10k-100k followers) and mid-tier (100k-500k followers) influencers, who often boast higher engagement rates and stronger niche authority.
  7. Monitor Brand Values: Ensure chosen influencers consistently reflect and uphold your brand's values, especially regarding sustainability and ethical practices, to resonate with your socially conscious audience.

7. Next Steps

To move forward with the "Influencer Campaign Planner" workflow, the next steps are critical:

  1. Client Review & Feedback: Please review this detailed audience analysis and provide any feedback or additional insights you may have. Your specific product/service knowledge is invaluable for refining these profiles.
  2. Define Campaign Objectives: Clearly articulate the primary goals for this influencer campaign (e.g., brand awareness, lead generation, sales conversion, website traffic, specific product launch). This will guide influencer selection and content strategy.
  3. Budget Allocation: Provide an estimated budget range for the influencer campaign, which will help in determining the scale and type of influencers we can engage.
  4. Product/Service Details: Furnish comprehensive details about the specific product(s) or service(s) to be promoted, including key features, unique selling propositions (USPs), and target pricing.

Once these steps are completed, we will proceed to Step 2: Influencer Identification & Outreach Strategy, where we will leverage this audience analysis to build ideal influencer profiles, identify specific candidates, and draft initial outreach templates.

gemini Output

Influencer Campaign Planner: Your Blueprint for High-Impact Marketing Success

Executive Summary: Elevate Your Brand with Strategic Influencer Partnerships

Welcome to your comprehensive Influencer Campaign Planner! In today's dynamic digital landscape, influencer marketing has proven to be a powerful strategy for building brand awareness, driving engagement, and generating conversions. This detailed guide provides you with a robust framework to design, execute, and measure a highly effective influencer marketing campaign.

From identifying the perfect brand advocates to crafting compelling content and tracking tangible ROI, this planner equips you with the tools and insights needed to forge authentic connections with your target audience and achieve your marketing objectives. Let's transform your marketing vision into measurable success.


1. Campaign Objectives & Target Audience Definition

Before diving into influencer selection, it's crucial to clearly define what you aim to achieve and who you want to reach.

1.1. Campaign Objectives

  • Brand Awareness: Increase brand visibility and recognition.
  • Engagement: Drive likes, comments, shares, and saves on social media.
  • Traffic Generation: Direct users to your website, landing page, or product listings.
  • Lead Generation: Capture contact information for potential customers.
  • Sales/Conversions: Drive direct product purchases or service sign-ups.
  • Content Creation: Generate authentic, user-generated content for repurposing.
  • Audience Education: Inform your target market about new products, features, or brand values.

1.2. Target Audience Profile

  • Demographics: Age, gender, location, income, education.
  • Psychographics: Interests, hobbies, values, lifestyle, pain points.
  • Online Behavior: Preferred social platforms, content consumption habits, purchasing behavior.
  • Why this audience matters: Clearly define how reaching this specific audience will contribute to your campaign objectives.

2. Ideal Influencer Profiles: Finding Your Perfect Brand Advocates

Identifying the right influencers is paramount to your campaign's success. This section outlines the criteria and types of influencers to consider.

2.1. Key Criteria for Influencer Selection

  • Niche & Relevance:

* Alignment: Does their content niche directly relate to your product/service or brand values?

* Authenticity: Do they genuinely use or believe in products similar to yours?

  • Audience Demographics:

* Match: Does their audience largely align with your target audience profile (age, location, interests)?

* Quality: Is their audience real and engaged, or are there signs of fake followers/bots?

  • Engagement Rate:

Formula: (Likes + Comments + Shares) / Followers \ 100

* Benchmark: Aim for an engagement rate typically above 2-3%, with micro-influencers often having much higher rates (5-10%+).

  • Content Quality & Aesthetic:

* Professionalism: Do they produce high-quality photos, videos, and captions?

* Brand Fit: Does their content style complement your brand's aesthetic and messaging?

  • Brand Alignment & Values:

* Reputation: Do they have a positive online reputation?

* Ethics: Do their personal values and past collaborations align with your brand's ethos?

  • Platform Proficiency:

* Expertise: Are they strong on the platforms most relevant to your target audience (Instagram, TikTok, YouTube, Facebook, Pinterest, Blogs)?

* Format: Do they excel in the content formats you require (Reels, Stories, long-form video, blog posts)?

2.2. Influencer Tiers & Their Benefits

| Tier | Follower Count (Approx.) | Engagement Rate (Avg.) | Benefits | Considerations |

| :-------------- | :----------------------- | :--------------------- | :-------------------------------------------------------------------- | :------------------------------------------------- |

| Nano | 1,000 - 10,000 | 5-10%+ | High authenticity, deep niche connection, cost-effective | Smaller reach, may require more guidance |

| Micro | 10,000 - 100,000 | 3-5% | Strong community, good balance of reach and engagement, rising stars | Still growing, may have less brand experience |

| Macro | 100,000 - 1 Million | 2-3% | Broad reach, established credibility, professional content | Higher cost, potentially less niche-specific |

| Mega/Celebrity | 1 Million+ | 1-2% | Massive reach, significant brand lift, mainstream appeal | Very high cost, less personal connection, limited availability |

2.3. Example Influencer Profile (Template)

Influencer Name: [Influencer's Handle]

Primary Platform(s): [e.g., Instagram, TikTok]

Follower Count: [e.g., 65,000]

Engagement Rate: [e.g., 4.8%]

Niche: [e.g., Sustainable fashion, eco-friendly living, ethical beauty]

Target Audience Overlap: [e.g., 25-34 year old females, interested in conscious consumption and minimalist aesthetics, primarily US-based.]

Content Style: [e.g., High-quality, warm-toned photography, authentic storytelling, tutorial-based videos.]

Why they are a good fit: [e.g., Their audience is highly engaged with sustainable products, their aesthetic aligns perfectly with our brand's natural feel, and they have a proven track record of driving conversions for similar brands.]

Potential Red Flags: [e.g., Occasional controversial comments in past posts, low engagement on sponsored content.]


3. Influencer Outreach Strategy & Templates

A professional and personalized outreach approach is key to securing collaborations with your desired influencers.

3.1. Pre-Outreach Steps

  1. Research: Deep dive into their content, past collaborations, and engagement style.
  2. Personalize: Find a specific piece of their content or a shared interest to reference in your initial message.
  3. Identify Contact Method: Look for their business email in their bio or "contact" button. Avoid DMs for initial outreach if possible, as they can get lost.
  4. Prepare Your Offer: Have a clear idea of what you're offering (product, payment, long-term partnership, etc.).

3.2. Outreach Email Template: Initial Contact

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

Hi [Influencer's First Name],

My name is [Your Name] and I'm the [Your Title] at [Your Brand Name]. I've been a long-time admirer of your work, particularly your [mention specific post/Reel/video – e.g., "recent Reel on sustainable travel tips" or "beautiful photography showcasing ethical fashion"]. Your dedication to [mention their niche/value – e.g., "conscious living" or "authentic storytelling"] truly resonates with our brand's mission.

At [Your Brand Name], we create [briefly describe your product/service and its core benefit – e.g., "innovative, plant-based skincare that delivers visible results while prioritizing environmental sustainability"]. We believe your audience, who values [mention shared audience value – e.g., "effective and ethical beauty solutions"], would genuinely appreciate what we offer.

We're currently planning an exciting campaign around [Campaign Theme/Product Launch] and believe your unique voice and engaging content style would be a perfect fit to help us spread the word. We'd love to explore a potential partnership where you could [suggest content idea – e.g., "create an authentic review, integrate our product into your daily routine, or highlight its benefits to your followers"].

Would you be open to a brief chat or receiving a detailed media kit to learn more about our brand and the collaboration opportunities we have available?

Thank you for your time and consideration.

Best regards,

[Your Name]

[Your Title]

[Your Brand Name]

[Your Website Link]

[Your Social Media Link (Optional)]

3.3. Outreach Email Template: Follow-Up

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

Hi [Influencer's First Name],

Hope this email finds you well.

I'm just following up on my previous email from [Date] regarding a potential collaboration between [Your Brand Name] and yourself.

We're still very keen on the idea of working together on our upcoming [Campaign Theme/Product Launch] and believe it could be a fantastic mutual opportunity.

In case you missed it, our brand, [Your Brand Name], offers [briefly reiterate product/service] and we're looking for authentic voices like yours to share our story.

If you're interested, please let me know a good time for a quick call or if you'd prefer, I can send over more detailed information about the campaign and our proposed deliverables.

Thanks again!

Best regards,

[Your Name]

3.4. Outreach Email Template: Negotiation / Offer

Subject: Partnership Offer: [Your Brand Name] x [Influencer's Name/Handle] - [Campaign Name]

Hi [Influencer's First Name],

Thank you for your interest in partnering with [Your Brand Name] for our upcoming [Campaign Name]! We're thrilled about the potential to collaborate.

Based on our discussions and your excellent content, we'd like to propose the following partnership:

Campaign Focus: [Briefly reiterate campaign goal and product focus]

Deliverables:

  • Instagram:

* 1 x In-Feed Post (Static Image/Carousel or Reel, permanent on grid)

* 3 x Instagram Stories (24-hour visibility, linking to [Your Website/Product Page])

  • TikTok:

* 1 x TikTok Video (15-30 seconds, demonstrating product use)

  • Key Message: [e.g., "Highlighting the ease of use and sustainable benefits of our new product."]
  • Mandatory Hashtags: #YourBrandName #CampaignHashtag #Ad #Sponsored
  • Call to Action: [e.g., "Link in bio to shop now and use code [DISCOUNT CODE] for 15% off!"]
  • Content Approval: We require final content approval 48 hours prior to posting.
  • Usage Rights: [e.g., Perpetual usage rights for your content on our social media, website, and email marketing.]

Compensation:

  • Fee: $[Amount]
  • Product: [Product Name & Value]
  • Payment Terms: 50% upfront upon signed contract, 50% upon completion of all deliverables and content approval.

Timeline:

  • Content Submission Deadline: [Date]
  • Posting Live Date: [Date Range, e.g., within 3 days of approval]

Please let us know if these terms work for you or if you have any questions or would like to discuss adjustments. We're excited about the possibility of creating something great together!

Looking forward to hearing from you.

Best regards,

[Your Name]


4. Influencer Contract Terms & Agreements

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

4.1. Key Contract Clauses to Include

  1. Parties Involved: Full legal names and contact information of both the brand and the influencer.
  2. Scope of Work & Deliverables:

* Detailed list of all content pieces (e.g., 1 Instagram feed post, 3 Instagram Stories, 1 TikTok video).

* Specific requirements for each deliverable (e.g., minimum duration for video, number of images, specific product placement).

* Mandatory elements (hashtags, @mentions, CTAs, disclosure tags).

* Approval process and revision rounds.

  1. Campaign Timeline:

* Content submission deadlines.

* Posting dates/windows.

* Payment schedule.

  1. Compensation & Payment Terms:

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

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

* Method of payment.

* Details for product provision (if applicable).

  1. Content Rights & Usage:

* Ownership: Who owns the raw and final content? (Typically, the influencer owns the raw, brand gets usage rights for final).

* License: Granting the brand specific rights to use the influencer's content (e.g., on brand social media, website, ads, email for X period, perpetually).

* Exclusivity:

* Product Exclusivity: Influencer agrees not to promote competitor products for a specified period (e.g., 30-90 days).

* Category Exclusivity: Broader exclusivity for a product category.

* Platform Exclusivity: Influencer agrees not to promote competitor products on specified platforms.

  1. Disclosure Requirements:

* Strict adherence to FTC guidelines (or local regulatory bodies) for sponsored content (e.g., #ad, #sponsored, "Paid partnership with").

* Specify placement of disclosure.

  1. Confidentiality: Non-disclosure of campaign details, product information, or contract terms.
  2. Representations & Warranties:

* Influencer confirms they have the right to enter the agreement, are not infringing on third-party rights, and will adhere to platform terms of service.

* Brand confirms product safety and legality.

  1. Termination Clause: Conditions under which either party can terminate the agreement (e.g., breach of contract, failure to deliver).
  2. Indemnification: Protection for both parties against legal claims arising from the other party's actions.
  3. Governing Law: Which jurisdiction's laws will govern the contract.

4.2. Contract Checklist

  • [ ] All parties identified and contact details accurate.
  • [ ] Clear, itemized list of deliverables.
  • [ ] Defined content approval process.
  • [ ] Compensation and payment schedule explicitly stated.
  • [ ] Content usage rights clearly outlined for brand.
  • [ ] Exclusivity period and scope defined.
  • [ ] FTC/Disclosure requirements specified.
  • [ ] Termination conditions outlined.
  • [ ] Legal counsel review complete (recommended).

5. Content Guidelines & Creative Brief

A detailed creative brief ensures brand consistency while allowing influencers creative freedom.

5.1. Campaign Theme & Core Message

  • Campaign Title: [e.g., "Summer Glow Up," "Sustainable Style Challenge"]
  • Overall Goal: [e.g., "Launch our new eco-friendly skincare line and drive initial sales."]
  • Key Message(s): [e.g., "Our product makes sustainable beauty effortless," "Experience radiant skin with natural ingredients."]
  • Tone of Voice: [e.g., "Empowering, educational, playful," "Sophisticated, aspirational, trustworthy."]
gemini Output

Influencer Campaign Planner: Optimized & Finalized Strategy

This document provides a comprehensive and detailed plan for executing a successful influencer marketing campaign. It covers all critical aspects from influencer identification and outreach to contract management, content guidelines, and robust ROI tracking.


1. Executive Summary

This Influencer Campaign Planner outlines a strategic framework designed to leverage authentic voices and engaged communities to achieve specific marketing objectives. By focusing on targeted influencer selection, clear communication, legally sound contracts, and data-driven performance measurement, this plan aims to maximize campaign effectiveness and deliver measurable return on investment (ROI). The goal is to build genuine brand advocacy and drive desired audience actions through impactful content.


2. Campaign Objectives & Key Performance Indicators (KPIs)

Before launching any campaign, clearly defined objectives and measurable KPIs are paramount.

Common Objectives & Corresponding KPIs:

  • Brand Awareness:

* KPIs: Reach (impressions, unique views), Mentions, Follower Growth, Brand Sentiment (social listening), Website Traffic (new users).

  • Engagement:

* KPIs: Engagement Rate (likes, comments, shares, saves per post), Click-Through Rate (CTR) on links, Story Tap-Through Rate, Video Views/Completion Rate.

  • Lead Generation/Conversions:

* KPIs: Website Clicks, Sign-ups, Downloads, Sales (tracked via unique codes, affiliate links), Cost Per Acquisition (CPA), Return on Ad Spend (ROAS).

  • Brand Perception/Sentiment:

* KPIs: Sentiment Analysis (positive/negative mentions), Brand Association (qualitative analysis of comments), Message Recall.

  • Content Creation:

* KPIs: Number of high-quality user-generated content (UGC) pieces, Content repurposing potential.


3. Target Audience & Campaign Theme

3.1. Target Audience Profile:

Define your ideal customer in detail. This will directly inform influencer selection and content strategy.

  • Demographics: Age, Gender, Location, Income Level, Education.
  • Psychographics: Interests, Values, Lifestyle, Pain Points, Aspirations, Online Behavior.
  • Platforms: Which social media platforms do they frequent most? (e.g., Instagram, TikTok, YouTube, Pinterest, Blogs).

3.2. Campaign Theme & Core Message:

Develop a concise and compelling theme that resonates with your target audience and aligns with your brand's values.

  • Core Message: What single, most important message do you want the audience to take away?
  • Unique Selling Proposition (USP): How does your product/service uniquely solve a problem or fulfill a desire?
  • Call-to-Action (CTA): What specific action do you want the audience to take? (e.g., "Shop Now," "Learn More," "Sign Up," "Download Our App").

4. Ideal Influencer Profiles

Selecting the right influencers is crucial for authenticity and impact.

4.1. Influencer Tiers & Characteristics:

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

* Pros: High engagement rates, highly niche audiences, perceived authenticity, cost-effective.

* Cons: Lower reach, more manual management.

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

* Pros: Strong community trust, good balance of reach and engagement, often specialized niches.

* Cons: Growing demand can increase costs.

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

* Pros: Significant reach, still good engagement, professional approach.

* Cons: Higher costs, potentially less niche.

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

* Pros: Massive reach, high visibility, established personal brand.

* Cons: Very high cost, lower engagement rates, less niche, potential for inauthenticity.

  • Celebrity Influencers (1M+ followers):

* Pros: Maximum reach, significant brand halo effect.

* Cons: Extremely high cost, often very low engagement, minimal authenticity, long lead times.

4.2. Key Profile Attributes:

  • Niche/Category Alignment: Do their content themes and audience interests directly match your product/service?
  • Audience Demographics: Do their followers match your target audience (age, location, interests)? Utilize audience insights tools.
  • Engagement Rate: A healthy engagement rate (likes + comments / followers) is crucial.

General Benchmarks:* Nano: 5-10%+, Micro: 3-5%+, Mid-Tier: 2-4%, Macro: 1-3%.

  • Content Quality & Aesthetic: Does their content style align with your brand's image and quality standards? Is it visually appealing and professional?
  • Authenticity & Trust: Do they genuinely connect with their audience? Do they have a history of promoting products authentically?
  • Brand Safety & Values: Do their past posts and overall persona align with your brand's values? Avoid influencers with controversial content or past scandals.
  • Past Brand Collaborations: Review their previous sponsored content. Is it well-integrated? Do they disclose partnerships properly?
  • Red Flags:

* Suspiciously high follower count with low engagement.

* High percentage of bot followers or fake engagement (check comments for generic replies).

* Inconsistent posting schedule or sudden spikes in activity.

* Lack of transparency in past sponsored posts.

* Negative brand associations or controversial content.


5. Influencer Outreach Strategy & Templates

A professional and personalized approach is essential for successful outreach.

5.1. Outreach Stages:

  1. Research & Shortlist: Identify potential influencers using tools (e.g., Creator IQ, Upfluence, HypeAuditor) or manual search.
  2. Initial Contact: Send a personalized message expressing genuine interest and outlining the potential collaboration.
  3. Follow-up: If no response, send a polite follow-up.
  4. Proposal & Negotiation: Share a detailed brief and discuss terms.
  5. Contracting: Finalize terms and formalize the agreement.

5.2. Key Elements of Outreach:

  • Personalization: Reference specific content or aspects of their profile you admire.
  • Clear Value Proposition: Briefly explain what you offer and why it's a good fit for them and their audience.
  • Transparency: Be clear about it being a paid collaboration from the outset.
  • Call to Action: Ask for their media kit, rates, or a brief call.
  • Professionalism: Use correct grammar and spelling.

5.3. Outreach Templates:

Template 1: Initial Contact (Email)

Subject: Exciting Collaboration Opportunity with [Your Brand Name] - [Influencer's Name]

Dear [Influencer's Name],

My name is [Your Name] and I'm the [Your Title] at [Your Brand Name]. I've been following your content on [Platform, e.g., Instagram/TikTok] for a while now, and I'm consistently impressed by your [mention specific content, e.g., "creative storytelling," "engaging reviews of sustainable products," "ability to connect with your audience"].

We're launching an exciting new campaign for our [Product/Service Name] and immediately thought of you. Our [Product/Service] is [briefly describe what it is and its main benefit, e.g., "a sustainable skincare line focused on natural ingredients" or "an innovative productivity app designed for creatives"], and we believe it would resonate perfectly with your audience who values [mention audience values, e.g., "eco-conscious living," "efficiency," "authentic recommendations"].

We're looking to partner with creators who can authentically showcase [Product/Service] to their community. We envision a collaboration that involves [mention potential deliverables, e.g., "a dedicated Instagram Reel and a series of engaging Stories"].

Would you be open to discussing this further? We'd love to hear your thoughts and learn more about your rates and availability. Please feel free to share your media kit if you have one.

Looking forward to hearing from you!

Best regards,

[Your Name]

[Your Title]

[Your Brand Name]

[Your Website]

[Your Social Media Link]


Template 2: Follow-Up Email

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

Dear [Influencer's Name],

Hope you're having a great week!

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

We're really keen to explore how your unique style and engaged audience could bring our [Product/Service] to life. We believe it would be a fantastic fit, offering genuine value to your followers.

If you're interested, please let me know a good time for a quick chat, or feel free to send over your media kit.

Thanks again for your time and consideration!

Best regards,

[Your Name]


6. Influencer Contract Terms (Key Clauses)

A robust contract protects both parties and ensures clarity. Always consult with legal counsel.

  • 6.1. Scope of Work (SOW):

* Detailed list of deliverables (e.g., 1 Instagram Reel, 3 Instagram Stories, 1 static post, 1 blog post).

* Specific platforms for each deliverable.

* Required messaging points, hashtags, @mentions, CTAs.

* Specific dates/deadlines for content submission, approval, and publication.

  • 6.2. Deliverables & Deadlines:

* Clear timeline for content submission, revisions, and final publication dates.

* Number of revisions allowed.

  • 6.3. Compensation:

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

* Payment schedule (e.g., 50% upfront, 50% upon publication; net 30 days).

* Method of payment.

* Inclusion of product/service value if applicable.

  • 6.4. Exclusivity:

* Specify a period during which the influencer cannot promote competing brands/products (e.g., 30 days before/after publication, or for the duration of the campaign).

* Specify the product category and geographical scope.

  • 6.5. Content Ownership & Usage Rights:

* Who owns the intellectual property of the created content?

* Brand's rights to repost, repurpose, edit, and use the content for paid amplification (whitelisting) across its own channels and for how long (e.g., 1 year, perpetual, specific campaigns).

* Influencer's rights to use the content after the campaign.

  • 6.6. Disclosure Requirements:

* Mandatory disclosure of sponsored content (e.g., #Ad, #Sponsored, #BrandPartner, "Paid partnership with [Brand Name]").

* Adherence to FTC (USA), ASA (UK), or local advertising standards.

* Specific placement of disclosure (e.g., within the first three lines of a caption, clearly visible on Stories/Videos).

  • 6.7. Payment Terms:

* Detailed breakdown of payment schedule and conditions.

* Invoicing requirements.

  • 6.8. Termination Clauses:

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

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

  • 6.9. Confidentiality:

* Agreement not to disclose proprietary information, campaign details, or unreleased product information.

  • 6.10. Indemnification:

* Protection against legal claims arising from either party's actions (e.g., influencer making false claims, brand providing faulty product).

  • 6.11. Governing Law:

* Which jurisdiction's laws will govern the contract.


7. Content Guidelines & Creative Brief

A detailed creative brief ensures content aligns with brand messaging and quality.

7.1. Overall Campaign Message & Goal:

  • Reiterate the core message and objectives.

7.2. Key Messaging Points (3-5 max):

  • What specific features, benefits, or emotions should be highlighted?
  • What problem does the product/service solve for the audience?

7.3. Required Elements:

  • Hashtags: Campaign-specific, brand-specific, and relevant trending hashtags (e.g., #YourBrandName, #YourProduct, #CampaignSlogan).
  • @Mentions: Brand's official social media handles (e.g., @YourBrandOfficial).
  • Call-to-Action (CTA): Clear and specific (e.g., "Link in bio to shop," "Use code [DISCOUNT] for X% off," "Download the app").
  • Links: Provide trackable UTM links or unique discount codes.
  • Disclosure: Clear instructions on proper disclosure (e.g., #Ad, Paid Partnership label).

7.4. Content Formats & Specifications:

  • Instagram:

* Reels: 15-90 seconds, vertical orientation (9:16), engaging hook, trending audio (if applicable).

* Stories: 15 seconds per slide, interactive elements (polls, questions), swipe-up link.

* Static Posts: High-resolution image/carousel, engaging caption (min. 3 sentences), relevant tags.

  • TikTok:

* Videos: 15-60 seconds, fast-paced, trending sounds/effects, clear CTA.

  • YouTube:

* Dedicated Video/Integration: 3-10 minutes, natural integration, clear product demonstration.

  • Blog Post:

* Word count, required keywords, internal/external links, image requirements.

7.5. Visual & Brand Aesthetics:

  • Tone of Voice: (e.g., playful, informative, luxurious, authentic, edgy).
  • Color Palette: Any specific brand colors to avoid or incorporate?
  • Imagery Style: (e.g., bright & airy, moody, natural, highly edited).
  • Product Placement: How should the product be featured? (e.g., prominently, naturally integrated, in use).
  • Examples: Provide examples of successful content (from your brand or competitors).
  • "Dos and Don'ts":

* DO: Be authentic, share personal experiences, create high-quality content, engage with comments.

* DON'T: Make false claims, use copyrighted music without permission, promote competitors, use low-resolution images/videos, post and delete.

7.6. Content Review & Approval Process:

  • Timeline: Specify deadlines for first draft submission, brand review, revisions, and final approval.
  • Feedback Mechanism: How will feedback be provided (e.g., email, shared document, specific
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);}});}