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

AI-Generated Sales Script Deliverable: Conversion-Optimized Frameworks

This document presents a suite of conversion-optimized sales script frameworks, generated by our AI, tailored to various stages of the sales cycle. These scripts are designed to be highly effective, incorporating best practices for engagement, value articulation, and objection handling, with the capability to adapt to your specific industry and customer profile.


1. Introduction: Your AI-Powered Sales Advantage

Welcome to your AI-generated sales script package. Our sophisticated AI analyzes your business context, target audience, and sales objectives to produce dynamic, high-impact scripts. This deliverable provides foundational templates for critical sales interactions: cold calls, product demos, follow-ups, and objection handling. Each framework is built for maximum conversion potential, designed to sound natural, professional, and persuasive.

Key Benefits of These AI-Generated Scripts:


2. Core Principles of Conversion-Optimized Script Generation

The AI adheres to several core principles to ensure each script maximizes its potential for success:


3. Sales Script Frameworks & Examples

Below are detailed frameworks for different sales scenarios. For demonstration purposes, we will use a sample industry: SaaS for B2B Marketing Automation targeting Marketing Directors/VPs at mid-market companies.

3.1. Cold Call Script: Discovery & Qualification

Objective: Secure a discovery call or demo by identifying a relevant pain point and offering a clear next step.

Scenario: Calling a Marketing Director at a company struggling with lead nurturing and campaign ROI.

text • 2,223 chars
**[SALES REP NAME]**: "Hi [PROSPECT NAME], this is [YOUR NAME] from [YOUR COMPANY]. I know I'm calling out of the blue, but I noticed [PROSPECT COMPANY] is doing some impressive work in [SPECIFIC AREA - e.g., content marketing], and I was curious about your approach to lead nurturing and campaign ROI."

**[PAUSE FOR RESPONSE]**

**[SALES REP NAME]**: "Many Marketing Directors we speak with are finding it challenging to connect the dots between their content efforts and tangible revenue, often due to fragmented tools or manual processes in their marketing automation. Does that resonate with any challenges you're currently facing?"

**[PAUSE FOR RESPONSE - LISTEN ACTIVELY, NOTE KEYWORDS]**

**[SALES REP NAME]**:
*   **IF YES/INTERESTED:** "That's exactly what we help companies like yours with. We provide an AI-powered marketing automation platform that streamlines lead segmentation, personalizes campaign delivery, and provides clear ROI attribution, typically boosting conversion rates by X% and reducing manual effort by Y hours/week. I'm not looking to sell you anything right now, but I'd love to share a few insights and see if there's a potential fit. Would you be open to a brief, 15-minute chat sometime this week to explore how other marketing leaders are tackling these issues?"
*   **IF NEUTRAL/MILDLY INTERESTED:** "I understand. Even if it's not a top priority today, many find value in understanding emerging best practices. We've helped companies like [SIMILAR COMPANY A] and [SIMILAR COMPANY B] significantly improve their lead-to-opportunity conversion rates. Would you be open to a quick 10-minute call later this week to see if any of our insights could be valuable to your team?"
*   **IF BUSY/RESISTANT:** "I completely respect your time. What would be a better time for me to reach out, or perhaps I could send over a quick email outlining the 3 key ways we help marketing teams optimize their automation efforts? It might be useful to review when you have a moment."

**[SECURE NEXT STEP - e.g., Calendar Invite, Permission to Email]**

**[SALES REP NAME]**: "Great, I'll send that invite/email right over. Thanks so much for your time, [PROSPECT NAME]. Looking forward to speaking soon."
Sandboxed live preview

Marketing Strategy: AI Sales Script Generator

This comprehensive marketing strategy outlines the approach to effectively launch and position the AI Sales Script Generator, targeting key decision-makers and sales professionals. It covers target audience analysis, recommended channels, a robust messaging framework, and key performance indicators (KPIs) to measure success.


1. Target Audience Analysis

Understanding our ideal customer is paramount. The AI Sales Script Generator caters to organizations and individuals seeking to optimize their sales processes through technology.

1.1 Primary Target Segments

  • Sales Leadership (VPs of Sales, Sales Directors, Sales Managers):

* Pain Points: Inconsistent team performance, high SDR/BDR churn, difficulty scaling sales operations, long training cycles for new reps, lack of data-driven insights into script effectiveness, ensuring message consistency across diverse teams.

* Goals: Increase conversion rates, reduce sales cycle length, improve team efficiency and productivity, empower reps with effective tools, achieve predictable revenue growth.

* Industries: B2B SaaS, Tech, Financial Services, Real Estate, Consulting, Healthcare, IT Services, Manufacturing.

  • Sales Development Representatives (SDRs) & Business Development Representatives (BDRs):

* Pain Points: Script fatigue, lack of confidence in cold outreach, difficulty personalizing at scale, struggling with common objections, feeling unprepared for varied prospect responses.

* Goals: Improve call confidence, increase connect rates, book more qualified meetings, reduce rejection, master objection handling, achieve individual quotas faster.

  • Small to Medium-sized Business (SMB) Owners/Founders:

* Pain Points: Limited resources for sales training/script development, need for quick market entry, reliance on a small sales team, desire for a competitive edge, difficulty converting leads efficiently.

* Goals: Rapidly scale sales efforts, achieve higher ROI on sales activities, professionalize sales outreach, compete with larger organizations, increase revenue without extensive overhead.

  • Sales Enablement Specialists/Trainers:

* Pain Points: Time-consuming script creation and updates, difficulty in standardizing best practices, lack of tools for personalized training materials, inability to track script effectiveness comprehensively.

* Goals: Streamline content creation, empower sales teams with up-to-date resources, improve training efficacy, ensure consistent messaging across the sales force.

1.2 Psychographics & Buying Triggers

  • Innovators/Early Adopters: Actively seeking new technologies to gain a competitive advantage.
  • Results-Oriented: Prioritize tools that demonstrate clear ROI, efficiency gains, and measurable improvements in sales metrics.
  • Data-Driven: Value insights and analytics that inform strategy and optimize performance.
  • Growth-Focused: Companies experiencing or planning for rapid expansion, requiring scalable sales solutions.
  • Frustrated with Status Quo: Organizations struggling with traditional, static sales scripts and low conversion rates.

2. Channel Recommendations

A multi-channel approach will be employed to reach our diverse target audience effectively, focusing on digital platforms where sales professionals and leaders congregate.

2.1 Digital Marketing Channels

  • Content Marketing:

* Blog Posts: "How AI is Revolutionizing Sales Scripting," "5 Ways AI Boosts Cold Call Conversions," "Mastering Objection Handling with AI," "Personalize Sales Outreach at Scale."

* Whitepapers/E-books: "The Definitive Guide to AI-Powered Sales Scripts," "Maximizing SDR Performance with Intelligent Scripting."

* Case Studies: Highlight successful implementations with measurable results (e.g., "Company X Increased Demo Bookings by 30% with AI Scripts").

* Infographics/Short Videos: Visually explain complex benefits and features for quick consumption.

  • Search Engine Optimization (SEO):

* Keyword Targeting: "AI sales script generator," "cold call script AI," "sales script optimization tool," "objection handling AI," "personalized sales scripts," "sales enablement AI."

* Local SEO: For specific regional sales teams, if applicable.

  • Paid Advertising (PPC):

* Google Ads: Target high-intent keywords for direct conversions.

* LinkedIn Ads: Precisely target Sales Managers, VPs of Sales, SDRs, and specific industries based on job titles, company size, and interests. Focus on lead generation forms and demo requests.

* Retargeting Campaigns: Re-engage website visitors who didn't convert.

  • Social Media Marketing:

* LinkedIn: Organic posts sharing insights, articles, success stories. Active participation in sales leadership and enablement groups.

* Twitter: Share industry news, thought leadership, quick tips.

* YouTube: Product demos, tutorials, "how-to" videos, customer testimonials.

  • Email Marketing:

* Nurture Sequences: For leads generated through content downloads or webinars, guiding them through the sales funnel.

* Lead Magnets: Offer "Free AI Sales Script Template Pack" or "Webinar: AI for Sales Success."

* Product Updates/Newsletters: Keep existing customers and interested prospects informed.

  • Webinars & Online Demos:

* Host live, interactive sessions demonstrating the product's capabilities and ROI.

* Partner with industry experts or CRM platforms for co-hosted events.

  • Podcast Sponsorships/Guest Appearances:

* Sponsor popular sales, B2B marketing, or tech podcasts.

* Pitch our CEO/Product Manager as a guest expert on "AI in Sales" or "Future of Sales Enablement."

2.2 Partnership & Offline Channels

  • Technology Partnerships:

* Integrate with leading CRM systems (Salesforce, HubSpot) and Sales Engagement Platforms (Salesloft, Outreach) to offer seamless workflows. Co-marketing efforts with these partners.

  • Industry Conferences & Trade Shows:

* Exhibit at major sales technology, SaaS, and industry-specific events (e.g., Dreamforce, Sales Leadership Summit).

* Seek speaking opportunities to showcase thought leadership.

  • Referral Programs:

* Incentivize existing customers and partners to refer new business.


3. Messaging Framework

Our messaging will be clear, benefit-driven, and tailored to resonate with the specific pain points and aspirations of our target audience.

3.1 Core Value Proposition

"Empower your sales teams with AI-driven, conversion-optimized scripts for every sales scenario, ensuring consistency, personalization, and higher close rates across your entire organization."

3.2 Key Selling Points (Pillars)

  1. AI-Powered Conversion Optimization: Leverage advanced AI to generate scripts proven to convert, incorporating best practices and predictive analytics.
  2. Unmatched Time Efficiency: Drastically reduce script development time from hours to minutes, allowing sales leaders to focus on strategy and reps on selling.
  3. Consistency & Scalability: Standardize winning messaging across your entire sales force, ensuring every rep delivers high-quality, on-brand communications.
  4. Hyper-Personalization at Scale: Tailor scripts to individual prospects, industries, and specific buying stages, making every interaction feel unique and relevant.
  5. Master Objection Handling: Instantly generate effective, data-backed responses to common objections, equipping reps with confidence and closing power.
  6. Industry-Specific Language: Ensure scripts speak the precise language of your target industry, building credibility and rapport faster.
  7. Continuous Improvement: Gain insights into script performance, allowing for data-driven iteration and optimization over time.

3.3 Messaging by Audience Segment

  • For Sales Leaders (VPs, Directors, Managers):

* Focus: ROI, team performance, scalability, reduced training costs, data-driven insights.

* Message: "Drive predictable revenue growth and elevate your team's performance with AI-powered scripts that ensure consistency, reduce ramp-up time, and deliver measurable ROI."

  • For SDRs/BDRs:

* Focus: Confidence, effectiveness, ease of use, personalization, reduced rejection.

* Message: "Boost your confidence and book more meetings with AI-generated scripts that personalize every outreach, handle objections flawlessly, and lead to better conversations."

  • For SMB Owners:

* Focus: Competitive edge, quick implementation, cost-effectiveness, revenue growth.

* Message: "Level up your sales game without the enterprise budget. Our AI Sales Script Generator gives your small team a powerful competitive edge, driving conversions and accelerating growth."

  • For Sales Enablement Specialists:

* Focus: Streamlined content, standardized best practices, effective training.

* Message: "Revolutionize your sales enablement with an AI tool that rapidly generates, updates, and optimizes scripts, ensuring your sales force always has the most effective messaging at their fingertips."

3.4 Tone & Call to Action (CTA)

  • Tone: Professional, innovative, authoritative, results-oriented, empowering.
  • Primary CTAs:

* "Request a Demo"

* "Start Your Free Trial"

* "See How AI Transforms Your Sales"

* "Download Our Whitepaper: The Future of Sales Scripting"

* "Get Your Custom Script Example"


4. Key Performance Indicators (KPIs)

Measuring the effectiveness of our marketing strategy is crucial for continuous optimization.

4.1 Awareness KPIs

  • Website Traffic: Unique visitors, page views, traffic sources.
  • Brand Mentions: Social media mentions, press coverage.
  • Social Media Reach & Impressions: Across LinkedIn, Twitter, etc.
  • SEO Rankings: Position for target keywords.

4.2 Lead Generation KPIs

  • Number of Leads Generated: MQLs (Marketing Qualified Leads), SQLs (Sales Qualified Leads).
  • Conversion Rate: Website visitors to leads, content downloads to leads.
  • Cost Per Lead (CPL): Across various channels.
  • Demo Requests: Number of successful demo bookings.
  • Free Trial Sign-ups: Number of users initiating a trial.
  • Lead Quality Score: Assessment of lead fit and intent.

4.3 Customer Acquisition KPIs

  • Customer Acquisition Cost (CAC): Total marketing and sales cost divided by new customers.
  • Number of New Customers: Monthly/quarterly growth.
  • Win Rate: Percentage of qualified opportunities that convert to paying customers.
  • Sales Cycle Length: Time from initial contact to closed-won.
  • Trial-to-Paid Conversion Rate: Percentage of free trial users who convert to paying subscribers.
  • Average Contract Value (ACV): Initial revenue generated per customer.

4.4 Engagement & Retention KPIs (Future Focus)

  • User Adoption Rate: Percentage of active users utilizing the script generation features.
  • Feature Usage Rate: How often specific script types (cold call, objection handling) are generated.
  • Customer Lifetime Value (CLTV): Projected revenue a customer will generate over their relationship with the product.
  • Churn Rate: Percentage of customers discontinuing service.
  • Customer Satisfaction (CSAT)/Net Promoter Score (NPS): Feedback on product experience.

3.2. Demo Script Outline: Value-Driven Presentation

Objective: Showcase the most relevant features and benefits of the solution, addressing the prospect's specific pain points discovered during qualification, and building towards a clear next step.

Scenario: Presenting the AI-powered Marketing Automation Platform after a successful cold call.

  1. Welcome & Agenda (5 min):

* Greeting: "Welcome, [PROSPECT NAME]! Thanks for taking the time today."

* Recap: "Based on our last conversation, my understanding is you're looking to [PROSPECT'S PRIMARY PAIN POINT 1, e.g., improve lead nurturing efficiency] and [PROSPECT'S PRIMARY PAIN POINT 2, e.g., gain clearer ROI attribution for campaigns]. Is that still accurate?"

* Agenda: "Today, I want to show you how our platform directly addresses these challenges. We'll cover:

* How our AI streamlines lead segmentation and personalization.

* Real-time campaign performance tracking and attribution.

* A quick look at the intuitive user interface.

* And then we'll discuss potential next steps. Does that sound good?"

  1. Discovery & Deeper Dive (10 min):

* Open-ended Questions: "Before we dive in, could you tell me a bit more about your current process for [SPECIFIC PAIN POINT - e.g., segmenting leads]?" "What's the biggest bottleneck you face when trying to attribute revenue to a specific campaign?"

* Active Listening: Take notes, confirm understanding, and tailor the demo narrative.

  1. Solution Showcase - Problem/Solution/Benefit (20 min):

* Focus on 2-3 Core Features (relevant to prospect's pain points):

* Feature 1: AI-Powered Lead Segmentation & Personalization Engine

Problem:* "Many teams struggle with manual segmentation, leading to generic messaging."

Solution:* "Our AI automatically analyzes prospect behavior and firmographic data to create hyper-targeted segments, allowing for truly personalized email flows and content recommendations."

Benefit:* "This means higher engagement rates, improved lead quality, and significantly less manual effort for your team. Imagine reducing the time spent on segmentation by X%."

* Feature 2: Multi-Touch Campaign Attribution Dashboard

Problem:* "Connecting specific marketing activities to revenue is often a black box."

Solution:* "Our platform provides a comprehensive, real-time dashboard that tracks every touchpoint, from initial ad click to closed-won deal, giving you clear ROI on every campaign."

Benefit:* "You'll gain unparalleled visibility into what's working, allowing you to optimize your budget and prove marketing's impact directly to the executive team."

Live Demonstration: Keep it concise, interactive, and focused on how it solves their* problems.

  1. Addressing Concerns & Q&A (5 min):

* "What are your initial thoughts on what you've seen so far?"

* "Are there any areas we didn't cover that are top of mind for you?"

* "Are there any potential obstacles you foresee in implementing a solution like this?"

  1. Next Steps & Close (5 min):

* Recap Value: "So, to recap, we've seen how [YOUR COMPANY]'s platform can help you [reiterate primary benefits, e.g., streamline lead nurturing, personalize campaigns, and provide clear ROI attribution]."

* Propose Clear Next Step: "Based on our conversation, I recommend we schedule a follow-up call with your [relevant team member, e.g., Head of Sales] to discuss integration possibilities and explore a tailored proposal. How does [Date/Time] look for you?"

* Alternative CTA: "Alternatively, I can send you a customized summary of today's demo with relevant case studies. Would that be helpful?"

* Confirm: "Great, I'll send over the meeting invite/email right away."

3.3. Follow-Up Script: Nurturing & Re-engagement

Objective: Maintain engagement after an initial meeting or demo, provide additional value, and move the prospect closer to a decision.

Scenario: Following up after a demo of the Marketing Automation Platform.

Option A: Post-Demo Follow-Up (Email - Day 1)

Subject: Following up on our [Your Company] discussion + Resources for [Prospect Company]

Hi [PROSPECT NAME],

It was a pleasure speaking with you yesterday/on [DATE] and demonstrating how [YOUR COMPANY]'s AI-powered marketing automation platform can help [PROSPECT COMPANY] with [REITERATE KEY PAIN POINTS, e.g., improving lead nurturing efficiency and gaining clearer ROI attribution].

I've attached/linked to a few resources that I think you'll find particularly valuable:

  • [LINK TO RELEVANT CASE STUDY]: See how [Similar Company] achieved X% increase in MQLs using our platform.
  • [LINK TO FEATURE DEEP DIVE/WHITEPAPER]: A deeper dive into our multi-touch attribution model.
  • [LINK TO PERSONALIZED SUMMARY/RECORDING]: A quick summary of the key points we discussed today.

My goal is to ensure you have everything you need to evaluate [YOUR COMPANY] effectively.

Do you have any initial questions or thoughts after reviewing these materials? I'm available for a quick chat if anything comes to mind.

Best regards,

[YOUR NAME]

[YOUR TITLE]

[YOUR COMPANY]

[YOUR PHONE]

Option B: Value-Add Follow-Up (Email - Week 2-3, if no response)

Subject: [Your Company] + [Relevant Industry Insight] for [Prospect Company]

Hi [PROSPECT NAME],

Hope you're having a productive week.

I was thinking about our conversation regarding [PROSPECT COMPANY]'s goals for [e.g., optimizing lead management], and I came across this article/report on [RELEVANT INDUSTRY TREND/STATISTIC - e.g., "The State of B2B Marketing Automation in 2024"]. It highlights how companies are leveraging AI to overcome [specific challenge related to prospect's pain point].

I specifically thought of you because it reinforces how critical [YOUR SOLUTION'S CORE VALUE - e.g., integrated attribution] is becoming for marketing leaders.

No pressure at all, but if you've had a chance to consider our platform further, I'd be happy to answer any lingering questions or even arrange a quick call to address any new challenges that have arisen.

Would you be open to a brief 10-minute check-in call sometime next week?

Best regards,

[YOUR NAME]

[YOUR TITLE]

[YOUR COMPANY]

[YOUR PHONE]

3.4. Objection Handling Framework: Anticipate & Overcome

Objective: Address common objections gracefully and effectively, turning potential roadblocks into opportunities to reinforce value.

Principle: Listen > Acknowledge > Probe > Isolate > Respond > Confirm

Common Objection Categories & AI-Generated Responses (Industry: SaaS for B2B Marketing Automation):

  1. "It's too expensive." / "We don't have the budget."

* Listen & Acknowledge: "I understand, budget is always a key consideration, especially with new investments."

* Probe: "To help me understand better, what specifically about the pricing is a concern? Is it the upfront cost, or the ongoing investment?" or "What kind of ROI are you typically looking for when considering new marketing technology?"

* Isolate: "So, if we could demonstrate a clear path to generating X% more qualified leads or Y% in cost savings, would the investment still be the primary hurdle?"

* Respond: "Many of our clients initially had similar budget concerns. However, they found that our platform's ability to [SPECIFIC BENEFIT, e.g., automate lead qualification and provide granular ROI data] led to a rapid return on investment, often within [TIMEFRAME]. For example, [Client X] reduced their cost per lead by 25% in the first 6 months. We can also explore flexible payment terms or a phased rollout to align with your budget cycles."

* Confirm: "Does that address your concern about the investment?"

  1. "We're happy with our current solution (e.g., HubSpot, Marketo)."

* Listen & Acknowledge: "That's great to hear you have a solution in place; continuity is important."

* Probe: "What aspects of [Current Solution] are you most happy with? And are there any areas where you feel it could be more effective, particularly around [SPECIFIC PAIN POINT YOUR SOLUTION SOLVES BETTER, e.g., truly personalized AI-driven segmentation or cross-channel attribution]?"

* Isolate: "So, if our platform could significantly enhance your current capabilities in [specific area] and provide a measurable uplift in [specific metric], would you be open to exploring how it could complement or elevate your existing tech stack?"

* Respond: "We often find that while existing platforms are strong, they may lack specialized AI capabilities for deep personalization or granular, multi-touch attribution that marketers increasingly need. Our platform isn't always about replacing; it's about augmenting and optimizing, allowing you to get even more out of your current investments by filling those critical gaps and providing a competitive edge in lead engagement and ROI clarity."

* Confirm: "Does that make sense?"

  1. "I need to talk to my team/boss."

* Listen & Acknowledge: "Absolutely, that's

gemini Output

We are pleased to present the refined and formatted output for the AI Sales Script Generator. This powerful tool is designed to equip your sales teams with conversion-optimized, industry-specific scripts for every stage of the sales cycle, ensuring consistency, professionalism, and higher success rates.


AI Sales Script Generator: Your Blueprint for Sales Success

Our AI Sales Script Generator crafts dynamic, persuasive sales scripts tailored to your specific needs, industry, and target audience. Leveraging advanced AI, it optimizes language for maximum impact, addressing common pain points and guiding prospects seamlessly towards conversion.

Key Features & Benefits

  • Conversion-Optimized Language: Scripts are designed with proven psychological triggers and sales methodologies to maximize engagement and drive desired actions.
  • Industry-Specific Customization: Incorporates terminology, challenges, and solutions relevant to your industry, making scripts resonate deeply with prospects.
  • Multi-Scenario Coverage: Generates scripts for diverse sales interactions, from initial outreach to closing and follow-up.
  • Dynamic Objection Handling: Provides pre-emptive and reactive strategies for common objections, empowering reps to navigate challenging conversations confidently.
  • Consistency & Scalability: Ensures a consistent, high-quality sales message across your entire team, easily scalable for growing organizations.
  • Time-Saving: Drastically reduces the time spent on script development and training, allowing sales teams to focus on selling.

Core Script Types Generated

The AI Sales Script Generator produces comprehensive scripts for the following critical sales scenarios:

  1. Cold Calls: Initial outreach scripts designed to capture attention, qualify leads, and secure the next step.
  2. Product/Service Demos: Structured guides for conducting compelling presentations that highlight value and address prospect needs.
  3. Follow-ups: Strategic messages for post-call, post-demo, and post-meeting communications to maintain momentum and re-engage prospects.
  4. Objection Handling: Dedicated frameworks and specific responses for common sales objections, integrated within scripts and as standalone resources.

Customization & Personalization Options

The generator allows for significant customization to ensure scripts are perfectly aligned with your unique sales process and brand voice:

  • Target Persona Details: Input information about your ideal customer (industry, role, pain points, goals).
  • Product/Service USPs: Define your unique selling propositions and key benefits.
  • Desired Call-to-Action (CTA): Specify the desired outcome (e.g., schedule a demo, sign up for a trial, close the deal).
  • Industry & Company Name: Ensures relevant jargon and branding.
  • Specific Campaign Goals: Tailor scripts for particular marketing campaigns or product launches.

Structure of a Generated Script (Detailed Example Format)

Each generated script will follow a clear, actionable structure, making it easy for your sales team to implement immediately. Below is an example of the detailed format you can expect for each script type.


1. Cold Call Script Example

Script Title: [Industry] - [Product/Service] Intro Call

Goal: To qualify the prospect and secure a follow-up meeting/demo.

Target Persona: [Specific Role, e.g., Head of IT, Marketing Director]

Key Selling Point(s): [e.g., Reduce operational costs by 20%, Increase lead conversion by 15%]


[SALES REP NAME]:

"Hi [PROSPECT NAME], this is [YOUR NAME] from [YOUR COMPANY]. How are you doing today?"

(Pause for response - if positive, proceed; if negative, acknowledge and pivot)

[SALES REP NAME]:

"Great to hear! The reason for my call is brief. We work with companies like [PROSPECT'S COMPANY TYPE/INDUSTRY] to help them [KEY BENEFIT 1, e.g., streamline their data management] and [KEY BENEFIT 2, e.g., reduce compliance risks]."

"I noticed that [PROSPECT'S COMPANY] is [SPECIFIC OBSERVATION ABOUT PROSPECT - e.g., expanding into new markets / recently launched a new product]. We've helped other companies in similar situations to [SPECIFIC RESULT/IMPACT, e.g., cut their IT spend by X% while improving system uptime]."

[SALES REP NAME] (Pain Point Question):

"Does [CHALLENGE RELATED TO KEY BENEFIT, e.g., managing disparate data sources] ever become a challenge for your team at [PROSPECT'S COMPANY]?"

(Listen actively for response)

[SALES REP NAME] (Value Proposition - If yes/interest shown):

"Many of our clients initially struggle with [REITERATE PAIN POINT]. Our [PRODUCT/SERVICE] provides [UNIQUE SOLUTION] which allows them to [SPECIFIC BENEFIT/OUTCOME]. For example, [BRIEF CASE STUDY/ANECDOTE - e.g., one of our clients, [SIMILAR COMPANY], saw a 25% reduction in manual data entry errors within the first quarter]."

[SALES REP NAME] (Call to Action):

"I know you're busy, and I don't want to take up too much of your time on an unsolicited call. Would you be open to a quick 15-minute virtual meeting next week, perhaps [DAY] or [DAY], to explore how we could potentially help [PROSPECT'S COMPANY] achieve similar results?"

[SALES REP NAME] (Objection Handling - if 'no time' or 'not interested'):

  • "No time now": "I understand completely. How about I send over a brief email with a couple of key points and my calendar link? That way, you can look it over when it's convenient for you."
  • "Not interested": "I appreciate your honesty. Could you share what specific challenges you're currently prioritizing? This would help me understand if we're truly not a fit, or if there's a different area where we might add value."

[SALES REP NAME] (Closing):

"Great, I'll send that over. What's the best email address for you?"

"Thank you for your time, [PROSPECT NAME]. Have a great day!"


2. Product/Service Demo Script Example

Script Title: [Industry] - [Product/Service] Demo Outline

Goal: To showcase relevant features, address prospect's specific needs, and secure a trial/next-stage meeting.

Prospect Needs Identified: [e.g., Improve reporting, Automate workflows, Reduce manual errors]


[SALES REP NAME] (Opening & Agenda Setting):

"Welcome, [PROSPECT NAME]! Thanks for taking the time today. My goal for this demo is to show you how [PRODUCT/SERVICE] can specifically address your need for [PROSPECT NEED 1] and [PROSPECT NEED 2], and how it can help you achieve [DESIRED OUTCOME]."

"We'll cover:

  1. A brief overview of [YOUR COMPANY] and our mission.
  2. A targeted demonstration of features relevant to [PROSPECT NEED 1] and [PROSPECT NEED 2].
  3. A quick Q&A session.
  4. Discuss next steps.

Does that sound good?"

[SALES REP NAME] (Discovery & Confirmation):

"Before we dive in, could you briefly reconfirm what success looks like for you in addressing [PROSPECT NEED 1]?"

(Listen and take notes, tailor demo accordingly)

[SALES REP NAME] (Demo Walkthrough - Feature-Benefit-Impact):

"Let's start with [FEATURE 1]. As you can see here, this allows you to [EXPLAIN HOW FEATURE WORKS]. The benefit for you is [BENEFIT LINKED TO PROSPECT NEED, e.g., significantly faster reporting creation]. This ultimately means [IMPACT, e.g., your team can make data-driven decisions in real-time, saving X hours per week]."

(Repeat for 2-3 key features, pausing for questions)

[SALES REP NAME] (Probing Questions during Demo):

"How do you currently handle [PROCESS RELATED TO FEATURE]?"

"Can you see how this would impact your team's workflow?"

"Does this align with what you were hoping to see?"

[SALES REP NAME] (Addressing Concerns/Objections during Demo):

  • "This looks complicated": "I understand it might seem like a lot at first glance. However, our intuitive interface and [TRAINING/SUPPORT] make adoption very smooth. In fact, many clients are up and running within [TIMEFRAME]."
  • "We already have a solution for that": "That's great you have a system in place. How effectively does it currently handle [SPECIFIC CHALLENGE FEATURE ADDRESSES]? Many of our clients come to us because their existing solutions lack [KEY DIFFERENTIATOR]."

[SALES REP NAME] (Q&A Session):

"We've covered quite a bit. What questions do you have for me about [PRODUCT/SERVICE] or anything we've discussed today?"

[SALES REP NAME] (Closing & Next Steps):

"Thank you for your engagement, [PROSPECT NAME]. Based on our conversation, I believe [PRODUCT/SERVICE] could be a significant asset for [PROSPECT'S COMPANY] by [REITERATE KEY BENEFIT 1] and [KEY BENEFIT 2]."

"My recommendation would be to [SUGGESTED NEXT STEP, e.g., set up a free trial for your team / schedule a follow-up with your finance department to discuss pricing]. How does that sound?"

[SALES REP NAME] (Confirmation):

"Great. I'll send over a summary email with what we discussed, a link to [RESOURCE], and a calendar invite for our next call."


3. Follow-up Script Example

Script Title: Post-Demo Follow-up Email

Goal: Reiterate value, address potential blockers, and confirm the next action.

Previous Interaction: Product Demo on [Date]


Subject: Following Up: [Your Company] & [Prospect's Company] - [Product/Service]

Hi [PROSPECT NAME],

It was a pleasure speaking with you yesterday/on [Date] and demonstrating how [PRODUCT/SERVICE] can help [PROSPECT'S COMPANY] achieve [KEY BENEFIT DISCUSSED, e.g., streamline your project management and enhance team collaboration].

I particularly enjoyed our discussion around [SPECIFIC POINT OF DISCUSSION, e.g., how our automation features could reduce your manual data entry by X%].

As promised, here are a few resources that might be helpful:

  • [Link to relevant case study/whitepaper]
  • [Link to product overview video]
  • [Link to pricing page, if applicable]

I'm confident that [PRODUCT/SERVICE] can deliver significant value by [REITERATE MAIN VALUE PROPOSITION].

Do you have any further questions since our demo, or anything else I can clarify for you?

[SALES REP NAME] (Call to Action):

"I've tentatively scheduled a brief 15-minute call for us on [SUGGESTED DATE] at [SUGGESTED TIME] to discuss any lingering questions and confirm the next steps. Please let me know if that time works, or if another time would be better."

[SALES REP NAME] (Alternative CTA if no response):

"If that time doesn't work, feel free to book directly on my calendar here: [LINK TO CALENDAR]"

Looking forward to hearing from you.

Best regards,

[YOUR NAME]

[Your Title]

[Your Company]

[Your Phone Number]

[Your Email]

[Your Website]


4. Objection Handling Frameworks

The AI will provide both integrated objection handling within scripts (as shown above) and standalone frameworks for common objections, empowering reps with adaptable responses.

General Objection Handling Framework (A.R.R.A.):

  1. Acknowledge: Show empathy and confirm you heard their concern. ("I understand that concern," "That's a valid point.")
  2. Reframe: Rephrase the objection to show you understand its underlying cause, or to shift perspective. ("Many clients initially feel that way, but what they find is...")
  3. Reassure/Respond: Provide a clear, concise answer, leveraging facts, testimonials, or case studies. ("Our [feature/process] directly addresses that by...", "In fact, [Client X] had a similar concern and now reports...")
  4. Ask/Redirect: Bring the conversation back on track with a question that moves them forward. ("Does that make sense?", "Given that, would you be open to exploring X?")

Example Objection: "It's too expensive."

[SALES REP NAME]:

"I completely understand that price is an important consideration, [PROSPECT NAME]. Many of our clients initially feel that way, especially when comparing us to [COMPETITOR/STATUS QUO]." (Acknowledge & Reframe)

"However, what they've consistently found is that while the initial investment might seem higher, the return on investment through [SPECIFIC BENEFITS - e.g., reduced operational costs, increased efficiency, higher revenue generation] far outweighs it. For example, [Client Y] saw a [X%] ROI within [Y months] primarily due to [KEY BENEFIT]." (Reassure/Respond with value)

"Could you share what budget you've allocated for a solution like this, and what the potential cost of not solving [PAIN POINT] is for your business?" (Ask/Redirect to value/cost of inaction)


Industry-Specific Language Integration

The AI Sales Script Generator is trained on vast datasets across various industries. When you input your industry (e.g., SaaS, Healthcare, Manufacturing, Financial Services), the AI will:

  • Adopt Relevant Terminology: Use jargon and phrasing common within that industry, building instant credibility.
  • Highlight Industry-Specific Pain Points: Focus on challenges unique to your sector (e.g., regulatory compliance in healthcare, supply chain optimization in manufacturing).
  • Reference Industry-Specific Success Metrics: Frame benefits in terms of metrics relevant to your industry (e.g., patient outcomes, production uptime, customer acquisition cost).
  • Cite Relevant Examples: Draw upon hypothetical or anonymized scenarios that resonate directly with industry professionals.

Best Practices & Tips for Using the Scripts

  • Personalize: Always customize the script with the prospect's name, company, and specific insights before each interaction.
  • Practice: Read the scripts aloud multiple times to internalize the flow and make it sound natural, not robotic.
  • Listen Actively: Use the script as a guide, not a rigid monologue. Be prepared to deviate and adapt based on the prospect's responses.
  • Focus on Value: Emphasize benefits and solutions to the prospect'
ai_sales_script_generator.txt
Download source file
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);}});}