AI Sales Script Generator
Run ID: 69cb3cae61b1021a29a872c22026-03-31Business
PantheraHive BOS
BOS Dashboard

Generate conversion-optimized sales scripts for cold calls, demos, follow-ups, and objection handling with industry-specific language.

Marketing Strategy for AI Sales Script Generator

This document outlines a comprehensive marketing strategy for the "AI Sales Script Generator," designed to drive awareness, adoption, and conversions. It includes a detailed target audience analysis, recommended marketing channels, a robust messaging framework, and key performance indicators (KPIs) to measure success.


1. Target Audience Analysis

Understanding our prospective users is critical for tailoring effective marketing efforts. We will focus on decision-makers and influencers within sales organizations who seek efficiency, consistency, and improved performance.

1.1 Primary Target Audience:

  • Role: Sales Managers, Sales Directors, VP of Sales, Heads of Business Development, SDR/BDR Managers.
  • Company Size: Small to Medium-sized Businesses (SMBs) and Mid-Market companies (50-1000 employees) that have dedicated sales teams.
  • Industry Focus:

* SaaS & Tech: Companies with complex products/services requiring detailed explanations and objection handling.

* B2B Services: Consulting, marketing agencies, recruitment firms, professional services.

* Financial Services: Insurance, wealth management, lending.

* Healthcare Technology: MedTech, health IT solutions.

  • Demographics: Typically 30-55 years old, tech-savvy, often with a background in sales or business development.
  • Psychographics & Pain Points:

* Inefficiency: Sales reps spending too much time crafting scripts or improvising poorly.

* Inconsistency: Varied messaging quality across the sales team, leading to unpredictable results.

* Low Conversion Rates: Struggling to optimize cold calls, demos, or follow-ups.

* Onboarding Challenges: New reps taking too long to become proficient due to lack of structured scripts.

* Objection Handling: Difficulty in consistently and effectively addressing common customer objections.

* Scalability Issues: Challenges in standardizing best practices across a growing sales team.

* Desire for Data-Driven Sales: Seeking tools to improve sales effectiveness based on proven methods.

  • Needs:

* Time-saving solutions for script generation.

* Tools to ensure consistent, high-quality messaging.

* Scripts optimized for higher conversion rates.

* Industry-specific language and best practices.

* Easy-to-implement solutions for sales enablement.

1.2 Secondary Target Audience:

  • Role: Individual Sales Representatives, Account Executives, Business Owners (for very small teams).
  • Company Size: Small businesses (1-49 employees) where owners wear multiple hats, or individual reps looking for personal performance improvement.
  • Industry Focus: Similar to primary, but also including real estate, e-commerce (for B2B outreach), and specialized consulting.
  • Psychographics & Pain Points:

* Personal Performance: Desire to improve their own sales results and hit targets.

* Lack of Resources: Limited access to professional sales enablement tools.

* Confidence Issues: Feeling unprepared for calls or demos.

* Time Constraints: Needing quick access to effective scripts.

  • Needs:

* Ready-to-use, effective scripts for various scenarios.

* Guidance on handling objections.

* Tools to boost personal productivity and confidence.


2. Channel Recommendations

A multi-channel approach will be employed to reach our diverse target audience effectively, focusing on channels where sales professionals seek solutions and insights.

2.1 Content Marketing:

  • Strategy: Position the AI Sales Script Generator as a thought leader and problem-solver.
  • Channels:

* Blog/Resource Hub: Publish articles on "Optimizing Cold Call Openers," "Mastering Demo Presentations," "Effective Follow-Up Strategies," "AI in Sales Enablement," "Handling [Specific] Objections."

* Whitepapers/E-books: In-depth guides like "The Definitive Guide to Conversion-Optimized Sales Scripts" or "Leveraging AI for Predictable Sales Outcomes."

* Case Studies: Showcase success stories from early adopters, highlighting ROI (e.g., "How Company X Increased Cold Call Conversions by 20%").

* Webinars/Workshops: Host live sessions on "Scripting for Success: A Practical Guide" or "AI-Powered Sales Coaching."

* Infographics/Short Videos: Visually explain the benefits and ease of use of the generator.

2.2 Search Engine Optimization (SEO) & Search Engine Marketing (SEM):

  • Strategy: Capture intent-driven traffic from sales professionals actively searching for solutions.
  • Channels:

* SEO: Optimize website and content for keywords like "sales script generator," "cold call script AI," "demo script template," "objection handling AI," "sales enablement tools," "B2B sales scripts."

* Google Ads (SEM): Run targeted campaigns for high-intent keywords. Focus on long-tail keywords to capture specific needs.

* Bing Ads: Don't overlook Bing, especially for B2B audiences.

2.3 Social Media Marketing:

  • Strategy: Engage with sales professionals where they network and seek industry insights.
  • Channels:

* LinkedIn (Primary):

* Share blog posts, whitepapers, and success stories.

* Participate in relevant sales and marketing groups.

* Run targeted LinkedIn Ads based on job title, industry, and company size.

* Engage with sales influencers and thought leaders.

* Twitter: Share quick tips, industry news, and link to longer-form content. Engage in relevant sales hashtags.

* YouTube: Host webinar replays, product demos, tutorials, and short educational content.

2.4 Email Marketing:

  • Strategy: Nurture leads, announce new features, and drive conversions.
  • Channels:

* Lead Magnets: Offer free templates, checklists, or e-books in exchange for email sign-ups.

* Nurture Sequences: Onboard new subscribers with a series of emails introducing the product, its benefits, and case studies.

* Product Updates/Newsletters: Keep existing and potential customers informed about new features, tips, and success stories.

* Webinar Follow-ups: Send recordings, summaries, and CTAs to attendees.

2.5 Partnerships & Integrations:

  • Strategy: Leverage existing platforms and communities where our target audience resides.
  • Channels:

* CRM/Sales Tech Partners: Explore integrations with popular CRMs (Salesforce, HubSpot), sales engagement platforms (Outreach, Salesloft), and sales coaching tools. Co-marketing opportunities with these partners.

* Industry Associations: Partner with sales leadership associations or industry-specific groups for sponsorship or content collaboration.

* Influencer Marketing: Collaborate with well-known sales coaches, consultants, or LinkedIn influencers for reviews, endorsements, or guest content.

2.6 Direct Outreach (for Enterprise/Larger Mid-Market):

  • Strategy: Personalized approach for high-value targets.
  • Channels:

* Account-Based Marketing (ABM): Identify key target companies and roles. Create highly personalized content and outreach sequences.

* Outbound Sales Development: Utilize our own (AI-generated!) cold call scripts and email sequences to book demos with qualified leads.


3. Messaging Framework

Our messaging will consistently highlight the core value proposition and address the specific pain points of our target audience, adapting to different stages of the buyer's journey.

3.1 Core Value Proposition:

"The AI Sales Script Generator empowers sales teams to achieve higher conversion rates and consistent messaging by instantly generating tailored, industry-specific scripts for every sales scenario – from cold calls to objection handling."

3.2 Key Message Pillars:

  • Conversion Optimization: "Turn more prospects into customers with scripts proven to convert."
  • Time & Efficiency: "Save hours of script writing; focus on selling, not scripting."
  • Consistency & Quality: "Ensure every sales interaction is professional, consistent, and on-brand."
  • Industry-Specificity: "Speak your customer's language with AI-generated scripts tailored to your industry."
  • Objection Mastery: "Confidently handle any objection with pre-vetted, effective responses."
  • Scalability & Onboarding: "Rapidly onboard new reps and scale your sales team's effectiveness."

3.3 Messaging by Buyer Journey Stage:

  • Awareness Stage (Problem/Need Recognition):

* Focus: Highlighting the pain points of inefficient, inconsistent, or low-converting sales scripts.

* Message Examples:

* "Are your sales scripts costing you deals? Discover why improvisation isn't enough."

* "The hidden cost of inconsistent sales messaging – and how to fix it."

* "Struggling with cold call conversions? It might be your script."

* CTA: "Read our guide," "Download the whitepaper," "Watch the webinar."

  • Consideration Stage (Solution Exploration):

* Focus: Introducing the AI Sales Script Generator as a viable, innovative solution. Emphasize features and benefits.

* Message Examples:

* "Revolutionize your sales with AI-powered script generation."

"See how [Product Name] instantly crafts conversion-optimized scripts for your* industry."

* "Compare the benefits: Manual scripting vs. AI-driven efficiency."

* CTA: "Learn more," "Watch a demo video," "Explore features," "Sign up for a free trial."

  • Decision Stage (Evaluation & Purchase):

* Focus: Demonstrating value, providing social proof, addressing concerns, and driving commitment.

* Message Examples:

* "Join companies like [Company X] that boosted conversions by [Y]% with our AI scripts."

* "Ready to transform your sales? Get started with our [Product Name] today."

* "Still have questions? Book a personalized demo with our experts."

* "Special offer: [Discount/Bonus] for new sign-ups this month."

* CTA: "Start Free Trial," "Request a Demo," "Get Pricing," "Sign Up Now."

3.4 Call to Action (CTA) Strategy:

CTAs will be clear, benefit-oriented, and varied based on the marketing channel and stage of the buyer's journey.

  • Top of Funnel: "Download the Guide," "Read More," "Watch Webinar," "Get Tips."
  • Middle of Funnel: "Watch a Demo," "See Features," "Request a Trial," "Learn How It Works."
  • Bottom of Funnel: "Start Free Trial," "Get Pricing," "Book a Demo," "Sign Up Now," "Contact Sales."

4. Key Performance Indicators (KPIs)

Measuring the effectiveness of our marketing strategy is crucial. KPIs will be tracked across the entire marketing and sales funnel.

4.1 Awareness & Reach:

  • Website Traffic: Unique visitors, page views, traffic sources (organic, paid, referral, social).
  • Impressions & Reach: Ad impressions, social media reach.
  • Brand Mentions: Number of mentions across social media, forums, and reviews.
  • SEO Rankings: Position for target keywords.

4.2 Engagement:

  • Time on Site/Page: Average duration visitors spend on key pages (e.g., product page, blog posts).
  • Bounce Rate: Percentage of single-page sessions.
  • Content Downloads: Number of whitepapers, e-books, or templates downloaded.
  • Email Open & Click-Through Rates (CTR): For newsletters, nurturing sequences.
  • Social Media Engagement: Likes, shares, comments, video views.
  • Webinar Attendance: Number of registrants and attendees.

4.3 Lead Generation & Conversion:

  • Lead Volume: Total number of new leads generated (MQLs - Marketing Qualified Leads).
  • Conversion Rate (Website): Percentage of visitors who complete a desired action (e.g., sign-up for trial, request demo).
  • Trial Sign-ups: Number of users initiating a free trial.
  • Demo Requests: Number of prospects requesting a product demonstration.
  • Lead Quality: Assessment of MQLs based on defined criteria (e.g., job title, company size).
  • Cost Per Lead (CPL): Total marketing spend divided by total leads generated.

4.4 Sales & Revenue:

  • Trial-to-Paid Conversion Rate: Percentage of free trial users who convert to paying customers.
  • Customer Acquisition Cost (CAC): Total sales and marketing spend divided by new customers acquired.
  • Average Revenue Per User (ARPU): Revenue generated per customer.
  • Customer Lifetime Value (CLTV): Predicted total revenue a customer will generate over their relationship with us.
  • Churn Rate: Percentage of customers who stop using the service.
  • Sales Cycle Length: Time from first contact to closed-won deal.

4.5 Product Usage & Retention:

  • Active Users: Daily/weekly/monthly active users of the script generator.
  • Feature Adoption: Usage rates of key features (e.g., industry-specific templates, objection handling module).
  • Customer Satisfaction (CSAT) / Net Promoter Score (NPS): Feedback on user experience and likelihood to recommend.

This comprehensive marketing strategy provides a robust framework to launch and scale the AI Sales Script Generator. By continuously monitoring these KPIs and iterating on our approach, we will ensure optimal performance and achieve our business objectives.

gemini Output

This document outlines the capabilities and provides a structured overview of the AI Sales Script Generator, designed to empower your sales team with conversion-optimized, industry-specific communication.


AI Sales Script Generator: Your Blueprint for High-Converting Sales Conversations

Date: October 26, 2023

Prepared For: Valued Customer

Prepared By: PantheraHive AI Services


1. Introduction: Revolutionizing Your Sales Outreach

Welcome to the future of sales enablement. The AI Sales Script Generator is a sophisticated tool engineered to produce dynamic, conversion-optimized sales scripts tailored to various stages of your sales cycle. By leveraging advanced AI, we ensure your team is equipped with compelling, consistent, and industry-specific language designed to resonate with your prospects and drive measurable results.

Key Benefits:

  • Increased Conversion Rates: Scripts are crafted with persuasive language and clear calls to action, informed by best practices in sales psychology.
  • Enhanced Sales Efficiency: Reduce preparation time and ensure every sales interaction is structured for success.
  • Consistent Brand Messaging: Maintain a unified voice across your sales team, reinforcing your value proposition.
  • Industry-Specific Relevance: Scripts are infused with terminology and address pain points unique to your sector.

2. Core Capabilities: Comprehensive Script Generation

Our AI Sales Script Generator produces a diverse range of scripts, each optimized for its specific purpose:

  • Cold Call Scripts: Designed to capture attention, qualify leads, and secure initial interest or meetings.
  • Demo Scripts: Structured to showcase value, address prospect needs, and guide them towards understanding your solution's impact.
  • Follow-Up Scripts: Crafted to maintain engagement, reiterate value, and prompt the next step in the sales journey.
  • Objection Handling Frameworks: Provide strategic responses to common sales objections, turning potential roadblocks into opportunities.

Each script type is meticulously developed to integrate industry-specific language, ensuring maximum relevance and impact for your target audience.

3. Detailed Script Overviews & Frameworks

Below are the detailed frameworks and example snippets for each script type, demonstrating their structure and application.

A. Cold Call Script Framework

Objective: To make a compelling first impression, qualify the prospect, and secure a follow-up meeting or deeper conversation.

Key Elements:

  • Opening Hook: Immediately grab attention and establish relevance.
  • Permission Request: Respectfully ask for a moment of their time.
  • Value Proposition (Concise): Briefly state the core problem you solve and the unique benefit.
  • Qualification Questions: Uncover their current situation and potential needs.
  • Call to Action (CTA): Propose a clear, low-commitment next step.

Example Snippet (Industry: B2B SaaS - AI-Powered CRM for SMBs):

> Sales Rep: "Hi [Prospect Name], this is [Your Name] from Panthera CRM. I know you're busy, but I noticed your company, [Prospect Company], is in the [Prospect Industry] sector, and we've been helping businesses like yours significantly streamline their lead nurturing and improve sales conversion by up to 25%. Do you have 30 seconds for me to explain how?"

>

> Prospect: "Maybe, what's it about?"

>

> Sales Rep: "Great. We specialize in an AI-powered CRM that automates lead scoring and personalized outreach, freeing up your sales team to focus on high-value interactions. Are you currently facing challenges with lead qualification or optimizing your sales pipeline efficiency?"

>

> Prospect: "We're always looking to improve our pipeline."

>

> Sales Rep: "Excellent. It sounds like our solution could be a great fit. Would you be open to a brief 15-minute call next week to show you a quick overview of how Panthera CRM can specifically address those challenges for [Prospect Company]?"

B. Demo Script Framework

Objective: To effectively showcase your product/service, demonstrate its value in solving the prospect's specific pain points, and build excitement for implementation.

Key Elements:

  • Introduction & Agenda: Set expectations and confirm understanding of their needs.
  • Problem-Solution Alignment: Reiterate their challenges and position your solution as the answer.
  • Key Feature Demonstrations (Benefit-Focused): Show, don't just tell. Highlight features directly addressing their pain points, emphasizing benefits.
  • Q&A & Interactive Discussion: Encourage questions and engagement.
  • Next Steps & Call to Action: Clearly outline what happens next.

Example Snippet (Industry: B2B SaaS - AI-Powered CRM for SMBs):

> Sales Rep: "Welcome, [Prospect Name]! Based on our last conversation, I understand your primary goals are to improve lead qualification accuracy and automate repetitive outreach tasks to free up your sales team. Does that still sound right?"

>

> Prospect: "Yes, absolutely."

>

> Sales Rep: "Perfect. Today, I'll walk you through how Panthera CRM's AI-driven lead scoring and automated workflow engine directly addresses those points. First, let's look at our 'Predictive Lead Score' dashboard. As you can see here, the system automatically assigns a real-time probability score to each lead based on engagement history and demographic data. This means your team instantly knows which leads are hot, saving them hours chasing unqualified prospects. How do you currently prioritize your inbound leads?"

>

> [Continue with feature demo, focusing on benefits like reduced manual effort, higher conversion, data-driven decisions]

>

> Sales Rep: "So, by leveraging these automated workflows for follow-ups and nurturing, how much time do you estimate your team could save each week, and what impact do you think that would have on their focus?"

>

> Sales Rep: "Great. Now that you've seen the core functionalities, do you have any questions about how this would integrate with your existing sales process, or any specific scenarios you'd like to explore?"

C. Follow-Up Script Framework

Objective: To maintain momentum, provide additional value, address lingering questions, and move the prospect closer to a decision.

Key Elements:

  • Reference Previous Interaction: Remind them of your last conversation or meeting.
  • Reiterate Value Proposition: Briefly connect back to their needs and how your solution helps.
  • Provide Additional Value/Address Potential Concerns: Share relevant content, case study, or clarify a point.
  • Clear Call to Action: Propose a specific next step (e.g., another meeting, proposal, trial).

Example Snippet (Industry: B2B SaaS - AI-Powered CRM for SMBs):

> Subject: Following up: Your Path to Smarter Lead Nurturing with Panthera CRM

>

> Sales Rep: "Hi [Prospect Name],

>

> Hope you had a productive week.

>

> I wanted to follow up on our discussion regarding Panthera CRM and how our AI-powered features can help [Prospect Company] streamline your lead qualification and automate your sales outreach.

>

> I recall you were particularly interested in how our system handles personalized email sequences. I've attached a quick one-pager detailing our 'Smart Outreach Engine' which dynamically adjusts messaging based on lead engagement, ensuring maximum relevance and response rates. We've seen clients in the [Prospect Industry] achieve a 30% uplift in email open rates using this feature alone.

>

> Do you have any further questions after reviewing that, or would you be open to a quick 10-minute call tomorrow to discuss how we can tailor a pilot program specifically for your team?"

D. Objection Handling Framework

Objective: To effectively address and overcome prospect concerns, transforming potential roadblocks into opportunities to clarify value and build trust.

Key Elements:

  • Listen & Acknowledge: Fully understand the objection and show empathy.
  • Empathize: Validate their feeling or concern.
  • Isolate the Objection: Confirm that this is the primary concern.
  • Reframe & Provide Solution/Reassurance: Offer a different perspective, provide data, or explain how your solution mitigates the concern.
  • Confirm Understanding: Ensure their objection has been addressed to their satisfaction.

Example Snippet (Industry: B2B SaaS - AI-Powered CRM for SMBs):

Objection: "Your solution sounds great, but it's too expensive for our current budget."

> Sales Rep: "I completely understand, [Prospect Name]. Budget is always a critical consideration, especially when evaluating new technologies. Many of our clients initially have similar concerns about the investment." (Acknowledge & Empathize)

>

> "Just to be clear, is the primary concern the upfront cost, or are you questioning the potential return on investment you'd see from Panthera CRM?" (Isolate)

>

> Prospect: "Mainly the upfront cost right now."

>

> Sales Rep: "Thank you for clarifying. While there is an initial investment, what we've consistently seen with companies similar to yours in the [Prospect Industry] is that the efficiencies gained from automated lead nurturing and the increase in sales conversion often lead to a positive ROI within the first 6-9 months. For instance, by saving X hours per week on manual tasks and closing Y more deals, the system essentially pays for itself. We can even work with you to project your specific ROI based on your current metrics. Does that help put the investment into perspective?" (Reframe & Provide Solution)

>

> Prospect: "That's an interesting way to look at it."

>

> Sales Rep: "Fantastic. Would it be helpful if I shared a case study from a company with a similar budget to yours, detailing their ROI after implementing Panthera CRM?" (Confirm Understanding & Next Step)

4. Customization and Personalization

The true power of the AI Sales Script Generator lies in its ability to be deeply customized. To generate the most effective scripts for your business, we integrate:

  • Your Company Profile: Mission, values, brand voice.
  • Product/Service Details: Unique selling propositions, key features, benefits.
  • Target Audience Demographics & Psychographics: Understanding your ideal customer's pain points, language, and decision-making process.
  • Industry-Specific Nuances: Jargon, regulatory considerations, common challenges, and competitive landscape.

Your input on these critical factors directly influences the precision and conversion potential of the generated scripts.

5. How to Leverage Your AI-Generated Scripts

To maximize the impact of these scripts:

  • Sales Team Training: Conduct training sessions to ensure your sales team understands the frameworks and can deliver the scripts authentically.
  • Practice & Role-Playing: Encourage regular practice to build confidence and fluidity.
  • A/B Testing & Iteration: Continuously test different script variations, measure performance, and provide feedback for refinement.
  • CRM Integration: Incorporate scripts and key messaging into your CRM or sales enablement platforms for easy access.

6. Conclusion

The AI Sales Script Generator is more than just a tool; it's a strategic partner designed to elevate your sales performance. By providing meticulously crafted, conversion-optimized, and industry-specific scripts for every critical sales interaction, we empower your team to engage more effectively, close more deals, and achieve unprecedented success.

Ready to implement these powerful scripts and transform your sales outreach? Please reach out to your PantheraHive contact to discuss next steps and begin integrating these assets into your sales strategy.

gemini Output

AI Sales Script Generator: Conversion-Optimized Sales Scripts

This deliverable provides a comprehensive set of conversion-optimized sales scripts tailored for the SaaS/Tech industry, specifically for an AI-powered CRM solution. These scripts are designed to guide your sales team through various stages of the sales cycle, from initial outreach to closing, incorporating best practices for engagement, value communication, and objection handling.


Introduction

Welcome to your refined and formatted AI Sales Scripts! These scripts are crafted to empower your sales team with effective, professional, and persuasive language. Each script focuses on delivering value, addressing prospect needs, and driving conversions for your AI-powered CRM. Remember, these are frameworks – encourage your team to personalize and adapt them to each unique conversation while maintaining the core messaging.


General Scripting Principles for AI-Powered CRM Sales

Before diving into the specific scripts, let's establish core principles that underpin all effective sales interactions for an AI CRM:

  • Focus on Business Outcomes: Instead of just features, emphasize how the AI CRM solves specific business problems (e.g., increased sales efficiency, improved data accuracy, better forecasting).
  • Quantifiable Value: Where possible, hint at or articulate potential ROI (e.g., "Our clients see an average of 20% increase in lead conversion").
  • Personalization: Always use the prospect's name, company name, and reference any prior research or interaction.
  • Discovery-Oriented: Ask open-ended questions to uncover needs, pain points, and current challenges.
  • Clear Call to Action (CTA): Every interaction should lead to a clear, next logical step.
  • Confident & Empathetic Tone: Be confident in your solution while showing understanding for the prospect's situation.
  • Industry-Specific Language: Use terms familiar to your target audience in the SaaS/Tech space (e.g., "data silos," "workflow automation," "predictive analytics").

1. Cold Call Script: AI-Powered CRM Introduction

Goal: Secure a discovery call/demo by piquing interest and demonstrating initial value.

Target Persona: Sales Director, Head of Operations, CEO of a growing B2B company.

Opening (15-20 seconds):

"Hi [Prospect Name], this is [Your Name] from [Your Company Name]. We specialize in AI-powered CRM solutions. I know you're busy, so I'll be brief. Is this a bad time?"

  • Why it works: Respects their time, uses a soft ask for permission to continue.

Permission Granted (If "No, what's this about?"):

"Great, thanks. I was reaching out because I noticed [Prospect Company] operates in [Industry/Sector] and from what I understand, companies in your space often struggle with [mention a common pain point relevant to AI CRM, e.g., 'inefficient sales processes due to manual data entry' or 'lack of actionable insights from their customer data']."

  • Why it works: Shows research, immediately frames the conversation around their potential challenges.

Value Proposition (Brief & Relevant):

"Our AI CRM, [Product Name], helps businesses like yours to [mention 1-2 key benefits, e.g., 'automate repetitive tasks, provide predictive insights for sales forecasting, and personalize customer interactions at scale']. This typically leads to [quantifiable outcome, e.g., 'a significant reduction in sales cycle time and an uplift in conversion rates']."

  • Why it works: Connects solution directly to their pain points and desired outcomes.

Discovery Question (Open-Ended):

"Does managing and leveraging your customer data for sales efficiency resonate with any challenges you're currently facing at [Prospect Company]?"

  • Why it works: Encourages them to share their specific situation, shifting from a pitch to a conversation.

Handling Interest / Setting Next Step:

  • If interested: "Excellent. To give you a better idea of how [Product Name] could specifically benefit [Prospect Company], I'd love to schedule a quick 15-minute discovery call with you next week. We can explore your current processes and see if there's a good fit. How does [Date] at [Time] or [Date] at [Time] look for you?"

* Why it works: Clear, low-commitment CTA with specific options.

  • If hesitant but open: "I understand. Perhaps it's not a top priority right now. Would you be open to receiving a brief email with a 2-minute explainer video or a case study relevant to [Prospect Company]'s industry? You can review it at your convenience."

* Why it works: Low-pressure alternative, keeps the door open.

Closing:

"Thanks so much for your time, [Prospect Name]. I'll send that calendar invite/email right over."


2. Demo Script: AI-Powered CRM Walkthrough

Goal: Showcase how the AI CRM solves the prospect's identified pain points, build desire, and secure the next step (e.g., trial, proposal).

Pre-Demo Preparation:

  • Review Discovery Notes: Understand their specific challenges, goals, and key stakeholders.
  • Tailor Demo Flow: Highlight features and use cases most relevant to their needs.
  • Prepare Custom Data/Scenarios (if possible): Use their industry examples or even their company's name in a mock scenario.

A. Demo Introduction (5 minutes):

  1. Welcome & Agenda: "Hi [Prospect Name] and [Other Attendees], thanks for joining. Today, we'll spend about [X] minutes exploring how [Product Name] can help [Prospect Company] address [reiterate 1-2 key pain points discovered]. We'll focus on [mention 2-3 key areas of the demo]. Please feel free to jump in with questions at any time."
  2. Recap Needs: "Based on our last conversation, you mentioned challenges with [specific pain point 1, e.g., 'manual lead scoring'] and [specific pain point 2, e.g., 'lack of predictive analytics for sales forecasting']. Is that still accurate, or have things shifted?"

* Why it works: Confirms understanding, ensures relevance, and invites immediate feedback.

B. Core Demo (30-40 minutes):

  • Structure: Problem → Solution → Benefit.
  • Narrative: Tell a story of how a user at their company would use the system.
  1. AI-Powered Lead Management & Scoring:

* Problem: "Many sales teams struggle to prioritize leads effectively, wasting time on low-potential prospects."

* Solution (Show): "Here in [Product Name], our AI automatically scores leads based on engagement, firmographics, and historical conversion data. You can see how [Lead Name] has a high propensity to convert."

* Benefit: "This means your sales reps focus their energy on the hottest leads, significantly boosting efficiency and conversion rates. Imagine the time saved by not chasing dead ends."

* Question: "How are you currently prioritizing your leads, and what challenges do you face with that process?"

  1. Automated Workflow & Task Management:

* Problem: "Manual follow-ups and administrative tasks often distract reps from selling."

* Solution (Show): "Our AI automates routine tasks like follow-up emails, task creation after a meeting, and even suggests next best actions based on prospect behavior. For example, after a demo, the system can automatically schedule a follow-up task for the rep and send a personalized summary email."

* Benefit: "This frees up your sales team to do what they do best – build relationships and close deals. It ensures consistency and prevents leads from falling through the cracks."

* Question: "What's the biggest time sink for your sales reps right now?"

  1. Predictive Analytics & Sales Forecasting:

* Problem: "Inaccurate forecasting leads to missed targets and poor resource allocation."

* Solution (Show): "Our dashboard provides real-time, AI-driven sales forecasts. The system analyzes historical data, current pipeline, and external market trends to give you highly accurate predictions of future revenue. You can even drill down into specific segments."

* Benefit: "This empowers your sales leadership with data-backed decisions, allowing for proactive strategy adjustments and more reliable revenue generation. No more guessing games."

* Question: "How confident are you in your current forecasting methods, and what impact does accuracy have on your business planning?"

C. Demo Conclusion (5-10 minutes):

  1. Recap Value: "So, to recap, we've seen how [Product Name] can help [Prospect Company] by [reiterate 2-3 key benefits discussed, linking back to their pain points]."
  2. Address Questions: "What key questions or concerns have come up for you during the demo?"
  3. Confirm Fit: "Based on what we've discussed, do you see [Product Name] as a potential solution to [their primary challenge]?"
  4. Next Steps (Clear CTA):

* "To move forward, I'd suggest a follow-up call next week to discuss a tailored proposal and potentially set up a pilot program. How does [Date] at [Time] or [Date] at [Time] work for you?"

* "Alternatively, if you'd like to explore the system hands-on, we could arrange a 14-day free trial for your team, complete with onboarding support."

* Why it works: Provides options, clear path forward.


3. Follow-Up Script: Post-Meeting/Demo

Goal: Maintain momentum, reiterate value, and secure the next step.

A. Immediate Post-Demo Email (within 1-2 hours):

Subject: Following Up: Your AI CRM Demo for [Prospect Company]

"Hi [Prospect Name],

It was great connecting with you and your team today to discuss how [Product Name] could transform your sales operations at [Prospect Company].

I especially enjoyed our conversation around [mention a specific point of interest/pain point discussed, e.g., 'your challenges with manual lead scoring and the potential for AI-driven prioritization'].

As promised, here are a few resources:

  • [Link to a relevant case study]
  • [Link to a specific feature video showcased]
  • [Link to pricing page or proposal overview, if applicable]

Our next step, as we discussed, is to [reiterate agreed-upon next step, e.g., 'schedule a 30-minute call to review a tailored proposal next Tuesday']. I've sent a calendar invite for [Date] at [Time]. Please let me know if that time works.

In the meantime, if any further questions arise, please don't hesitate to reach out.

Best regards,

[Your Name]

[Your Title]

[Your Company]

[Your Contact Info]"

B. Nurturing Follow-Up (if no response after 3-5 days):

Subject: Thinking of [Prospect Company] - AI CRM Insights

"Hi [Prospect Name],

Hope you're having a productive week.

Just checking in regarding our recent discussion about [Product Name] and how it could help [Prospect Company] with [reiterate a key benefit, e.g., 'automating repetitive sales tasks'].

I came across this article/resource about [relevant industry trend or solution, e.g., 'the impact of predictive analytics on sales forecasting'] and immediately thought of our conversation. [Optional: Add a brief, insightful comment about the article's relevance.]

[Link to article/resource]

I'm still keen to explore how we can help you achieve [their key goal]. Would you be open to a quick 10-minute chat sometime next week?

Best,

[Your Name]"


4. Objection Handling Scripts

Goal: Address concerns professionally, overcome resistance, and re-emphasize value.

General Principle: Listen, Empathize, Clarify, Respond, Confirm.

A. "It's too expensive."

  • Listen & Empathize: "I completely understand that budget is a significant consideration, [Prospect Name]. Many of our clients have similar concerns initially."
  • Clarify: "Could you tell me a bit more about what you're comparing our solution to, or what your expected ROI would be for an investment in this area?"
  • Respond (Value/ROI Focus): "While [Product Name] is an investment, it's designed to deliver substantial returns. For example, our AI-driven lead scoring can increase conversion rates by up to 20%, and automation can save your reps 10+ hours a week, allowing them to focus on closing more deals. When you factor in the efficiency gains and increased revenue, the ROI often far outweighs the initial cost. What would a 10-20% boost in sales efficiency mean for your bottom line?"
  • Alternative: "We also offer flexible pricing tiers and implementation options to ensure it aligns with your specific needs and budget constraints."
  • Confirm: "Does that help put the investment into perspective?"

B. "We're happy with our current CRM/system."

  • Listen & Empathize: "That's great to hear you have a system in place, [Prospect Name]. Many companies we speak with have established tools."
  • Clarify: "What specific aspects of your current CRM are you most satisfied with? And conversely, are there any areas where you feel it might be lacking, especially concerning AI-driven insights or automation?"
  • Respond (Differentiation/Enhancement): "Often, our clients aren't necessarily looking to replace their entire system but rather to enhance it with advanced AI capabilities that their existing CRM doesn't offer. For instance, does your current system provide predictive analytics for sales forecasting, or intelligent automation for personalized customer journeys? [Product Name] integrates seamlessly with many existing CRMs to fill those gaps and elevate your current setup, not necessarily replace it."
  • Confirm: "Would you be open to a brief discussion on how our AI layer could augment your current system's capabilities?"

C. "We don't have the resources/time for implementation."

  • Listen & Empathize: "I hear you, [Prospect Name]. Implementing new technology can feel like a significant undertaking, especially with limited resources."
  • Clarify: "What does your typical implementation process look like, and what are your biggest concerns regarding the time commitment?"
  • Respond (Ease of Implementation/Support): "We've designed [Product Name] with ease of implementation in mind. Our dedicated onboarding team provides comprehensive support, from data migration to user training, ensuring a smooth transition with minimal disruption to your daily operations. Many of our clients are up and running within [X weeks/days] because we handle much of the heavy lifting. We also offer phased rollouts to minimize impact."
  • Confirm: "Would learning more about our implementation support alleviate some of those concerns?"

D. "I need to discuss this with my team/boss."

  • Listen & Empathize: "Absolutely, [Prospect Name]. This is a strategic decision, and getting your team's input is crucial."
  • Clarify: "What specific information or aspects do you think they'd be most interested in, or what potential questions do you anticipate they might have?"
  • Respond (Help Facilitate): "I'd be happy to put together a concise summary of how [Product Name] addresses [their key pain point] with the key benefits we discussed today, which you can share with your team. Or, if it would be helpful, I could join a brief call with your team/boss to answer any questions directly and walk them through the most relevant parts of the solution. Would that be of value?"
  • Confirm: "What would be the best way for me to support you in that internal discussion?"

Best Practices for Script Delivery

  • Don't Read, Converse: Use the scripts as a guide, not a verbatim recitation. Your goal is a natural, engaging conversation.
  • Listen Actively: Pay attention to verbal cues and tone. Ask clarifying questions.
  • Be Prepared for Deviations: Prospects rarely follow a script. Be flexible and ready to pivot.

*

ai_sales_script_generator.md
Download as Markdown
Copy all content
Full output as text
Download ZIP
IDE-ready project ZIP
Copy share link
Permanent URL for this run
Get Embed Code
Embed this result on any website
Print / Save PDF
Use browser print dialog
\n\n\n"); var hasSrcMain=Object.keys(extracted).some(function(k){return k.indexOf("src/main")>=0;}); if(!hasSrcMain) zip.file(folder+"src/main."+ext,"import React from 'react'\nimport ReactDOM from 'react-dom/client'\nimport App from './App'\nimport './index.css'\n\nReactDOM.createRoot(document.getElementById('root')!).render(\n \n \n \n)\n"); var hasSrcApp=Object.keys(extracted).some(function(k){return k==="src/App."+ext||k==="App."+ext;}); if(!hasSrcApp) zip.file(folder+"src/App."+ext,"import React from 'react'\nimport './App.css'\n\nfunction App(){\n return(\n
\n
\n

"+slugTitle(pn)+"

\n

Built with PantheraHive BOS

\n
\n
\n )\n}\nexport default App\n"); zip.file(folder+"src/index.css","*{margin:0;padding:0;box-sizing:border-box}\nbody{font-family:system-ui,-apple-system,sans-serif;background:#f0f2f5;color:#1a1a2e}\n.app{min-height:100vh;display:flex;flex-direction:column}\n.app-header{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:40px}\nh1{font-size:2.5rem;font-weight:700}\n"); zip.file(folder+"src/App.css",""); zip.file(folder+"src/components/.gitkeep",""); zip.file(folder+"src/pages/.gitkeep",""); zip.file(folder+"src/hooks/.gitkeep",""); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\nnpm install\nnpm run dev\n\`\`\`\n\n## Build\n\`\`\`bash\nnpm run build\n\`\`\`\n\n## Open in IDE\nOpen the project folder in VS Code or WebStorm.\n"); zip.file(folder+".gitignore","node_modules/\ndist/\n.env\n.DS_Store\n*.local\n"); } /* --- Vue (Vite + Composition API + TypeScript) --- */ function buildVue(zip,folder,app,code,panelTxt){ var pn=pkgName(app); var C=cc(pn); var extracted=extractCode(panelTxt); zip.file(folder+"package.json",'{\n "name": "'+pn+'",\n "version": "0.0.0",\n "type": "module",\n "scripts": {\n "dev": "vite",\n "build": "vue-tsc -b && vite build",\n "preview": "vite preview"\n },\n "dependencies": {\n "vue": "^3.5.13",\n "vue-router": "^4.4.5",\n "pinia": "^2.3.0",\n "axios": "^1.7.9"\n },\n "devDependencies": {\n "@vitejs/plugin-vue": "^5.2.1",\n "typescript": "~5.7.3",\n "vite": "^6.0.5",\n "vue-tsc": "^2.2.0"\n }\n}\n'); zip.file(folder+"vite.config.ts","import { defineConfig } from 'vite'\nimport vue from '@vitejs/plugin-vue'\nimport { resolve } from 'path'\n\nexport default defineConfig({\n plugins: [vue()],\n resolve: { alias: { '@': resolve(__dirname,'src') } }\n})\n"); zip.file(folder+"tsconfig.json",'{"files":[],"references":[{"path":"./tsconfig.app.json"},{"path":"./tsconfig.node.json"}]}\n'); zip.file(folder+"tsconfig.app.json",'{\n "compilerOptions":{\n "target":"ES2020","useDefineForClassFields":true,"module":"ESNext","lib":["ES2020","DOM","DOM.Iterable"],\n "skipLibCheck":true,"moduleResolution":"bundler","allowImportingTsExtensions":true,\n "isolatedModules":true,"moduleDetection":"force","noEmit":true,"jsxImportSource":"vue",\n "strict":true,"paths":{"@/*":["./src/*"]}\n },\n "include":["src/**/*.ts","src/**/*.d.ts","src/**/*.tsx","src/**/*.vue"]\n}\n'); zip.file(folder+"env.d.ts","/// \n"); zip.file(folder+"index.html","\n\n\n \n \n "+slugTitle(pn)+"\n\n\n
\n \n\n\n"); var hasMain=Object.keys(extracted).some(function(k){return k==="src/main.ts"||k==="main.ts";}); if(!hasMain) zip.file(folder+"src/main.ts","import { createApp } from 'vue'\nimport { createPinia } from 'pinia'\nimport App from './App.vue'\nimport './assets/main.css'\n\nconst app = createApp(App)\napp.use(createPinia())\napp.mount('#app')\n"); var hasApp=Object.keys(extracted).some(function(k){return k.indexOf("App.vue")>=0;}); if(!hasApp) zip.file(folder+"src/App.vue","\n\n\n\n\n"); zip.file(folder+"src/assets/main.css","*{margin:0;padding:0;box-sizing:border-box}body{font-family:system-ui,sans-serif;background:#fff;color:#213547}\n"); zip.file(folder+"src/components/.gitkeep",""); zip.file(folder+"src/views/.gitkeep",""); zip.file(folder+"src/stores/.gitkeep",""); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\nnpm install\nnpm run dev\n\`\`\`\n\n## Build\n\`\`\`bash\nnpm run build\n\`\`\`\n\nOpen in VS Code or WebStorm.\n"); zip.file(folder+".gitignore","node_modules/\ndist/\n.env\n.DS_Store\n*.local\n"); } /* --- Angular (v19 standalone) --- */ function buildAngular(zip,folder,app,code,panelTxt){ var pn=pkgName(app); var C=cc(pn); var sel=pn.replace(/_/g,"-"); var extracted=extractCode(panelTxt); zip.file(folder+"package.json",'{\n "name": "'+pn+'",\n "version": "0.0.0",\n "scripts": {\n "ng": "ng",\n "start": "ng serve",\n "build": "ng build",\n "test": "ng test"\n },\n "dependencies": {\n "@angular/animations": "^19.0.0",\n "@angular/common": "^19.0.0",\n "@angular/compiler": "^19.0.0",\n "@angular/core": "^19.0.0",\n "@angular/forms": "^19.0.0",\n "@angular/platform-browser": "^19.0.0",\n "@angular/platform-browser-dynamic": "^19.0.0",\n "@angular/router": "^19.0.0",\n "rxjs": "~7.8.0",\n "tslib": "^2.3.0",\n "zone.js": "~0.15.0"\n },\n "devDependencies": {\n "@angular-devkit/build-angular": "^19.0.0",\n "@angular/cli": "^19.0.0",\n "@angular/compiler-cli": "^19.0.0",\n "typescript": "~5.6.0"\n }\n}\n'); zip.file(folder+"angular.json",'{\n "$schema": "./node_modules/@angular/cli/lib/config/schema.json",\n "version": 1,\n "newProjectRoot": "projects",\n "projects": {\n "'+pn+'": {\n "projectType": "application",\n "root": "",\n "sourceRoot": "src",\n "prefix": "app",\n "architect": {\n "build": {\n "builder": "@angular-devkit/build-angular:application",\n "options": {\n "outputPath": "dist/'+pn+'",\n "index": "src/index.html",\n "browser": "src/main.ts",\n "tsConfig": "tsconfig.app.json",\n "styles": ["src/styles.css"],\n "scripts": []\n }\n },\n "serve": {"builder":"@angular-devkit/build-angular:dev-server","configurations":{"production":{"buildTarget":"'+pn+':build:production"},"development":{"buildTarget":"'+pn+':build:development"}},"defaultConfiguration":"development"}\n }\n }\n }\n}\n'); zip.file(folder+"tsconfig.json",'{\n "compileOnSave": false,\n "compilerOptions": {"baseUrl":"./","outDir":"./dist/out-tsc","forceConsistentCasingInFileNames":true,"strict":true,"noImplicitOverride":true,"noPropertyAccessFromIndexSignature":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"paths":{"@/*":["src/*"]},"skipLibCheck":true,"esModuleInterop":true,"sourceMap":true,"declaration":false,"experimentalDecorators":true,"moduleResolution":"bundler","importHelpers":true,"target":"ES2022","module":"ES2022","useDefineForClassFields":false,"lib":["ES2022","dom"]},\n "references":[{"path":"./tsconfig.app.json"}]\n}\n'); zip.file(folder+"tsconfig.app.json",'{\n "extends":"./tsconfig.json",\n "compilerOptions":{"outDir":"./dist/out-tsc","types":[]},\n "files":["src/main.ts"],\n "include":["src/**/*.d.ts"]\n}\n'); zip.file(folder+"src/index.html","\n\n\n \n "+slugTitle(pn)+"\n \n \n \n\n\n \n\n\n"); zip.file(folder+"src/main.ts","import { bootstrapApplication } from '@angular/platform-browser';\nimport { appConfig } from './app/app.config';\nimport { AppComponent } from './app/app.component';\n\nbootstrapApplication(AppComponent, appConfig)\n .catch(err => console.error(err));\n"); zip.file(folder+"src/styles.css","* { margin: 0; padding: 0; box-sizing: border-box; }\nbody { font-family: system-ui, -apple-system, sans-serif; background: #f9fafb; color: #111827; }\n"); var hasComp=Object.keys(extracted).some(function(k){return k.indexOf("app.component")>=0;}); if(!hasComp){ zip.file(folder+"src/app/app.component.ts","import { Component } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\n\n@Component({\n selector: 'app-root',\n standalone: true,\n imports: [RouterOutlet],\n templateUrl: './app.component.html',\n styleUrl: './app.component.css'\n})\nexport class AppComponent {\n title = '"+pn+"';\n}\n"); zip.file(folder+"src/app/app.component.html","
\n
\n

"+slugTitle(pn)+"

\n

Built with PantheraHive BOS

\n
\n \n
\n"); zip.file(folder+"src/app/app.component.css",".app-header{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;gap:16px}h1{font-size:2.5rem;font-weight:700;color:#6366f1}\n"); } zip.file(folder+"src/app/app.config.ts","import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';\nimport { provideRouter } from '@angular/router';\nimport { routes } from './app.routes';\n\nexport const appConfig: ApplicationConfig = {\n providers: [\n provideZoneChangeDetection({ eventCoalescing: true }),\n provideRouter(routes)\n ]\n};\n"); zip.file(folder+"src/app/app.routes.ts","import { Routes } from '@angular/router';\n\nexport const routes: Routes = [];\n"); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\nnpm install\nng serve\n# or: npm start\n\`\`\`\n\n## Build\n\`\`\`bash\nng build\n\`\`\`\n\nOpen in VS Code with Angular Language Service extension.\n"); zip.file(folder+".gitignore","node_modules/\ndist/\n.env\n.DS_Store\n*.local\n.angular/\n"); } /* --- Python --- */ function buildPython(zip,folder,app,code){ var title=slugTitle(app); var pn=pkgName(app); var src=code.replace(/^\`\`\`[\w]*\n?/m,"").replace(/\n?\`\`\`$/m,"").trim(); var reqMap={"numpy":"numpy","pandas":"pandas","sklearn":"scikit-learn","tensorflow":"tensorflow","torch":"torch","flask":"flask","fastapi":"fastapi","uvicorn":"uvicorn","requests":"requests","sqlalchemy":"sqlalchemy","pydantic":"pydantic","dotenv":"python-dotenv","PIL":"Pillow","cv2":"opencv-python","matplotlib":"matplotlib","seaborn":"seaborn","scipy":"scipy"}; var reqs=[]; Object.keys(reqMap).forEach(function(k){if(src.indexOf("import "+k)>=0||src.indexOf("from "+k)>=0)reqs.push(reqMap[k]);}); var reqsTxt=reqs.length?reqs.join("\n"):"# add dependencies here\n"; zip.file(folder+"main.py",src||"# "+title+"\n# Generated by PantheraHive BOS\n\nprint(title+\" loaded\")\n"); zip.file(folder+"requirements.txt",reqsTxt); zip.file(folder+".env.example","# Environment variables\n"); zip.file(folder+"README.md","# "+title+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\npython3 -m venv .venv\nsource .venv/bin/activate\npip install -r requirements.txt\n\`\`\`\n\n## Run\n\`\`\`bash\npython main.py\n\`\`\`\n"); zip.file(folder+".gitignore",".venv/\n__pycache__/\n*.pyc\n.env\n.DS_Store\n"); } /* --- Node.js --- */ function buildNode(zip,folder,app,code){ var title=slugTitle(app); var pn=pkgName(app); var src=code.replace(/^\`\`\`[\w]*\n?/m,"").replace(/\n?\`\`\`$/m,"").trim(); var depMap={"mongoose":"^8.0.0","dotenv":"^16.4.5","axios":"^1.7.9","cors":"^2.8.5","bcryptjs":"^2.4.3","jsonwebtoken":"^9.0.2","socket.io":"^4.7.4","uuid":"^9.0.1","zod":"^3.22.4","express":"^4.18.2"}; var deps={}; Object.keys(depMap).forEach(function(k){if(src.indexOf(k)>=0)deps[k]=depMap[k];}); if(!deps["express"])deps["express"]="^4.18.2"; var pkgJson=JSON.stringify({"name":pn,"version":"1.0.0","main":"src/index.js","scripts":{"start":"node src/index.js","dev":"nodemon src/index.js"},"dependencies":deps,"devDependencies":{"nodemon":"^3.0.3"}},null,2)+"\n"; zip.file(folder+"package.json",pkgJson); var fallback="const express=require(\"express\");\nconst app=express();\napp.use(express.json());\n\napp.get(\"/\",(req,res)=>{\n res.json({message:\""+title+" API\"});\n});\n\nconst PORT=process.env.PORT||3000;\napp.listen(PORT,()=>console.log(\"Server on port \"+PORT));\n"; zip.file(folder+"src/index.js",src||fallback); zip.file(folder+".env.example","PORT=3000\n"); zip.file(folder+".gitignore","node_modules/\n.env\n.DS_Store\n"); zip.file(folder+"README.md","# "+title+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\nnpm install\n\`\`\`\n\n## Run\n\`\`\`bash\nnpm run dev\n\`\`\`\n"); } /* --- Vanilla HTML --- */ function buildVanillaHtml(zip,folder,app,code){ var title=slugTitle(app); var isFullDoc=code.trim().toLowerCase().indexOf("=0||code.trim().toLowerCase().indexOf("=0; var indexHtml=isFullDoc?code:"\n\n\n\n\n"+title+"\n\n\n\n"+code+"\n\n\n\n"; zip.file(folder+"index.html",indexHtml); zip.file(folder+"style.css","/* "+title+" — styles */\n*{margin:0;padding:0;box-sizing:border-box}\nbody{font-family:system-ui,-apple-system,sans-serif;background:#fff;color:#1a1a2e}\n"); zip.file(folder+"script.js","/* "+title+" — scripts */\n"); zip.file(folder+"assets/.gitkeep",""); zip.file(folder+"README.md","# "+title+"\n\nGenerated by PantheraHive BOS.\n\n## Open\nDouble-click \`index.html\` in your browser.\n\nOr serve locally:\n\`\`\`bash\nnpx serve .\n# or\npython3 -m http.server 3000\n\`\`\`\n"); zip.file(folder+".gitignore",".DS_Store\nnode_modules/\n.env\n"); } /* ===== MAIN ===== */ var sc=document.createElement("script"); sc.src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"; sc.onerror=function(){ if(lbl)lbl.textContent="Download ZIP"; alert("JSZip load failed — check connection."); }; sc.onload=function(){ var zip=new JSZip(); var base=(_phFname||"output").replace(/\.[^.]+$/,""); var app=base.toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"")||"my_app"; var folder=app+"/"; var vc=document.getElementById("panel-content"); var panelTxt=vc?(vc.innerText||vc.textContent||""):""; var lang=detectLang(_phCode,panelTxt); if(_phIsHtml){ buildVanillaHtml(zip,folder,app,_phCode); } else if(lang==="flutter"){ buildFlutter(zip,folder,app,_phCode,panelTxt); } else if(lang==="react-native"){ buildReactNative(zip,folder,app,_phCode,panelTxt); } else if(lang==="swift"){ buildSwift(zip,folder,app,_phCode,panelTxt); } else if(lang==="kotlin"){ buildKotlin(zip,folder,app,_phCode,panelTxt); } else if(lang==="react"){ buildReact(zip,folder,app,_phCode,panelTxt); } else if(lang==="vue"){ buildVue(zip,folder,app,_phCode,panelTxt); } else if(lang==="angular"){ buildAngular(zip,folder,app,_phCode,panelTxt); } else if(lang==="python"){ buildPython(zip,folder,app,_phCode); } else if(lang==="node"){ buildNode(zip,folder,app,_phCode); } else { /* Document/content workflow */ var title=app.replace(/_/g," "); var md=_phAll||_phCode||panelTxt||"No content"; zip.file(folder+app+".md",md); var h=""+title+""; h+="

"+title+"

"; var hc=md.replace(/&/g,"&").replace(//g,">"); hc=hc.replace(/^### (.+)$/gm,"

$1

"); hc=hc.replace(/^## (.+)$/gm,"

$1

"); hc=hc.replace(/^# (.+)$/gm,"

$1

"); hc=hc.replace(/\*\*(.+?)\*\*/g,"$1"); hc=hc.replace(/\n{2,}/g,"

"); h+="

"+hc+"

Generated by PantheraHive BOS
"; zip.file(folder+app+".html",h); zip.file(folder+"README.md","# "+title+"\n\nGenerated by PantheraHive BOS.\n\nFiles:\n- "+app+".md (Markdown)\n- "+app+".html (styled HTML)\n"); } zip.generateAsync({type:"blob"}).then(function(blob){ var a=document.createElement("a"); a.href=URL.createObjectURL(blob); a.download=app+".zip"; a.click(); URL.revokeObjectURL(a.href); if(lbl)lbl.textContent="Download ZIP"; }); }; document.head.appendChild(sc); } function phShare(){navigator.clipboard.writeText(window.location.href).then(function(){var el=document.getElementById("ph-share-lbl");if(el){el.textContent="Link copied!";setTimeout(function(){el.textContent="Copy share link";},2500);}});}function phEmbed(){var runId=window.location.pathname.split("/").pop().replace(".html","");var embedUrl="https://pantherahive.com/embed/"+runId;var code='';navigator.clipboard.writeText(code).then(function(){var el=document.getElementById("ph-embed-lbl");if(el){el.textContent="Embed code copied!";setTimeout(function(){el.textContent="Get Embed Code";},2500);}});}