Influencer Campaign Planner
Run ID: 69cc7b423e7fb09ff16a24f62026-04-01Marketing
PantheraHive BOS
BOS Dashboard

Plan an influencer marketing campaign with ideal influencer profiles, outreach templates, contract terms, content guidelines, and ROI tracking framework.

Step 1 of 3: Audience Analysis for Influencer Campaign Planning

Workflow: Influencer Campaign Planner

Step: gemini → analyze_audience


Executive Summary

This document provides a comprehensive framework for audience analysis, critical for the success of any influencer marketing campaign. Understanding your target audience is the foundational step, enabling precise influencer selection, content strategy, and campaign messaging. This analysis outlines key segmentation criteria (demographic, psychographic, behavioral), highlights current audience engagement trends, and offers actionable recommendations for aligning influencer profiles with your desired customer base. By deeply understanding who we are trying to reach, we can ensure maximum relevance, engagement, and ultimately, a stronger return on investment (ROI).


1. Introduction: The Strategic Imperative of Audience Analysis

An influencer marketing campaign's effectiveness hinges on its ability to reach and resonate with the right people. Without a deep understanding of the target audience, efforts can be misdirected, leading to wasted resources and suboptimal results. This analysis focuses on deconstructing the target audience into actionable segments, identifying their motivations, behaviors, and preferred platforms. This detailed insight will directly inform the subsequent steps of influencer identification, content development, and campaign measurement.


2. Comprehensive Target Audience Segmentation Framework

To effectively analyze the target audience, we employ a multi-faceted segmentation approach. For a specific product/service, this framework would be populated with proprietary data. Here, we provide the categories and illustrative examples.

2.1. Demographics

  • Age Range:

* Insight: Determines content style, platform preference, and purchase power.

Example:* 18-24 (Gen Z), 25-40 (Millennials), 41-56 (Gen X).

  • Gender Identity:

* Insight: Influences product interest, visual preferences, and messaging tone.

Example:* Predominantly female, male, non-binary, or gender-neutral appeal.

  • Geographic Location:

* Insight: Critical for local campaigns, language considerations, cultural relevance, and shipping logistics.

Example:* Urban centers in North America, specific regions in Europe, global reach.

  • Income Level / Socioeconomic Status:

* Insight: Dictates purchasing power, brand perception (luxury vs. budget), and product affordability.

Example:* Entry-level, middle-income, affluent.

  • Education Level:

* Insight: Affects communication complexity, interest in detailed information vs. quick summaries.

Example:* High school, undergraduate, postgraduate.

  • Occupation / Industry:

* Insight: Relevant for B2B or niche B2C products, understanding daily routines and professional needs.

Example:* Tech professionals, stay-at-home parents, students, healthcare workers.

2.2. Psychographics

  • Interests & Hobbies:

* Insight: Key for identifying relevant content niches and lifestyle influencers.

Example:* Fitness, gaming, sustainable living, beauty, travel, cooking, DIY.

  • Values & Beliefs:

* Insight: Crucial for aligning with influencers who share similar ethical stances, promoting brand authenticity.

Example:* Environmental consciousness, social justice, personal growth, community, family-oriented.

  • Lifestyle:

* Insight: Helps understand daily routines, aspirations, and how a product fits into their life.

Example:* Active and adventurous, home-centric, tech-savvy, minimalist.

  • Attitudes & Opinions:

* Insight: Reveals openness to new products, brand loyalty, skepticism towards advertising.

Example:* Early adopters, trend followers, budget-conscious, brand-loyal.

  • Personality Traits:

* Insight: Aids in crafting messaging that resonates with their emotional landscape.

Example:* Ambitious, creative, pragmatic, adventurous, introverted, extroverted.

  • Motivations & Aspirations:

* Insight: What drives them? What are their goals and dreams? How does the product help them achieve these?

Example:* Seeking convenience, self-improvement, status, connection, entertainment, problem-solving.

  • Pain Points & Challenges:

* Insight: What problems does your product solve for them? How can influencers address these directly?

Example:* Lack of time, financial constraints, health issues, feeling uninspired, difficulty finding reliable information.

2.3. Behavioral Data

  • Online Behavior & Digital Footprint:

* Insight: Which social media platforms do they frequent? What content types do they engage with most (video, images, text, live streams)?

Example:* Heavy TikTok users, active on Instagram Stories, engage with long-form YouTube videos, participate in Facebook Groups.

  • Content Consumption Habits:

* Insight: What kind of content do they consume? Educational, entertaining, aspirational, review-based?

Example:* Follow tutorial channels, watch product reviews, consume short-form comedic content, read blog posts.

  • Purchasing Habits:

* Insight: Online vs. in-store, frequency, average order value, brand loyalty, impulse vs. considered purchases.

Example:* Frequent online shoppers, research extensively before buying, price-sensitive, loyal to specific brands.

  • Interaction with Influencers:

* Insight: What types of influencers do they follow? What drives their trust in an influencer?

Example:* Follow micro-influencers for niche advice, trust macro-influencers for entertainment, respond well to authentic storytelling.


3. Key Audience Insights & Current Trends

Understanding the static profile is one thing; understanding the dynamic shifts in audience behavior is another.

3.1. Trends in Content Consumption & Platform Usage

  • Dominance of Short-Form Video: Platforms like TikTok, Instagram Reels, and YouTube Shorts continue to capture significant audience attention, especially among Gen Z and younger Millennials. This demands dynamic, attention-grabbing content.
  • Rise of Authenticity & "Real" Content: Audiences are increasingly wary of overly polished or overtly promotional content. They seek genuine experiences, behind-the-scenes glimpses, and relatable narratives from influencers.
  • Niche Communities & Micro-Influencers: Users are gravitating towards highly specific communities and micro-influencers who offer deep expertise and foster strong engagement within a particular niche. This often leads to higher conversion rates due to targeted trust.
  • Live Commerce & Interactive Experiences: Live streams, Q&A sessions, and interactive polls are driving deeper engagement and fostering direct connections between influencers and their audience, often leading to immediate purchase decisions.
  • Audio Content Growth: Podcasts and audio-only content are gaining traction, providing opportunities for long-form, in-depth discussions that build trust and thought leadership.

3.2. Audience Expectations from Influencers

  • Authenticity & Transparency: Audiences expect influencers to genuinely use and believe in the products they promote. Disclosures (e.g., #ad) are accepted, but lack of genuine enthusiasm or clear alignment is quickly detected and penalized.
  • Relatability: Influencers who share similar experiences, challenges, or lifestyles are more likely to build a strong connection and trust with their audience.
  • Value Provision: Beyond entertainment, audiences seek value – whether it's education, inspiration, problem-solving, or exclusive insights.
  • Consistency: Regular, high-quality content delivery is crucial for maintaining audience engagement and trust.
  • Ethical Alignment: Audiences are increasingly scrutinizing influencers' values and stances on social issues. Alignment with ethical brands and causes can significantly boost engagement and loyalty.

3.3. Purchase Drivers & Barriers

  • Drivers: Trust in influencer recommendations, perceived value, social proof, ease of purchase, exclusive discounts/offers, solving a pain point, aspirational appeal.
  • Barriers: High price point, lack of perceived need, skepticism about product claims, poor reviews, misalignment with personal values, difficult purchasing process.

4. Recommendations for Influencer Profile Alignment

Based on the audience analysis, the following recommendations are crucial for selecting the ideal influencers:

  • Focus on Audience Overlap: Prioritize influencers whose audience demographics and psychographics closely match our target customer profile, rather than solely focusing on the influencer's personal brand.
  • Content Resonance: Select influencers whose content style, tone, and format naturally align with our audience's preferred consumption habits (e.g., if our audience loves short-form educational videos, target influencers specializing in that).
  • Authenticity & Trust Signals: Identify influencers with a history of genuine engagement, transparent disclosures, and a strong, trusting relationship with their followers. Look for high comment-to-like ratios and authentic conversations.
  • Niche Relevance: For specific products, prioritize micro- and nano-influencers within highly relevant niches. Their smaller, more engaged audience often yields higher conversion rates.
  • Values Alignment: Partner with influencers whose personal brand values and public persona align with our brand's mission and values. This mitigates risk and enhances brand reputation.
  • Engagement Metrics over Follower Count: Emphasize engagement rate (likes, comments, shares, saves) as a primary metric, as it's a better indicator of an active and responsive audience than sheer follower numbers.
  • Platform Specificity: Tailor influencer selection to the dominant platforms where our target audience spends their time (e.g., TikTok for Gen Z, Instagram for Millennials, YouTube for in-depth reviews).

5. Data Sources & Methodology (Illustrative)

To conduct a thorough audience analysis, a combination of data sources is typically utilized:

  • Internal Data:

* Customer Relationship Management (CRM) data (purchase history, demographics)

* Website analytics (Google Analytics: user demographics, interests, behavior flow)

* Social media analytics (platform insights: follower demographics, engagement patterns)

* Email marketing data (open rates, click-throughs, segment performance)

* Customer surveys and feedback forms

  • External Data:

* Market research reports (industry trends, consumer behavior studies)

* Competitor analysis (their audience, successful campaigns)

* Social listening tools (identifying conversations, sentiment, emerging trends)

* Third-party audience intelligence platforms (e.g., SparkToro, Audiense)

Methodology:

  1. Data Collection: Gather quantitative and qualitative data from all available sources.
  2. Segmentation: Apply the demographic, psychographic, and behavioral filters to segment the audience.
  3. Persona Development: Create detailed buyer personas representing key audience segments.
  4. Trend Analysis: Identify current and emerging trends in content consumption, platform usage, and influencer interaction.
  5. Gap Analysis: Identify any missing data points and plan for future research.
  6. Synthesis & Recommendations: Consolidate findings into actionable insights for influencer selection and campaign strategy.

6. Next Steps

This detailed audience analysis forms the bedrock for the subsequent stages of the Influencer Campaign Planner workflow.

  1. Develop Detailed Buyer Personas: Using the insights from this analysis, create 2-3 detailed buyer personas that encapsulate the core target audience segments. These personas will guide all future decisions.
  2. Define Campaign Objectives: With a clear understanding of the audience, refine specific, measurable, achievable, relevant, and time-bound (SMART) campaign objectives.
  3. Begin Influencer Identification & Vetting: Based on the recommended influencer profile alignment, initiate the search for potential influencers whose audience, content, and values align with our brand and campaign goals.
  4. Content Strategy Brainstorm: Start brainstorming content themes and formats that would resonate most effectively with the identified audience segments, leveraging their preferred platforms and content styles.
  5. Budget Allocation Consideration: Begin to think about how budget might be allocated across different influencer tiers (nano, micro, macro, celebrity) based on the audience reach and engagement priorities.
gemini Output

Influencer Campaign Planner: Your Blueprint for Success

Welcome to your comprehensive Influencer Campaign Planner! In today's dynamic digital landscape, influencer marketing is a powerful strategy to connect with your target audience authentically and drive significant results. This planner provides a detailed framework, from identifying the perfect partners to tracking your return on investment, ensuring your campaign is strategic, effective, and delivers measurable impact.


1. Campaign Objectives & Key Performance Indicators (KPIs)

Before launching any campaign, clearly defining your goals is paramount. What do you aim to achieve with this influencer marketing initiative?

1.1 Defining Your Campaign Goals

  • Brand Awareness: Increase visibility and recognition for your brand or a specific product/service.
  • Audience Engagement: Foster interaction, conversations, and community around your brand.
  • Lead Generation: Capture potential customer information (e.g., email sign-ups, form submissions).
  • Website Traffic: Drive qualified visitors to your website, landing pages, or e-commerce store.
  • Sales & Conversions: Directly impact product purchases, service subscriptions, or app downloads.
  • Content Creation: Generate authentic, user-generated-style content for your own marketing channels.
  • Brand Sentiment/Perception: Improve how your brand is perceived by the target audience.

1.2 Establishing Measurable KPIs

For each objective, define specific, measurable, achievable, relevant, and time-bound (SMART) KPIs.

  • For Brand Awareness:

* KPIs: Reach (total unique viewers), Impressions (total views), Mentions, Follower Growth.

* Tools: Social media analytics, brand mention tracking tools.

  • For Audience Engagement:

* KPIs: Engagement Rate (likes, comments, shares, saves per post/story), Story Views, DM inquiries.

* Tools: Social media analytics, influencer reporting.

  • For Lead Generation:

* KPIs: Number of sign-ups, form submissions, downloads via unique tracking links.

* Tools: CRM, landing page analytics, UTM tracking.

  • For Website Traffic:

* KPIs: Referral Traffic from influencer links, Unique Page Views, Time on Page.

* Tools: Google Analytics, UTM tracking.

  • For Sales & Conversions:

* KPIs: Number of sales, Revenue generated, Conversion Rate, Average Order Value (AOV) via unique discount codes/affiliate links.

* Tools: E-commerce platform analytics, CRM, affiliate tracking software.

  • For Content Creation:

* KPIs: Number of high-quality assets delivered, Repurposing rate on owned channels.

* Tools: Content review and approval process.


2. Ideal Influencer Profiles: Finding Your Perfect Match

Identifying the right influencers is critical for authentic connection and campaign success. This section outlines the key criteria for selecting partners who resonate with your brand and audience.

2.1 Defining Your Target Audience

  • Demographics: Age, gender, location, income, education.
  • Psychographics: Interests, values, lifestyle, pain points, aspirations.
  • Online Behavior: Platforms they frequent, content they consume, influencers they follow.

2.2 Influencer Tier & Type

Consider the scale and reach you need, balanced with authenticity and engagement.

  • Nano-Influencers (1K-10K followers): Highly engaged, niche communities, strong trust. Ideal for authentic reviews and hyper-targeted campaigns.
  • Micro-Influencers (10K-100K followers): Strong engagement, specific niches, good balance of reach and authenticity. Often more affordable.
  • Mid-Tier Influencers (100K-500K followers): Broader reach than micro, still good engagement, growing influence.
  • Macro-Influencers (500K-1M+ followers): Significant reach, established presence, can drive high awareness. May come with higher costs and potentially lower engagement rates.
  • Celebrity Influencers (1M+ followers): Massive reach, high awareness, high cost. Best for large-scale brand campaigns.

2.3 Key Selection Criteria

  • Audience Alignment: Do their followers match your target audience demographics and interests?
  • Brand Fit: Does their personal brand, values, and content style align naturally with your brand's image and messaging? Authenticity is key.
  • Engagement Rate: A high follower count means little without engagement. Look for strong likes, comments, shares, and saves relative to their follower count.

Formula: (Total Likes + Total Comments) / Total Followers 100% (for a single post)

  • Content Quality & Aesthetic: Is their content visually appealing, well-produced, and professional? Does it meet your brand's aesthetic standards?
  • Authenticity & Trust: Do they genuinely connect with their audience? Are their recommendations trusted? Look for genuine conversations in comments.
  • Niche Relevance: Are they active in a niche relevant to your product/service?
  • Past Collaborations: Review previous sponsored content. Is it clearly disclosed? How did it perform?
  • Red Flags to Watch For:

* Fake Followers/Bots: Use auditing tools to detect inflated follower counts.

* Inconsistent Engagement: Sudden spikes or drops in engagement can indicate manipulation.

* Brand Safety Issues: Content that is controversial, offensive, or misaligned with your brand values.


3. Influencer Outreach Strategy & Templates

A well-crafted outreach strategy is essential for securing partnerships. Be professional, personalized, and clear about your value proposition.

3.1 Outreach Strategy Best Practices

  • Personalization is Key: Avoid generic templates. Reference specific content, posts, or aspects of their profile that caught your attention.
  • Be Concise & Clear: Get straight to the point. Influencers receive many collaboration requests.
  • Highlight Mutual Value: Explain why this partnership benefits them and their audience, not just your brand.
  • Provide Context: Briefly introduce your brand and the campaign concept.
  • Be Flexible: Be open to their creative input and negotiation regarding deliverables and compensation.
  • Follow-Up: A polite follow-up after a few days is appropriate.

3.2 Initial Outreach Email Template

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

Dear [Influencer's Name],

My name is [Your Name] and I'm the [Your Title] at [Your Brand Name]. I've been following your [Platform, e.g., Instagram/TikTok] content for a while now, and I'm consistently impressed by your [specific compliment, e.g., "authentic storytelling," "engaging reviews of sustainable products," "unique fashion sense"]. I particularly loved your recent post about [mention a specific piece of content, e.g., "your morning routine," "the hiking trip to Yosemite"].

At [Your Brand Name], we [briefly describe what your brand does, e.g., "create eco-friendly skincare products," "offer innovative productivity tools," "design stylish and comfortable activewear"]. We're currently planning a [Campaign Name/Goal, e.g., "new product launch for our hydrating serum," "back-to-school campaign focusing on smart study habits"] and we immediately thought of you as an ideal partner.

We believe your audience, who [describe their audience, e.g., "values sustainability and natural beauty," "seeks practical solutions for daily challenges," "appreciates high-quality, comfortable apparel"], would genuinely connect with our [Product/Service].

We're looking to collaborate on [mention desired content type, e.g., "an Instagram Reel and a few Story slides," "a dedicated YouTube video review," "a blog post with product integration"]. We're open to your creative input and have a budget allocated for this partnership.

Would you be open to discussing this opportunity further? I'd be happy to share more details about our brand and campaign vision.

Thank you for your time and consideration.

Best regards,

[Your Name]

[Your Title]

[Your Brand Name]

[Your Website]

[Link to your brand's social media]

3.3 Follow-Up Email Template

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

Dear [Influencer's Name],

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

We're really excited about the possibility of partnering with you on our upcoming [Campaign Name/Goal] and believe your unique voice would be a perfect fit.

If you're interested, please let me know a good time for a brief chat, or if you prefer, I can send over a more detailed brief outlining the campaign and potential deliverables.

Thank you again for your time.

Best regards,

[Your Name]


4. Contract Terms & Legal Considerations

A clear, legally sound contract protects both your brand and the influencer. Ensure all expectations, deliverables, and payment terms are explicitly stated.

4.1 Key Contract Clauses

  • Scope of Work & Deliverables:

* Specific content types (e.g., 1 Instagram Reel, 3 Stories, 1 Static Post).

* Required elements (e.g., product placement, specific call to action, hashtags, mentions).

* Posting schedule and deadlines.

* Review and approval process (number of revisions, approval timelines).

  • Compensation:

* Payment amount (flat fee, per post, performance-based).

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

* Method of payment.

* Product gifting details (if applicable, state if it's in addition to or instead of monetary payment).

  • Content Rights & Usage:

* Who owns the created content?

* Your brand's rights to repost, repurpose, and use the content for paid advertising (usage rights, licensing terms, duration of use).

* Influencer's rights to use content for their portfolio.

  • Disclosure Requirements:

* Mandatory disclosure of sponsored content (e.g., #Ad, #Sponsored, "Paid Partnership" tool) in line with FTC guidelines (or local regulatory bodies).

* Clear instructions on how and where to include disclosures.

  • Exclusivity:

* If applicable, exclusivity period (e.g., influencer cannot promote a competitor for X days/weeks).

* Geographic limitations (if any).

  • Term & Termination:

* Start and end dates of the agreement.

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

* Consequences of termination.

  • Confidentiality:

* Protection of sensitive campaign information.

  • Representations & Warranties:

* Influencer confirms they have the right to create and license content, will not infringe on third-party rights, and will adhere to brand guidelines.

  • Indemnification:

* Protection against legal claims arising from the influencer's actions or content.

  • Governing Law:

* Which jurisdiction's laws will govern the contract.

4.2 Legal & Ethical Compliance

  • FTC Guidelines (USA) / ASA (UK) / ACCC (Australia) etc.: Ensure all influencers clearly disclose sponsored content. Non-compliance can lead to significant fines and reputational damage.
  • Data Privacy (GDPR, CCPA): If collecting any personal data, ensure compliance.
  • Intellectual Property: Ensure you have the necessary rights to use the content created.

5. Content Guidelines & Creative Brief

A clear creative brief empowers influencers to produce content that aligns with your brand vision while retaining their authentic voice.

5.1 Campaign Overview

  • Campaign Name & Goal: Reinforce objectives.
  • Key Message/Call to Action (CTA): What do you want the audience to do or feel? (e.g., "Shop now at [link]," "Learn more about [product]," "Use code [discount code]").
  • Target Audience: Remind the influencer who they are speaking to.
  • Tone of Voice: (e.g., playful, educational, luxurious, trustworthy, empowering).

5.2 Product/Service Information

  • Key Features & Benefits: What makes your offering unique and valuable?
  • Unique Selling Proposition (USP): What problem does it solve?
  • Product Usage Instructions: How to correctly use/experience the product.
  • Visuals: High-quality product images, brand assets, logos.

5.3 Content Requirements

  • Platform(s): Instagram, TikTok, YouTube, Blog, etc.
  • Content Format(s):

* Instagram: Static Post, Carousel, Reel, Story (specify number of frames/slides), IGTV.

* TikTok: Short-form video (specify duration), sound requirements.

* YouTube: Dedicated video, integration within existing video (specify duration).

* Blog: Word count, image requirements, link placement.

  • Mandatory Elements:

* Product Placement: How and when the product should be featured.

* Visual Aesthetics: Color palette, lighting, overall mood.

* Brand Mentions: @yourbrandhandle.

* Hashtags: #YourBrandName, #CampaignHashtag, #Sponsored, #Ad, #[RelevantNiche] (e.g., #SkincareRoutine, #TechGadgets).

* Links: Specific URLs, UTM parameters, discount codes.

* Verbal Mentions: Specific phrases or points to communicate.

  • Prohibited Content:

* Mentioning competitors.

* Misleading claims.

* Offensive language or imagery.

* Anything that violates platform guidelines.

  • Creative Freedom: Encourage influencers to integrate the product/message authentically into their own content style. Provide examples of successful past content (theirs or others') that aligns with your vision.

5.4 Deliverables & Deadlines

  • Draft Submission: Date for initial draft for review.
  • Feedback & Revisions: Timeline for your team to provide feedback and for the influencer to make revisions.
  • Final Approval: Date by which content must be approved.
  • Publishing Date/Window: Specific date or range for content to go live.
  • Reporting: Date for influencer to submit performance metrics.

6. ROI Tracking & Measurement Framework

Measuring the effectiveness of your influencer campaign is crucial for optimizing future strategies and demonstrating value.

6.1 Pre-Campaign Baseline Measurement

  • Website Traffic: Current average daily/weekly visitors.
  • Social Media Analytics: Current follower count, average engagement rate, reach, impressions.
  • Sales/Conversions: Baseline sales data for relevant products.
  • Brand Sentiment: Current brand mentions, sentiment analysis.

6.2 Tracking Tools & Methods

  • UTM Parameters: Crucial for tracking website traffic, leads, and sales originating from specific influencer links.

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

  • Unique Discount Codes: Assign unique codes to each influencer to track direct sales and conversions.
  • Affiliate Links: If using an affiliate model, these track sales and commissions.
  • Influencer Reporting: Request screenshots or data from influencer's native platform analytics (e.g., Instagram Insights, TikTok Analytics, YouTube Studio).
  • Social Listening Tools: Monitor brand mentions, sentiment, and trending hashtags.
  • Google Analytics: Track referral traffic, time on page, bounce rate, and conversion paths.
  • E-commerce Platform Analytics: Track sales, AOV, and customer demographics from influencer-driven purchases.
  • Dedicated Influencer Marketing Platforms: Many platforms offer integrated tracking and reporting features.

6.3 Key Metrics to Track (Post-Campaign)

  • Reach & Impressions: Total unique views and total views across all influencer content.
  • Engagement Rate: Total likes, comments, shares, saves, story views, and DMs relative to follower count/reach.
  • Website Traffic: Number of unique visitors and page views driven by influencer links.

*

gemini Output

Influencer Campaign Planner: Finalized Strategy & Execution Plan

This document outlines a comprehensive, actionable plan for your upcoming influencer marketing campaign. It covers all essential components from influencer identification to ROI tracking, designed to ensure a successful and measurable campaign.


1. Executive Summary

This influencer marketing campaign is designed to [State primary campaign objective, e.g., increase brand awareness, drive product sales, enhance brand perception] for [Your Brand/Product Name]. By partnering with carefully selected influencers who resonate with our target audience, we aim to [Summarize key benefits, e.g., generate authentic content, expand reach, build trust]. This plan details the strategy, operational guidelines, and measurement framework to achieve our objectives effectively and efficiently.


2. Campaign Overview

  • Campaign Name: [Suggest a creative campaign name, e.g., "GlowUp with [Brand Name]", "Unbox Your Adventure with [Brand Name]"]
  • Brand/Product Focus: [Clearly state the brand and specific product(s) or service(s) to be promoted]
  • Campaign Goal(s) (SMART):

* Specific: [e.g., Increase website traffic to product page, drive X number of sales, improve brand sentiment]

* Measurable: [e.g., by 20%, achieve 500 sales, increase positive mentions by 15%]

* Achievable: [Ensure the goal is realistic given resources and timeline]

* Relevant: [Aligns with overall business objectives]

* Time-bound: [Within 3 months, by end of Q4]

  • Target Audience: [Detailed description, e.g., "Females, 25-40, interested in sustainable beauty products, income $50k+, located in urban areas"]
  • Key Message(s): [Core message(s) to be communicated, e.g., "Experience the natural glow of [Product X]", "Unlock your potential with [Service Y]"]
  • Campaign Duration: [Start Date] to [End Date] (e.g., 12 weeks)
  • Budget Allocation Summary:

* Influencer Fees: [X]%

* Product Gifting/Sampling: [Y]%

* Content Amplification (Paid Ads): [Z]%

* Agency/Platform Fees (if applicable): [A]%

* Contingency: [B]%

Total Estimated Budget: [Currency Amount]*


3. Ideal Influencer Profiles

To ensure maximum impact and authenticity, we will target influencers who align with our brand values and audience demographics.

  • Key Selection Criteria:

* Niche Alignment: Influencers whose content naturally aligns with [Your Industry/Product Category] (e.g., beauty, fitness, tech, lifestyle, parenting).

* Audience Demographics: A significant portion of their audience should match our target audience (age, gender, location, interests).

* Engagement Rate: Consistently high engagement rate (average 3-5% for micro/macro, 5-10%+ for nano) indicating an active and loyal following.

* Follower Count: A strategic mix to achieve broad reach and deep engagement:

* Nano-influencers (1k-10k followers): High authenticity, niche focus, strong community trust.

* Micro-influencers (10k-100k followers): Good balance of reach and engagement, often specialized.

* Macro-influencers (100k-1M followers): Wider reach, established authority.

* (Optional) Celebrity/Mega-influencers (1M+ followers): Significant reach, high awareness, but higher cost and potentially lower engagement rate.

* Brand Alignment & Aesthetics: Content style, tone, and visual aesthetics must be consistent with our brand image.

* Content Quality: High-quality photos, videos, and captions; creative storytelling abilities.

* Authenticity & Trust: Genuine connection with their audience, transparent past collaborations.

* Past Performance: Evidence of successful brand collaborations and positive audience feedback.

* Exclusion Criteria: History of controversial content, fake followers/engagement, poor brand partnerships.

  • Preferred Influencer Mix:

* [X]% Nano-influencers (e.g., for user-generated content and authentic reviews)

* [Y]% Micro-influencers (e.g., for targeted reach and strong engagement)

* [Z]% Macro-influencers (e.g., for broader awareness and authority)

  • Tools for Identification:

* Manual Search: Instagram, TikTok, YouTube, Blogs, Pinterest, etc., using relevant hashtags and keywords.

* Influencer Platforms/Marketplaces: [e.g., Upfluence, Grin, AspireIQ, CreatorIQ, HypeAuditor] for advanced search, audience analytics, and fraud detection.

* Competitor Analysis: Identify influencers collaborating with similar brands.


4. Influencer Outreach Strategy & Templates

A personalized and value-driven outreach approach is crucial for securing high-quality partnerships.

  • Outreach Channels:

* Direct Message (DM): For initial contact on platforms like Instagram, TikTok.

* Email: Preferred for formal proposals, detailed discussions, and contract sharing.

* Influencer Platforms: If using a platform, leverage its communication tools.

  • Initial Contact Template (Email - Adapt for DM):

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

Dear [Influencer's Name],

My name is [Your Name] and I'm the [Your Role] at [Your Brand Name]. I've been following your content on [Platform, e.g., Instagram] for some time, and I'm consistently impressed by your [Specific compliment, e.g., creative approach to sustainable living, engaging beauty tutorials, authentic travel stories]. Your audience's engagement with your posts on [mention a specific post or theme] truly stands out.

We believe your unique style and highly engaged community would be a perfect fit to introduce [Your Brand Name/Product] to a wider audience. [Your Brand Name] is a [briefly describe your brand/product and its unique selling proposition, e.g., "a cruelty-free skincare brand focused on natural ingredients," "an innovative tech gadget designed for remote workers"].

We are planning an exciting campaign to [briefly state campaign goal, e.g., launch our new eco-friendly line, showcase the versatility of our product] and would love to explore a potential collaboration with you. We envision [briefly mention type of content, e.g., a dedicated Instagram post and story series, a YouTube review].

Would you be open to a brief call next week to discuss this opportunity further and share more details about our brand and campaign? Please let me know your availability.

Thank you for your time and consideration.

Best regards,

[Your Name]

[Your Title]

[Your Brand Name]

[Your Website]

[Your Social Media Link]

  • Follow-up Template (Email - 3-5 business days after initial contact):

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

Dear [Influencer's Name],

Hope this email finds you well.

I just wanted to follow up on my previous email regarding a potential collaboration between [Your Brand Name] and you. We’re very enthusiastic about the possibility of working together to [reiterate campaign goal].

If you've had a chance to review our initial message and are interested, I'd be happy to provide more details about the campaign, our expectations, and the potential compensation structure.

Please let me know if you have any questions or if there's a better time for us to connect.

Thank you,

[Your Name]

  • Negotiation Points:

* Compensation: Clearly define payment structure (flat fee, per post, commission, product gifting, a hybrid).

* Deliverables: Specific number and type of posts (e.g., 1 Instagram feed post, 3 Instagram Stories, 1 TikTok video).

* Usage Rights: Discuss brand's rights to reuse influencer content (for how long, on what channels).

* Exclusivity: If required, specify a period and category of products/brands they cannot promote.

* Deadlines: Clear content submission and posting deadlines.


5. Influencer Contract Terms (Key Considerations)

A legally sound contract is essential to protect both parties and ensure clear expectations. This is not legal advice; always consult with a legal professional.

  • Scope of Work (SOW):

* Deliverables: Detailed list of all content requirements (e.g., number of posts, stories, videos, blog posts, live sessions).

* Platforms: Specify social media channels or blogs where content will be published.

* Posting Schedule: Clear dates/windows for content submission, approval, and publication.

* Key Messages & Hashtags: Required brand mentions, campaign hashtags, and tracking links.

  • Payment Terms:

* Compensation: Agreed-upon fee (flat fee, performance-based, product-in-kind).

* Payment Schedule: When and how payment will be made (e.g., 50% upfront, 50% upon completion; net 30 days after invoice).

* Invoicing: Requirements for invoice submission.

  • Content Ownership & Usage Rights:

* Content License: Granting the brand a non-exclusive, worldwide, perpetual license to use, reproduce, modify, and distribute the created content across its own channels (website, social media, ads). Specify any restrictions or additional compensation for extended usage.

* Exclusivity Clause: If the influencer cannot promote competing brands/products for a specified period (e.g., 30 days pre/post campaign).

  • Disclosure Requirements:

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

* Specific disclosure language (e.g., #Ad, #Sponsored, #BrandPartner) and placement (prominently at the beginning of the post/video).

  • Content Approval Process:

* Timeline for submitting drafts for brand review.

* Number of revisions allowed.

* Brand's right to request changes or final approval before publication.

  • Performance Metrics & Reporting:

* Influencer agrees to provide access to analytics or screenshots for agreed-upon metrics (e.g., reach, impressions, engagement rate, clicks).

* Reporting frequency and format.

  • Termination Clauses:

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

* Consequences of termination (e.g., pro-rata payment for completed work).

  • Confidentiality:

* Influencer agrees not to disclose proprietary information about the brand or campaign.

  • Indemnification:

* Protection for the brand against any claims arising from the influencer's actions (e.g., copyright infringement, misleading claims).

  • Governing Law:

* Specify the jurisdiction whose laws will govern the contract.


6. Content Guidelines & Creative Brief

A clear creative brief ensures consistency and quality while allowing influencers creative freedom.

  • Overall Campaign Theme & Tone:

* Theme: [e.g., "Empowerment through natural beauty," "Adventure awaits," "Seamless productivity"]

* Tone: [e.g., "Authentic, inspiring, approachable," "Exciting, adventurous, premium," "Informative, trustworthy, innovative"]

  • Key Message Integration:

* How to naturally weave in the core message(s) without sounding overly promotional.

* Encourage personal storytelling and genuine experiences with the product/service.

  • Required Elements (Checklist):

* Product Placement: Clearly visible product/service in [X]% of content.

* Call to Action (CTA): Specific action (e.g., "Shop now at [link in bio]," "Use code [DISCOUNTCODE] for 15% off," "Learn more at [website]").

* Hashtags:

* Campaign-specific: [#YourCampaignHashtag]

* Brand-specific: [#YourBrandName, #YourBrandSlogan]

* Relevant niche: [#SkincareRoutine, #TravelGear, #HomeDecor]

* Disclosure: [#Ad, #Sponsored, #BrandPartner]

* Mentions/Tags: Tag [@YourBrandHandle] in posts and stories.

* Link in Bio: Instructions for placing the unique tracking link in their bio for a specified period.

* Visual Aesthetics: Guidance on lighting, background, overall mood to match brand style (e.g., bright & airy, minimalist, vibrant & energetic).

  • Do's and Don'ts:

* DO: Be authentic, share personal experiences, engage with comments, use high-quality visuals, adhere to deadlines.

* DON'T: Make unsubstantiated claims, use profanity, post controversial content, endorse competitor products during the campaign, use low-resolution images/videos.

  • Content Approval Process:

* Draft Submission: Influencers submit content drafts (visuals + captions) to [Your Email Address/Platform] by [X days before publish date].

* Review & Feedback: Brand provides feedback/approval within [Y business days].

* Revisions: Influencer makes necessary revisions and resubmits.

* Final Approval: Brand gives final green light for publication.

  • Technical Specifications:

* Image: Minimum resolution [X] pixels, aspect ratio [e.g., 1:1, 4:5, 9:16].

* Video: Minimum resolution [X]p, aspect ratio [e.g., 9:16 for Stories/Reels/TikTok], maximum duration [Y] seconds/minutes.

* Audio: Clear, professional audio for videos.


7. ROI Tracking Framework

Measuring the return on investment is crucial to evaluate campaign success and inform future strategies.

  • Key Performance Indicators (KPIs):

* Awareness:

* Reach: Total unique viewers who saw the content.

* Impressions: Total number of times content was displayed.

* Brand Mentions: Number of times your brand was mentioned (organic + campaign).

* Sentiment: Positive, neutral, or negative mentions.

* Engagement:

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

* Clicks: On tracking links (link in bio, swipe up).

*Comments

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
"); 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' import ReactDOM from 'react-dom/client' import App from './App' import './index.css' ReactDOM.createRoot(document.getElementById('root')!).render( ) "); 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' import './App.css' function App(){ return(

"+slugTitle(pn)+"

Built with PantheraHive BOS

) } export default App "); zip.file(folder+"src/index.css","*{margin:0;padding:0;box-sizing:border-box} body{font-family:system-ui,-apple-system,sans-serif;background:#f0f2f5;color:#1a1a2e} .app{min-height:100vh;display:flex;flex-direction:column} .app-header{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:40px} h1{font-size:2.5rem;font-weight:700} "); 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)+" Generated by PantheraHive BOS. ## Setup ```bash npm install npm run dev ``` ## Build ```bash npm run build ``` ## Open in IDE Open the project folder in VS Code or WebStorm. "); zip.file(folder+".gitignore","node_modules/ dist/ .env .DS_Store *.local "); } /* --- 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",'{ "name": "'+pn+'", "version": "0.0.0", "type": "module", "scripts": { "dev": "vite", "build": "vue-tsc -b && vite build", "preview": "vite preview" }, "dependencies": { "vue": "^3.5.13", "vue-router": "^4.4.5", "pinia": "^2.3.0", "axios": "^1.7.9" }, "devDependencies": { "@vitejs/plugin-vue": "^5.2.1", "typescript": "~5.7.3", "vite": "^6.0.5", "vue-tsc": "^2.2.0" } } '); zip.file(folder+"vite.config.ts","import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import { resolve } from 'path' export default defineConfig({ plugins: [vue()], resolve: { alias: { '@': resolve(__dirname,'src') } } }) "); zip.file(folder+"tsconfig.json",'{"files":[],"references":[{"path":"./tsconfig.app.json"},{"path":"./tsconfig.node.json"}]} '); zip.file(folder+"tsconfig.app.json",'{ "compilerOptions":{ "target":"ES2020","useDefineForClassFields":true,"module":"ESNext","lib":["ES2020","DOM","DOM.Iterable"], "skipLibCheck":true,"moduleResolution":"bundler","allowImportingTsExtensions":true, "isolatedModules":true,"moduleDetection":"force","noEmit":true,"jsxImportSource":"vue", "strict":true,"paths":{"@/*":["./src/*"]} }, "include":["src/**/*.ts","src/**/*.d.ts","src/**/*.tsx","src/**/*.vue"] } '); zip.file(folder+"env.d.ts","/// "); zip.file(folder+"index.html"," "+slugTitle(pn)+"
"); 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' import { createPinia } from 'pinia' import App from './App.vue' import './assets/main.css' const app = createApp(App) app.use(createPinia()) app.mount('#app') "); var hasApp=Object.keys(extracted).some(function(k){return k.indexOf("App.vue")>=0;}); if(!hasApp) zip.file(folder+"src/App.vue"," "); 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} "); 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)+" Generated by PantheraHive BOS. ## Setup ```bash npm install npm run dev ``` ## Build ```bash npm run build ``` Open in VS Code or WebStorm. "); zip.file(folder+".gitignore","node_modules/ dist/ .env .DS_Store *.local "); } /* --- 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",'{ "name": "'+pn+'", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test" }, "dependencies": { "@angular/animations": "^19.0.0", "@angular/common": "^19.0.0", "@angular/compiler": "^19.0.0", "@angular/core": "^19.0.0", "@angular/forms": "^19.0.0", "@angular/platform-browser": "^19.0.0", "@angular/platform-browser-dynamic": "^19.0.0", "@angular/router": "^19.0.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.15.0" }, "devDependencies": { "@angular-devkit/build-angular": "^19.0.0", "@angular/cli": "^19.0.0", "@angular/compiler-cli": "^19.0.0", "typescript": "~5.6.0" } } '); zip.file(folder+"angular.json",'{ "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "'+pn+'": { "projectType": "application", "root": "", "sourceRoot": "src", "prefix": "app", "architect": { "build": { "builder": "@angular-devkit/build-angular:application", "options": { "outputPath": "dist/'+pn+'", "index": "src/index.html", "browser": "src/main.ts", "tsConfig": "tsconfig.app.json", "styles": ["src/styles.css"], "scripts": [] } }, "serve": {"builder":"@angular-devkit/build-angular:dev-server","configurations":{"production":{"buildTarget":"'+pn+':build:production"},"development":{"buildTarget":"'+pn+':build:development"}},"defaultConfiguration":"development"} } } } } '); zip.file(folder+"tsconfig.json",'{ "compileOnSave": false, "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"]}, "references":[{"path":"./tsconfig.app.json"}] } '); zip.file(folder+"tsconfig.app.json",'{ "extends":"./tsconfig.json", "compilerOptions":{"outDir":"./dist/out-tsc","types":[]}, "files":["src/main.ts"], "include":["src/**/*.d.ts"] } '); zip.file(folder+"src/index.html"," "+slugTitle(pn)+" "); zip.file(folder+"src/main.ts","import { bootstrapApplication } from '@angular/platform-browser'; import { appConfig } from './app/app.config'; import { AppComponent } from './app/app.component'; bootstrapApplication(AppComponent, appConfig) .catch(err => console.error(err)); "); zip.file(folder+"src/styles.css","* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: system-ui, -apple-system, sans-serif; background: #f9fafb; color: #111827; } "); 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'; import { RouterOutlet } from '@angular/router'; @Component({ selector: 'app-root', standalone: true, imports: [RouterOutlet], templateUrl: './app.component.html', styleUrl: './app.component.css' }) export class AppComponent { title = '"+pn+"'; } "); zip.file(folder+"src/app/app.component.html","

"+slugTitle(pn)+"

Built with PantheraHive BOS

"); 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} "); } zip.file(folder+"src/app/app.config.ts","import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core'; import { provideRouter } from '@angular/router'; import { routes } from './app.routes'; export const appConfig: ApplicationConfig = { providers: [ provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes) ] }; "); zip.file(folder+"src/app/app.routes.ts","import { Routes } from '@angular/router'; export const routes: Routes = []; "); 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)+" Generated by PantheraHive BOS. ## Setup ```bash npm install ng serve # or: npm start ``` ## Build ```bash ng build ``` Open in VS Code with Angular Language Service extension. "); zip.file(folder+".gitignore","node_modules/ dist/ .env .DS_Store *.local .angular/ "); } /* --- Python --- */ function buildPython(zip,folder,app,code){ var title=slugTitle(app); var pn=pkgName(app); var src=code.replace(/^```[w]* ?/m,"").replace(/ ?```$/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(" "):"# add dependencies here "; zip.file(folder+"main.py",src||"# "+title+" # Generated by PantheraHive BOS print(title+" loaded") "); zip.file(folder+"requirements.txt",reqsTxt); zip.file(folder+".env.example","# Environment variables "); zip.file(folder+"README.md","# "+title+" Generated by PantheraHive BOS. ## Setup ```bash python3 -m venv .venv source .venv/bin/activate pip install -r requirements.txt ``` ## Run ```bash python main.py ``` "); zip.file(folder+".gitignore",".venv/ __pycache__/ *.pyc .env .DS_Store "); } /* --- Node.js --- */ function buildNode(zip,folder,app,code){ var title=slugTitle(app); var pn=pkgName(app); var src=code.replace(/^```[w]* ?/m,"").replace(/ ?```$/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)+" "; zip.file(folder+"package.json",pkgJson); var fallback="const express=require("express"); const app=express(); app.use(express.json()); app.get("/",(req,res)=>{ res.json({message:""+title+" API"}); }); const PORT=process.env.PORT||3000; app.listen(PORT,()=>console.log("Server on port "+PORT)); "; zip.file(folder+"src/index.js",src||fallback); zip.file(folder+".env.example","PORT=3000 "); zip.file(folder+".gitignore","node_modules/ .env .DS_Store "); zip.file(folder+"README.md","# "+title+" Generated by PantheraHive BOS. ## Setup ```bash npm install ``` ## Run ```bash npm run dev ``` "); } /* --- 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:" "+title+" "+code+" "; zip.file(folder+"index.html",indexHtml); zip.file(folder+"style.css","/* "+title+" — styles */ *{margin:0;padding:0;box-sizing:border-box} body{font-family:system-ui,-apple-system,sans-serif;background:#fff;color:#1a1a2e} "); zip.file(folder+"script.js","/* "+title+" — scripts */ "); zip.file(folder+"assets/.gitkeep",""); zip.file(folder+"README.md","# "+title+" Generated by PantheraHive BOS. ## Open Double-click `index.html` in your browser. Or serve locally: ```bash npx serve . # or python3 -m http.server 3000 ``` "); zip.file(folder+".gitignore",".DS_Store node_modules/ .env "); } /* ===== 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(/ {2,}/g,"

"); h+="

"+hc+"

Generated by PantheraHive BOS
"; zip.file(folder+app+".html",h); zip.file(folder+"README.md","# "+title+" Generated by PantheraHive BOS. Files: - "+app+".md (Markdown) - "+app+".html (styled HTML) "); } 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);}});}