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

This document provides a comprehensive analysis of your target audience, a critical first step in developing an effective influencer marketing campaign. Understanding your audience deeply allows for precise influencer selection, compelling content creation, and maximized ROI.


1. Introduction: The Importance of Audience-Centric Planning

An influencer campaign's success hinges on its ability to resonate with the target audience. This analysis aims to paint a detailed picture of your potential customers, identifying their demographics, psychographics, online behaviors, and influencer affinities. By knowing who you're trying to reach, where they spend their time, and what influences their decisions, we can strategically select influencers and craft messages that genuinely connect.


2. Target Audience Demographics

Understanding the fundamental characteristics of your audience provides the bedrock for initial targeting.

  • Age Range:

* Primary Target: [e.g., 25-40 years old]

* Secondary Target: [e.g., 18-24 years old / 41-55 years old]

Insight:* Different age groups exhibit distinct content consumption habits and platform preferences. For instance, Gen Z might favor TikTok and short-form video, while Millennials might prefer Instagram and YouTube.

  • Gender Split:

* Primary: [e.g., 60% Female, 40% Male / Gender-Neutral]

Insight:* Gender distribution influences the type of influencers, product focus, and visual aesthetics of content.

  • Geographic Location:

* Primary Regions/Countries: [e.g., USA (major metropolitan areas), Canada, UK]

* Specific Cities/States (if applicable): [e.g., New York, Los Angeles, London]

Insight:* Localized campaigns or regionally relevant influencers can drive higher engagement and conversion. Consider cultural nuances and language.

  • Income Level:

* Average Household Income: [e.g., Mid to High Income ($75,000+ annually)]

Insight:* Directly impacts purchasing power and willingness to invest in certain products/services. Helps in positioning your offering and selecting influencers whose audience aligns with this income bracket.

  • Education Level:

* Predominant Education: [e.g., Bachelor's Degree or Higher]

Insight:* Can indicate intellectual curiosity, information-seeking behavior, and preferred communication styles (e.g., data-driven versus emotional appeal).

  • Occupation/Profession:

* Common Professions: [e.g., Young Professionals, Tech Workers, Creative Industries, Small Business Owners]

Insight:* Understanding their professional lives can reveal pain points, aspirations, and the types of solutions they seek.


3. Target Audience Psychographics

Delving into psychographics reveals the "why" behind your audience's behavior, crucial for crafting emotionally resonant content.

  • Interests & Hobbies:

* [e.g., Health & Wellness, Sustainable Living, Technology, Fashion, Travel, Gaming, Home Decor, Personal Development]

Insight:* These interests are key in identifying niche influencers and content themes that naturally align with your brand.

  • Values & Beliefs:

* [e.g., Authenticity, Community, Innovation, Environmental Responsibility, Social Justice, Convenience, Quality, Value for Money]

Insight:* Partner with influencers whose personal brand values align with your company's. This ensures genuine endorsement and avoids potential backlash.

  • Lifestyle:

* [e.g., Active & Outdoorsy, Tech-Savvy Urbanites, Busy Parents, Budget-Conscious Students, Digital Nomads]

Insight:* Helps in envisioning how your product/service fits into their daily lives and what kind of scenarios to showcase in influencer content.

  • Pain Points & Challenges:

* [e.g., Lack of Time, Information Overload, Desire for Simplicity, Difficulty Finding Reliable Solutions, Financial Stress, Health Concerns]

Insight:* Influencer content should subtly position your offering as a solution to these pain points, addressing them directly or indirectly.

  • Aspirations & Goals:

* [e.g., Career Advancement, Personal Growth, Financial Freedom, Better Health, Stronger Relationships, Creative Expression]

Insight:* Connect your brand to their aspirations. Influencers can demonstrate how your product helps them achieve their goals.

  • Motivations for Purchase:

* [e.g., Problem-solving, Status, Convenience, Self-Improvement, Entertainment, Belonging, Escape, Value/Savings]

Insight:* Understanding primary motivations allows influencers to tailor their messaging to trigger the desired response.


4. Behavioral Data & Digital Footprint

Analyzing how your audience interacts online is vital for platform selection and content strategy.

  • Preferred Social Media Platforms:

* Primary: [e.g., Instagram (Stories, Reels), TikTok, YouTube, Pinterest]

* Secondary: [e.g., Facebook Groups, LinkedIn, X (Twitter)]

Insight:* Influencer campaigns must be executed on platforms where the target audience is most active and receptive to marketing messages.

  • Content Consumption Habits:

* Preferred Formats: [e.g., Short-form video (Reels, TikToks), Long-form video (YouTube tutorials/reviews), Instagram carousels, Blog posts, Podcasts, Live streams]

* Frequency: [e.g., Daily casual browsing, Specific times for deep dives]

Insight:* Dictates the type of content influencers should create (e.g., unboxing videos, how-to guides, aesthetic flat lays, personal stories).

  • Online Purchasing Behavior:

* Frequency of Online Shopping: [e.g., Weekly, Monthly, Seasonally]

* Average Order Value: [e.g., $50-$100]

* Decision-Making Process: [e.g., Research-intensive, Impulse buys, Peer recommendations]

Insight:* Helps in structuring calls-to-action (CTAs) and understanding the sales funnel for influencer-driven conversions.

  • Trusted Information Sources:

* [e.g., Industry experts, Review sites, Peer recommendations, Reputable news outlets, Specific online communities]

Insight:* Highlights the importance of authentic reviews and endorsements from trusted voices.

  • Brand Loyalty & Affinity:

* [e.g., High loyalty to brands aligning with personal values, Open to trying new products, Price-sensitive]

Insight:* Influencers can help build trust and overcome skepticism, especially for new or emerging brands.


5. Influencer Affinity & Trust Factors

This section focuses on how your audience perceives and interacts with influencers.

  • Types of Influencers They Follow:

* [e.g., Micro-influencers (10k-100k followers) for niche expertise and authenticity, Macro-influencers (100k-1M) for broader reach, Celebrity influencers for aspirational appeal]

Insight:* Different influencer tiers offer varying benefits (e.g., higher engagement vs. wider reach).

  • Key Trust Factors in Influencers:

* Authenticity: [e.g., Genuine passion for the product, Unscripted content, Relatability]

* Expertise/Knowledge: [e.g., Deep understanding of the niche, Credible recommendations]

* Transparency: [e.g., Clear disclosure of sponsored content, Honest reviews]

* Relatability: [e.g., Sharing similar life experiences, Down-to-earth personality]

Insight:* Influencer vetting must prioritize these factors to ensure the partnership resonates positively with the audience.

  • Response to Sponsored Content:

* [e.g., Generally positive if authentic and relevant, Skeptical if overtly promotional, Appreciates educational/value-driven sponsored content]

Insight:* Content guidelines must emphasize native integration and value delivery over hard selling.


6. Data Sources & Methodologies

The insights above are typically derived from a combination of the following:

  • Existing Customer Data: CRM data, purchase history, website analytics.
  • Social Media Analytics: Insights from your own social channels and competitor analysis.
  • Market Research Reports: Industry-specific and general consumer behavior studies.
  • Surveys & Interviews: Direct feedback from current or potential customers.
  • Social Listening Tools: Monitoring conversations, trends, and sentiment around relevant keywords and topics.
  • Competitor Analysis: Observing the audience engagement of successful competitors' influencer campaigns.

7. Key Insights & Trends for Influencer Targeting

Based on the typical characteristics of a digitally engaged audience:

  • Authenticity Reigns Supreme: Audiences are increasingly wary of inauthentic, overly polished content. Genuine enthusiasm and transparent disclosure are non-negotiable.
  • Niche & Micro-Influencer Power: For specific products/services, micro and nano-influencers often deliver higher engagement rates and build stronger community trust due to their niche focus and perceived relatability.
  • Video-First Content Strategy: Short-form video (Reels, TikTok) and engaging long-form video (YouTube) continue to dominate attention spans.
  • Value-Driven Content: Audiences seek content that educates, entertains, or inspires, not just advertises. Influencers must provide value beyond a product pitch.
  • Community Engagement: Audiences appreciate influencers who interact with their followers, fostering a sense of community around shared interests.
  • Ethical & Sustainable Alignment: A growing segment of the audience prioritizes brands and influencers who demonstrate commitment to ethical practices and sustainability.

8. Recommendations for Influencer Profile & Content Direction

Based on this comprehensive audience analysis, here are initial recommendations for ideal influencer profiles and content themes:

  • Influencer Profile:

* Tier: Prioritize a mix of micro-influencers (10k-100k followers) for high engagement and niche authority, supplemented by select macro-influencers (100k-500k) for broader reach and brand awareness.

* Demographics: Influencers should generally reflect the primary target demographic (age, gender, location where applicable) to enhance relatability.

* Psychographics: Seek influencers whose personal brand values align with [e.g., authenticity, sustainability, innovation, wellness]. They should genuinely embody the lifestyle or interests of your target audience.

* Engagement: Prioritize influencers with consistently high engagement rates (comments, shares, saves) over follower count alone.

* Authenticity Score: Look for influencers known for genuine reviews, transparent communication, and a strong, engaged community.

  • Content Direction & Themes:

* Problem/Solution Focus: Content should subtly address audience pain points and position your product/service as the ideal solution.

* "Day in the Life" Integration: Showcase how the product seamlessly fits into the influencer's (and thus the audience's) daily routine.

* Educational/Informative: Provide valuable insights, tips, or demonstrations that go beyond a simple product showcase.

* Aspirational but Achievable: Inspire the audience by showing how the product contributes to their goals and aspirations in a relatable manner.

* User-Generated Content (UGC) Style: Encourage content that feels organic and less produced, mirroring authentic user experiences.

* Interactive Formats: Utilize polls, Q&As, live sessions, and challenges to foster engagement.


9. Next Steps for Campaign Planning

This audience analysis provides the foundational intelligence for the subsequent steps of your influencer campaign.

  • Step 2: Influencer Identification & Vetting:

* Develop a detailed influencer persona based on the recommendations above.

* Begin searching for influencers across target platforms using keywords, audience demographics, and engagement metrics.

* Perform thorough vetting to ensure brand safety, audience authenticity, and alignment with values.

  • Step 3: Content Strategy & Campaign Structure:

* Develop specific campaign objectives (e.g., brand awareness, lead generation, sales).

* Outline key messaging pillars and calls-to-action based on audience motivations.

* Draft initial content concepts and formats (e.g., unboxing, tutorial, testimonial, lifestyle integration) tailored to audience preferences.

* Define campaign timeline, budget allocation, and desired metrics.


gemini Output

Influencer Campaign Planner: Your Blueprint for Marketing Success

Welcome to your comprehensive Influencer Campaign Planner! This document outlines a strategic, step-by-step approach to launching a highly effective influencer marketing campaign. From identifying the perfect partners to measuring tangible ROI, we've meticulously crafted this plan to ensure your brand achieves maximum impact and engagement.


1. Campaign Overview: Elevating Your Brand Through Authentic Voices

Headline: Unlock Unprecedented Reach: Partnering with Influencers to Amplify Your Message

Body Text:

In today's dynamic digital landscape, authentic voices resonate louder than ever. Our influencer marketing campaign is designed to forge genuine connections between your brand and your target audience, leveraging the trusted relationships influencers have cultivated with their communities. This campaign aims to not only boost brand awareness and engagement but also drive measurable conversions by integrating your brand seamlessly into compelling, relatable content.

Campaign Objectives:

  • Increase Brand Awareness: Expand reach to new, relevant audiences.
  • Boost Engagement: Drive higher interaction rates (likes, comments, shares, saves) on campaign content.
  • Generate Leads/Sales: Direct traffic to product pages, sign-up forms, or retail locations.
  • Enhance Brand Credibility & Trust: Leverage influencer authenticity to build consumer confidence.
  • Create User-Generated Content (UGC) Potential: Inspire organic content creation from followers.

Target Audience: [Specify your target audience, e.g., "Millennial and Gen Z consumers interested in sustainable fashion," "Small business owners seeking productivity tools," "Fitness enthusiasts aged 25-45 looking for premium supplements."]

Campaign Duration: [e.g., "6 weeks (4 weeks content creation/distribution, 2 weeks post-campaign analysis)"]


2. Ideal Influencer Profiles: Finding Your Perfect Brand Advocates

Headline: Discover Your Match: Crafting Profiles for Impactful Partnerships

Body Text:

Selecting the right influencers is paramount to campaign success. We're looking for genuine advocates whose audience demographics and psychographics align perfectly with your brand's target market. Beyond follower count, we prioritize engagement rates, content quality, authenticity, and a track record of successful collaborations.

Key Characteristics of Ideal Influencers:

  • Niche Relevance: Their content and audience must align directly with [Your Brand/Product Category].

Example:* For a sustainable beauty brand, influencers focused on clean beauty, eco-friendly living, or ethical consumption.

  • Authenticity & Trust: A genuine connection with their audience, demonstrated by active comments, replies, and consistent voice.
  • High Engagement Rate: Prioritize influencers with engagement rates typically between 2-8% (depending on platform and follower count), indicating an active and responsive community.
  • Audience Demographics Match: A significant portion of their audience (e.g., >60%) should match your target age, gender, location, and interests.
  • Content Quality & Aesthetic: Professional, high-quality visuals and compelling storytelling that aligns with your brand's aesthetic standards.
  • Brand Safety & Values Alignment: No history of controversial content or association with brands/messages that conflict with your brand's values.
  • Platform Specificity: Proven success on the primary platforms for this campaign (e.g., Instagram, TikTok, YouTube, Pinterest, Blogs).

Influencer Tiers & Examples (Customize as needed):

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

Pros:* Highest engagement rates, deep community trust, cost-effective.

Focus:* Hyper-targeted niche reach, authentic testimonials, product reviews.

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

Pros:* Strong engagement, growing reach, more professional content, still relatively cost-effective.

Focus:* Product demonstrations, lifestyle integration, unboxing experiences.

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

Pros:* Significant reach, professional content production, established presence.

Focus:* Broader awareness campaigns, aspirational content, brand ambassadorships.

  • Macro-Influencers (500K+ followers):

Pros:* Massive reach, widespread brand awareness, celebrity-like status.

Focus:* Major product launches, large-scale campaigns, brand endorsement.

Selection Process:

  1. Initial Discovery: Utilize influencer marketing platforms (e.g., Upfluence, Grin, AspireIQ) and manual research (hashtag searches, competitor analysis).
  2. Vetting & Analysis: Deep dive into profiles, checking audience demographics, engagement rates, past collaborations, and content quality.
  3. Shortlisting: Create a curated list of top candidates for outreach.

3. Outreach Templates: Crafting Your First Impression

Headline: Make a Connection: Engaging Influencers with Professional Outreach

Body Text:

A compelling and personalized outreach message is crucial for securing partnerships with top-tier influencers. Our templates are designed to be clear, concise, and persuasive, highlighting mutual benefits and expressing genuine admiration for their work.

General Outreach Best Practices:

  • Personalize Everything: Always use their name and reference specific content they've created.
  • Be Clear & Concise: Get straight to the point but provide enough context.
  • Highlight Mutual Benefit: Explain what's in it for them (compensation, free product, exposure, alignment with their audience).
  • Provide Next Steps: Clearly state what you'd like them to do (e.g., schedule a call, reply with interest).
  • Professional Tone: Maintain a respectful and enthusiastic voice.

Template 1: Initial Cold Outreach (Email/DM)

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

Body:

Hi [Influencer's Name],

My name is [Your Name] and I'm the [Your Title] at [Your Brand Name]. I'm a huge admirer of your work, particularly your recent [specific piece of content, e.g., "review of the eco-friendly home products" or "tutorial on sustainable fashion styling"]. Your authentic voice and engaged community truly stand out.

At [Your Brand Name], we're passionate about [briefly describe your brand's mission/product, e.g., "creating innovative, sustainable skincare solutions" or "empowering small businesses with intuitive marketing tools"]. We're currently planning an exciting campaign focused on [Campaign Theme/Goal, e.g., "promoting conscious consumption" or "showcasing effortless productivity"].

Given your alignment with [mention their niche/values, e.g., "sustainable living" or "tech-savvy solutions"], we believe your unique perspective would resonate incredibly well with our audience, and vice-versa. We'd love to explore a potential partnership where you could [briefly mention content idea, e.g., "showcase our new product line" or "share your experience using our service"].

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

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 with [Your Brand Name] - [Campaign Theme]

Body:

Hi [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 upcoming [Campaign Theme] campaign.

I understand you're incredibly busy, but I genuinely believe this partnership could be a fantastic fit, offering [mention key benefits, e.g., "an exciting opportunity to explore sustainable beauty products" or "a chance to introduce your audience to a valuable new tool"].

If you're interested in learning more, please let me know. I'm happy to answer any questions you might have or schedule that quick call to dive deeper into the specifics.

Thanks again for your time and consideration!

Best,

[Your Name]

[Your Brand Name]


4. Contract Terms: Ensuring Clear & Fair Partnerships

Headline: Building Trust: Comprehensive Contract Terms for Successful Collaborations

Body Text:

A clear, comprehensive contract is the foundation of any successful influencer partnership. It protects both parties, outlines expectations, and ensures a smooth execution of the campaign. Below are the key terms that will be included in our influencer agreements.

Key Contractual Elements:

  • Scope of Work (SOW):

* Specific deliverables (e.g., 1 Instagram feed post, 3 Instagram Stories, 1 TikTok video, 1 YouTube integration).

* Content themes and key messaging points.

* Call-to-action (CTA) requirements (e.g., "Link in bio," "Use code [DISCOUNT CODE]").

* Required hashtags and tags.

* Submission deadlines for drafts and final posts.

* Live dates for content.

  • Compensation:

* Agreed-upon fee (flat fee, per deliverable, commission-based).

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

* Inclusion of gifted products/services as part of compensation.

  • Content Ownership & Usage Rights:

* Brand Rights: Granting the brand rights to repost, share, and potentially repurpose the content for specified periods (e.g., 6-12 months) across brand-owned channels (website, social media ads, email marketing).

* Influencer Rights: Influencer retains primary ownership but grants specific usage rights to the brand.

* Paid Media Rights: Explicitly state if the brand has rights to run paid ads using the influencer's content and for how long.

  • Exclusivity Clause:

* Specify a period (e.g., 30-60 days) during which the influencer cannot promote competing brands within the same product category.

* Define the scope of "competing brands."

  • Disclosure Requirements:

* Mandatory use of FTC/ASA compliant disclosures (e.g., #ad, #sponsored, #partner) visibly placed in all content.

* Agreement to follow platform-specific disclosure tools (e.g., Instagram's "Paid partnership with").

  • Approval Process:

* Outline the brand's right to review and request revisions on all content drafts before publishing.

* Specify turnaround times for approvals.

  • Performance Tracking:

* Agreement to provide campaign analytics (e.g., reach, impressions, engagement, link clicks) within a specified timeframe after content goes live.

  • Termination Clause:

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

  • Confidentiality:

* Agreement to keep all campaign details, strategies, and unreleased product information confidential.

  • Governing Law:

* Specify the jurisdiction whose laws will govern the contract.


5. Content Guidelines: Crafting Engaging & On-Brand Stories

Headline: Your Story, Our Vision: Guidelines for Authentic & Impactful Content

Body Text:

While we value creative freedom, these guidelines ensure that all influencer content aligns with your brand's messaging, aesthetic, and campaign objectives. Our goal is to empower influencers to create authentic content that resonates with their audience while effectively showcasing your brand.

Core Content Principles:

  • Authenticity First: Encourage genuine reactions and personal anecdotes.
  • Value-Driven: Content should offer value to the audience (entertainment, education, inspiration).
  • Seamless Integration: Your brand should feel like a natural part of their lifestyle, not an overt advertisement.
  • Clear Call-to-Action: Guide the audience on what to do next.

Specific Guidelines:

  • Key Messaging & Talking Points:

Primary Message:* [e.g., "Experience the effortless glow of our new moisturizer."]

Secondary Messages:* [e.g., "Cruelty-free and vegan," "Made with sustainably sourced ingredients," "Perfect for all skin types."]

Key Features/Benefits to Highlight:* [e.g., "Hydrates for 24 hours," "Reduces fine lines," "Lightweight feel."]

Brand Voice:* [e.g., "Empathetic, inspiring, knowledgeable" or "Playful, innovative, approachable."]

  • Visual Aesthetic:

* Color Palette: [e.g., "Bright and airy," "Earthy tones," "Bold and vibrant."]

* Lighting: [e.g., "Natural light preferred," "Well-lit and professional."]

* Mood/Tone: [e.g., "Joyful and aspirational," "Relaxed and authentic," "Energetic and dynamic."]

* Product Placement: [e.g., "Clearly visible but naturally integrated," "Show product in use."]

  • Platform-Specific Requirements:

* Instagram Feed Post: High-resolution image/carousel, engaging caption (min 3 sentences), 3-5 relevant hashtags, @[YourBrandHandle] tag.

* Instagram Stories: 3-5 frames, swipe-up link (if applicable), poll/quiz sticker interaction, @[YourBrandHandle] tag.

* TikTok Video: 15-60 seconds, trending audio (if appropriate), engaging hook, text overlays, @[YourBrandHandle] tag, relevant hashtags.

* YouTube Video: 2-5 minute dedicated segment or integration, product shown/demonstrated, link to product in description box, verbal mention of brand.

  • Call-to-Action (CTA):

* Primary CTA: [e.g., "Shop now via the link in my bio!"]

* Secondary CTA: [e.g., "Use code [INFLUENCERNAME] for 15% off your first order!"]

* Engagement CTA: [e.g., "Tell me in the comments, what's your favorite way to [relate to product]?"]

  • Prohibited Content:

* Misleading claims about the product.

* Negative portrayal of competitors.

* Content that is offensive, discriminatory, or goes against brand values.

* Use of copyrighted music without proper licensing (unless platform-provided).


6. ROI Tracking Framework: Measuring Your Campaign's Success

Headline: Beyond Likes: A Robust Framework for Measuring True Campaign ROI

Body Text:

Measuring the return on investment for influencer marketing is critical to understanding campaign effectiveness and optimizing future strategies. Our comprehensive ROI tracking framework goes beyond vanity metrics, focusing on tangible results that align with your business objectives.

Key Performance Indicators (KPIs) & Metrics:

  • Awareness Metrics:

* Reach: Total unique users who saw the content.

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

* Brand Mentions: Number of times your brand was tagged or mentioned.

* Website Traffic: Traffic driven directly from influencer links (tracked via UTM parameters).

  • Engagement Metrics:

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

* Comments: Quality and quantity of audience feedback.

* Shares/Saves: Indicating audience intent to share or revisit content.

* Story Interactions: Polls, quizzes, swipe-ups.

  • Conversion Metrics:

* Link Clicks: Number of clicks on unique influencer links (via UTMs).

* Sales/Leads Generated: Direct sales or leads attributed to influencer codes/links.

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

Return on Ad Spend (ROAS): (Revenue from influencer campaign / Campaign Cost) 100.

Conversion Rate: (Conversions / Link Clicks) 100.

  • Sentiment & Brand Perception:

* Qualitative Analysis: Monitoring comments and messages for overall sentiment towards the brand.

* Brand Lift Surveys: (For larger campaigns) Measuring changes in brand perception, recall, and purchase intent.

Tracking Tools & Methodology:

  1. Unique UTM Parameters: Each influencer will receive unique UTM parameters for all links, allowing precise tracking of website traffic, conversions, and revenue sources in Google Analytics or other analytics platforms.
  2. Discount Codes: Unique discount codes for each influencer will directly track sales conversions and attribute them accurately.
  3. Influencer Platform Analytics: Requesting screenshots or reports from influencers'
gemini Output

This document outlines a comprehensive plan for executing a successful influencer marketing campaign. It covers all critical aspects from identifying the right partners to measuring the campaign's impact, ensuring a professional and strategic approach to achieving your marketing objectives.


Influencer Campaign Planner: Optimized & Finalized Deliverable

This finalized plan provides a detailed framework for your influencer marketing campaign, encompassing strategy, execution, and measurement.

1. Campaign Overview & Objectives

Campaign Title: [Your Campaign Title, e.g., "Summer Glow Up with [Your Brand]"]

Campaign Period: [Start Date] – [End Date] (e.g., July 1st – August 31st, 2024)

Core Objective:

  • Primary: [e.g., Increase brand awareness by 20% among Gen Z women in urban areas]
  • Secondary: [e.g., Drive 15% increase in website traffic to product pages; Generate 500 new leads/sales for product X]

Target Audience:

  • Demographics: [e.g., Women, 18-34, urban/suburban, interested in beauty, wellness, sustainable living]
  • Psychographics: [e.g., Early adopters, value authenticity, socially conscious, health-aware]

Key Message:

  • [e.g., "Experience the transformative power of [Product X] – natural beauty, sustainable impact."]
  • [e.g., "Unlock your potential with [Service Y] – designed for modern professionals."]

2. Ideal Influencer Profiles

Identifying the right influencers is crucial for campaign success. We will prioritize authenticity, engagement, and alignment with your brand values.

Influencer Tiers & Focus:

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

* Focus: Hyper-niche communities, high trust, authentic engagement, grassroots reach.

* Engagement Rate Target: 5-10%+

* Content Style: Relatable, user-generated feel, organic integration.

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

* Focus: Strong community bonds, niche authority, scalable reach with good ROI.

* Engagement Rate Target: 3-8%

* Content Style: Educational, tutorial-based, personal testimonials, aesthetically pleasing.

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

* Focus: Broader reach, established content creators, professional content quality.

* Engagement Rate Target: 2-5%

* Content Style: Polished, editorial, aspirational, often incorporating storytelling.

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

* Focus: Significant brand awareness, mass reach, credibility, PR value.

* Engagement Rate Target: 1-3%

* Content Style: High production value, trendsetting, celebrity endorsement feel.

Key Characteristics for Selection:

  • Niche Alignment: Directly relevant to your product/service category (e.g., sustainable beauty, tech reviews, healthy cooking, fitness).
  • Audience Demographics: Influencer's audience must closely match your target audience (age, gender, location, interests).
  • Authenticity & Trust: Genuine connection with their audience, transparent about partnerships.
  • Engagement Rate: Consistently high engagement (likes, comments, shares) relative to follower count.
  • Brand Safety & Alignment: Positive brand image, no history of controversial content, values align with your brand.
  • Content Quality: High-quality visuals, clear audio, compelling storytelling, consistent aesthetic.
  • Previous Collaborations: Experience with brand partnerships, but not oversaturated with sponsored content.
  • Red Flags to Avoid: Suspicious follower growth, low engagement despite high follower count, high percentage of bot/fake followers, negative brand sentiment.

3. Influencer Outreach Strategy & Templates

A personalized and professional outreach approach is vital for securing top talent.

Outreach Strategy:

  1. Research & Vetting: Thoroughly review influencer profiles, content, and audience insights.
  2. Personalization: Tailor each message to show genuine appreciation for their specific content and align it with your brand's vision.
  3. Clear Value Proposition: Clearly state what the influencer stands to gain (e.g., compensation, free product, exposure, long-term partnership).
  4. Concise & Engaging: Get to the point quickly while maintaining a friendly and professional tone.
  5. Multi-Channel Approach: Use email primarily, but consider Instagram DMs for initial contact if email isn't readily available.
  6. Follow-Up Plan: Implement a strategic follow-up schedule (e.g., 3-5 days after initial contact).

Outreach Email Templates:

Template 1: Initial Outreach (Cold/Warm Lead)

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

Hi [Influencer's Name],

My name is [Your Name] and I'm the [Your Title] at [Your Brand]. I've been following your content on [Platform, e.g., Instagram/TikTok] for a while now, and I'm consistently impressed by your [specific compliment, e.g., authentic voice, creative storytelling, visually stunning photography]. Your recent [specific post/reel] about [topic] particularly resonated with us.

We're launching an exciting campaign called "[Campaign Title]" focused on [briefly explain campaign theme/goal, e.g., celebrating natural beauty through sustainable products], and we immediately thought of you as an ideal partner. Your audience's interest in [shared interest, e.g., eco-friendly living/innovative tech] aligns perfectly with our mission to [Your Brand's Mission].

We're looking for creators to [briefly describe deliverables, e.g., create engaging content showcasing our new product line]. We offer [mention compensation type, e.g., competitive compensation, free products, affiliate commission, long-term partnership opportunities].

Would you be open to a brief chat next week to discuss this potential collaboration further and see if it's a good fit? Please let me know your availability or if you'd prefer to receive a detailed brief first.

Thank you for your time and consideration!

Best regards,

[Your Name]

[Your Title]

[Your Brand]

[Your Website]

[Your Social Media Link]


Template 2: Follow-Up Email

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

Hi [Influencer's Name],

Just wanted to gently follow up on my email from [Date of previous email] regarding a potential collaboration for our "[Campaign Title]" campaign.

We truly believe your unique style and engaged community would be a fantastic match for [Your Brand], and we're excited about the possibility of working together to [reiterate campaign goal].

If you've had a chance to review, I'd love to hear your thoughts. If not, no worries at all – please let me know if you'd prefer to receive a more detailed brief or if there's a better time to connect.

Looking forward to hearing from you!

Best regards,

[Your Name]

[Your Title]

[Your Brand]


4. Influencer Contract Terms (Key Clauses)

A clear, legally sound contract is essential to protect both parties and ensure campaign expectations are met.

Key Contract Clauses:

  1. Scope of Work (SOW):

* Deliverables: Specific content types (e.g., 1 Instagram Feed Post, 2 Instagram Stories, 1 TikTok video, 1 Blog Post).

* Platforms: Specify where content will be published.

* Posting Schedule: Exact dates or date ranges for content publication.

* Key Messaging: Core messages to be conveyed.

* Product/Service: Details of the product/service to be featured.

  1. Compensation & Payment Terms:

* Fee Structure: Flat fee per deliverable, hourly rate, commission-based, product-only.

* Amount: Clearly state the agreed-upon compensation.

* Payment Schedule: [e.g., 50% upfront, 50% upon completion; Net 30 days after invoice and content approval].

* Payment Method: [e.g., Bank transfer, PayPal].

  1. Content Rights & Usage:

* Brand's Usage Rights: Specify how the brand can reuse/repurpose the content (e.g., on brand social channels, website, paid ads, print media).

* Term of Usage: Duration for which the brand can use the content (e.g., 1 year, perpetual).

* Exclusivity: Whether the influencer grants exclusive rights to the brand for certain content.

* Licensing: If content is to be licensed, outline terms and additional compensation.

  1. Disclosure Requirements:

* Compliance: Strict adherence to FTC guidelines (US), ASA (UK), or local regulatory bodies.

* Mandatory Language: Specific hashtags (e.g., #ad, #sponsored, #BrandPartner), verbal disclosures (e.g., "This video is sponsored by...").

* Placement: Where disclosures must appear (e.g., beginning of caption, first spoken words in video).

  1. Content Approval Process:

* Submission: Influencer to submit drafts/previews of all content for approval.

* Review Period: Brand's timeframe for review and feedback (e.g., 48-72 hours).

* Revisions: Number of revisions permitted (e.g., 1-2 rounds).

* Final Approval: Content cannot go live without explicit written approval from the brand.

  1. Exclusivity:

* Competitor Restrictions: Prohibit influencer from working with direct competitors for a specified period (e.g., 30-60 days before, during, and after the campaign).

* Product Category Exclusivity: May extend to similar product categories.

  1. Term & Termination:

* Campaign Duration: Start and end dates of the agreement.

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

* Consequences of Termination: Payment adjustments, content removal.

  1. Confidentiality:

* Non-Disclosure: Influencer agrees not to disclose proprietary campaign details, product information, or compensation terms.

  1. Representations & Warranties:

* Influencer confirms they own the rights to the content, it's original, and complies with all laws.

  1. Governing Law & Dispute Resolution:

* Specifies the jurisdiction whose laws will govern the contract and how disputes will be resolved.


5. Content Guidelines & Creative Brief

A detailed creative brief ensures consistent messaging and brand alignment while allowing influencers creative freedom.

Campaign Objective Reminder: [e.g., Drive brand awareness and product trials for the new 'Radiance Serum']

Key Messaging & Brand Voice:

  • Core Message: [e.g., "Achieve a natural, healthy glow with our ethically sourced, vegan Radiance Serum."]
  • Brand Voice: [e.g., Empowering, authentic, knowledgeable, friendly, aspirational, sustainable].
  • Tone: [e.g., Enthusiastic, informative, relatable].

Product/Service Highlights:

  • Product Name: [e.g., Radiance Serum]
  • Key Features: [e.g., 100% natural ingredients, Vitamin C enriched, reduces fine lines, cruelty-free, recyclable packaging].
  • Benefits: [e.g., Brighter skin, improved texture, youthful appearance, supports ethical consumption].
  • Unique Selling Proposition (USP): [e.g., "The only serum on the market with a proprietary blend of 5 super-antioxidants."]

Mandatory Elements:

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