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

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

AI Sales Script Generator: Comprehensive Marketing Strategy

This document outlines a comprehensive marketing strategy for the "AI Sales Script Generator," focusing on target audience analysis, channel recommendations, a messaging framework, and key performance indicators (KPIs).


1. Target Audience Analysis

Understanding who benefits most from an AI Sales Script Generator is crucial for effective marketing. We've identified primary and secondary target audiences, along with their key characteristics and pain points.

1.1 Primary Target Audience: Sales Leadership & Management

  • Roles:

* VP of Sales, Sales Directors, Sales Managers

* Head of Sales Enablement

* Business Owners (SMEs)

  • Company Size: Small to Enterprise-level organizations with sales teams ranging from 5 to 500+ representatives.
  • Industries: SaaS, B2B Services, Financial Services, Real Estate, Automotive, Healthcare, Education, Technology, and any industry relying heavily on outbound sales or customer interaction.
  • Pain Points:

* Inconsistent Messaging: Sales teams struggle to maintain a unified, on-brand message across all reps.

* Low Conversion Rates: Existing scripts are generic, leading to poor engagement and low conversion.

* High Ramp-up Time: New sales reps take too long to become proficient due to lack of effective training materials and scripts.

* Inefficient Script Creation: Manual script generation is time-consuming and lacks data-driven optimization.

* Difficulty Handling Objections: Reps struggle with common objections, leading to lost deals.

* Lack of Personalization at Scale: Inability to personalize outreach for diverse customer segments.

* Measuring Script Effectiveness: No clear way to track which scripts perform best.

  • Goals:

* Increase overall sales revenue and conversion rates.

* Improve sales team efficiency and productivity.

* Standardize and optimize sales messaging.

* Reduce sales rep ramp-up time and improve training effectiveness.

* Empower reps with data-driven, objection-handling strategies.

* Scale sales operations effectively.

1.2 Secondary Target Audience: Individual Sales Representatives (SDRs/BDRs/Account Executives)

  • Roles: Sales Development Representatives, Business Development Representatives, Account Executives, Inside Sales Reps.
  • Pain Points:

* Writer's Block: Difficulty crafting compelling and personalized opening lines or follow-up emails.

* Fear of Rejection: Lack of confidence in their current scripts and ability to handle objections.

* Time Constraints: Spending too much time crafting individual messages instead of selling.

* Lack of Effective Tools: Relying on generic templates or outdated scripts.

* Performance Pressure: Under constant pressure to hit quotas and improve call/email effectiveness.

  • Goals:

* Improve personal sales performance and hit quotas.

* Increase confidence in sales interactions.

* Save time on script creation and focus on selling.

* Access to proven, high-converting scripts.

* Learn effective objection handling techniques.


2. Channel Recommendations

To effectively reach our target audiences, a multi-channel approach integrating digital and traditional strategies is recommended.

2.1 Digital Marketing Channels

  • LinkedIn (Organic & Paid):

* Organic: Thought leadership content, sharing case studies, engaging in sales-focused groups, personal branding for founders/execs.

* Paid: Targeted ads based on job title (Sales Manager, VP Sales), industry, company size, and interests (sales enablement, CRM software).

  • Content Marketing (Blog, Ebooks, Whitepapers):

* Blog: SEO-optimized articles on "How to improve cold call conversions," "Best sales script templates," "AI in sales enablement," "Objection handling techniques."

* Ebooks/Whitepapers: Gated content like "The Ultimate Guide to AI-Powered Sales Scripts," "Boosting Sales Productivity with Automation."

  • Search Engine Marketing (SEM - Google Ads):

* Target keywords: "AI sales script generator," "sales script software," "cold call script builder," "objection handling AI," "sales enablement tools," "personalized sales scripts."

* Competitor bidding: Target keywords related to competitors or alternative solutions.

  • Email Marketing:

* Nurture sequences for leads generated from content downloads or webinar registrations.

* Cold outreach campaigns to targeted lists (purchased or scraped via LinkedIn Sales Navigator, respecting GDPR/CAN-SPAM).

* Newsletters with sales tips, product updates, and case studies.

  • Webinars & Online Demos:

* Host live webinars demonstrating the product's capabilities, focusing on specific use cases (e.g., "AI for Cold Calling Mastery," "Automating Follow-up Sequences").

* Offer personalized 1-on-1 demos for qualified leads.

  • SaaS Review Sites (G2, Capterra, Software Advice):

* Optimize product listings with detailed features, benefits, and competitive differentiators.

* Encourage customer reviews to build social proof and improve rankings.

  • Social Media (Twitter, Facebook Groups):

* Engage in relevant sales and marketing communities.

* Share snippets of blog content, customer testimonials, and quick tips.

* Run targeted video ads showcasing the product's ease of use and impact.

2.2 Partnership & Offline Channels

  • Integrations & Partnerships:

* Integrate with popular CRMs (Salesforce, HubSpot), sales engagement platforms (Salesloft, Outreach), and communication tools (Zoom, Slack).

* Co-marketing with complementary SaaS providers (e.g., lead generation tools, sales training platforms).

  • Industry Conferences & Trade Shows:

* Sponsor or exhibit at major sales enablement, revenue operations, and B2B marketing conferences (e.g., Dreamforce, Sales 3.0 Conference).

* Networking events to connect with sales leaders.

  • Referral Programs:

* Incentivize existing customers to refer new users.

* Offer affiliate programs for sales consultants or agencies.


3. Messaging Framework

Our messaging will emphasize the core value proposition, key benefits, and unique selling points, tailored to address the specific pain points of our target audience.

3.1 Core Value Proposition

"The AI Sales Script Generator empowers sales teams to achieve higher conversion rates and unparalleled efficiency by instantly generating personalized, industry-specific, and objection-handling scripts optimized for every stage of the sales funnel."

3.2 Key Benefits

  • Increased Conversion Rates: Leverage AI to create data-driven scripts that resonate with prospects and close more deals.
  • Unrivaled Efficiency: Automate script creation, freeing up sales leaders and reps to focus on strategic selling.
  • Consistent & On-Brand Messaging: Ensure every sales interaction reflects your brand's voice and value proposition.
  • Scalable Personalization: Generate unique, personalized scripts for diverse customer segments at scale.
  • Master Objection Handling: Equip reps with intelligent, pre-validated responses to common objections.
  • Reduced Sales Ramp-up Time: Accelerate new rep productivity with a library of proven, easy-to-access scripts.
  • Data-Driven Optimization: Continuously learn and improve scripts based on real-world performance data.

3.3 Unique Selling Points (USPs)

  • Truly AI-Powered & Adaptive: Not just templates, but dynamic scripts generated by advanced AI, adapting to context and industry nuances.
  • Industry-Specific Language: Generates scripts with domain-specific terminology and common pain points for various sectors.
  • Multi-Channel Script Generation: Supports cold calls, emails, LinkedIn messages, demo outlines, and follow-up sequences.
  • Integrated Objection Handling: Proactively suggests effective responses for common and complex objections within the script flow.
  • Performance Analytics & A/B Testing: Built-in tools to track script effectiveness and optimize over time (future feature emphasis).
  • User-Friendly Interface: Intuitive design for quick script generation and customization.

3.4 Pain-Solution Messaging Examples

  • Pain: "Are your sales reps struggling with inconsistent messaging, leading to lost opportunities?"

* Solution: "Our AI Sales Script Generator ensures every rep delivers a unified, high-impact message, boosting conversions and brand consistency."

  • Pain: "Tired of spending hours crafting generic scripts that don't convert?"

* Solution: "Instantly generate hyper-personalized, data-optimized scripts for any scenario, saving time and closing more deals."

  • Pain: "Do new hires take months to become productive due to a lack of effective sales communication training?"

* Solution: "Cut ramp-up time in half by providing new reps with AI-generated, objection-proof scripts from day one."

3.5 Call to Action (CTA) Examples

  • "Generate Your First AI Sales Script - Start Free Trial"
  • "Book a Demo: See How AI Can Transform Your Sales Team"
  • "Download Our Guide: The Future of Sales with AI Scripts"
  • "Get a Custom Quote for Your Sales Team"

4. Key Performance Indicators (KPIs)

To measure the success of our marketing efforts, we will track a range of KPIs across different stages of the customer journey.

4.1 Awareness & Engagement KPIs

  • Website Traffic: Unique visitors, page views, time on site.
  • Content Engagement: Blog post reads, ebook downloads, webinar attendance rates.
  • Social Media Reach & Engagement: Impressions, likes, shares, comments, follower growth.
  • Brand Mentions: Tracking mentions across the web and social media.
  • Search Engine Rankings: Position for target keywords.

4.2 Lead Generation & Acquisition KPIs

  • Lead Volume: Number of MQLs (Marketing Qualified Leads) and SQLs (Sales Qualified Leads).
  • Lead Conversion Rate: Percentage of website visitors who become leads; percentage of MQLs who become SQLs.
  • Cost Per Lead (CPL): Total marketing spend divided by the number of leads generated.
  • Demo Bookings: Number of scheduled product demonstrations.
  • Free Trial Sign-ups: Number of users initiating a free trial.

4.3 Sales & Revenue KPIs

  • Customer Acquisition Cost (CAC): Total sales and marketing expenses divided by the number of new customers acquired.
  • Customer Lifetime Value (LTV): Estimated revenue a customer will generate over their relationship with the product.
  • Conversion Rate (Trial to Paid): Percentage of free trial users who convert to a paid subscription.
  • Sales Cycle Length: Time from lead generation to deal closure.
  • Average Revenue Per User (ARPU) / Average Contract Value (ACV).
  • Churn Rate: Percentage of customers who cancel their subscription.

4.4 Product & Customer Success KPIs (Influenced by Marketing)

  • User Activation Rate: Percentage of users who complete key onboarding steps.
  • Feature Usage: Adoption rates of core script generation and optimization features.
  • Customer Satisfaction (CSAT) / Net Promoter Score (NPS): Feedback on product experience and likelihood to recommend.
  • Referral Rate: Number of new customers acquired through referrals.

This comprehensive strategy provides a robust framework for launching and scaling the "AI Sales Script Generator" in the market. By focusing on our target audience's needs, leveraging appropriate channels, crafting compelling messages, and meticulously tracking performance, we aim to achieve significant market penetration and drive substantial growth.

gemini Output

As part of the "AI Sales Script Generator" workflow, we have generated a comprehensive set of conversion-optimized sales scripts tailored for various stages of your sales cycle. These scripts are designed to be professional, engaging, and highly effective in securing interest, advancing opportunities, and closing deals, specifically within the B2B AI/SaaS solution space.


AI Sales Script Deliverable

1. Introduction & Overview

This document provides meticulously crafted sales script templates covering the most critical customer interactions: cold calls, product demonstrations, follow-ups, and strategic objection handling. Each script is designed with a focus on value proposition, customer pain points, and clear calls to action, incorporating industry-specific language relevant to AI and SaaS solutions.

The goal is to equip your sales team with powerful, adaptable tools that drive higher conversion rates and foster stronger customer relationships.

2. Core Principles for Conversion-Optimized Scripts

Before diving into the specific scripts, here are the foundational principles applied to ensure maximum effectiveness:

  • Value-Centric: Focus immediately on the benefits and solutions your AI product provides, not just features.
  • Problem-Solution Fit: Clearly articulate how your AI solution addresses common industry pain points.
  • Concise & Clear: Get straight to the point, avoiding jargon where possible, and maintaining clarity.
  • Discovery-Oriented: Incorporate open-ended questions to encourage dialogue and uncover specific customer needs.
  • Call-to-Action (CTA) Focused: Every script drives towards a clear, next logical step.
  • Empathetic & Professional: Acknowledge challenges and maintain a respectful, confident tone.
  • Adaptable: Provide frameworks that can be personalized for specific prospects and situations.

3. Conversion-Optimized Sales Script Templates

3.1. Cold Call Script: Introducing Your AI Solution

Objective: Secure a discovery call or a brief demo to understand the prospect's needs better.

Target Persona: Decision-makers or key stakeholders experiencing operational inefficiencies, data overload, or a need for advanced automation in their business.

Scenario: Initial outreach to a prospect who may or may not be familiar with your company.


Script Structure:

  • Opening (Permission & Value Hook): Get permission to speak and immediately offer a compelling reason to listen.
  • Problem Identification (Connect to Prospect): Briefly state common pain points your AI solves.
  • Solution Snapshot (Brief & Intriguing): Hint at how your AI addresses these.
  • Discovery Question (Engage & Qualify): Open-ended question to gauge interest and uncover specifics.
  • Call to Action (Next Step): Propose a low-commitment next step.
  • Close: Professional wrap-up.

Example Script:

(Sales Rep): "Hi [Prospect Name], this is [Your Name] from [Your Company]. We specialize in AI-driven [Specific AI Function, e.g., predictive analytics, automated content generation, intelligent process automation] for businesses like yours. I know you're busy, so I'll be brief – is now still a good time for a quick 30-second introduction?"

(Prospect): "Sure, go ahead." / "What's this about?"

(Sales Rep): "Great, thanks. We often hear from leaders in [Prospect's Industry, e.g., marketing, finance, operations] that they struggle with [Pain Point 1, e.g., sifting through massive datasets for actionable insights / scaling personalized customer interactions / manual, repetitive tasks that drain resources]. Our AI solution, [Your Product Name], helps companies [Key Benefit 1, e.g., uncover hidden opportunities 3x faster / automate content creation to scale campaigns / reduce operational costs by X%].

"I was curious, how are you currently handling [Pain Point related to your solution, e.g., your data analysis challenges / scaling your content production / optimizing your operational workflows] at [Prospect's Company Name]?"

(Prospect): [Responds with their current situation/challenges]

(Sales Rep): "That makes sense. Many of our clients faced similar issues before implementing [Your Product Name]. It sounds like there might be a strong alignment with how we've helped others in your space.

"Instead of going into detail now, would it be worth scheduling a quick 15-minute call next week to explore if [Your Product Name] could help you achieve similar improvements? We could dive deeper into your specific challenges and see if our AI is a fit. How does [Day] at [Time] look for you?"

(Prospect): [Agrees/Suggests alternative/Raises objection]

(Sales Rep): "Perfect, I'll send over a calendar invite right away. Looking forward to speaking then, [Prospect Name]. Have a great day!"


3.2. Demo Script Framework: Showcasing Your AI Solution

Objective: Engage the prospect with a tailored demonstration of your AI solution, highlighting how it directly addresses their identified pain points, and move to the next stage (e.g., pilot, proposal, technical deep-dive).

Target Persona: Technical and business decision-makers.

Scenario: Post-discovery call, where specific needs have been identified.


Script Structure:

  • Recap & Agenda (Set Expectations): Briefly remind them of their challenges and outline the demo's focus.
  • Discovery (Re-confirm & Prioritize): Ask a quick question to ensure alignment and prioritize what to show.
  • Solution Walkthrough (Problem-Solution-Benefit): Tailored demo, focusing on specific features that solve their problems.
  • Interactive Engagement (Ask Questions): Pause and solicit feedback.
  • Value Reinforcement (Quantify & Qualify): Summarize benefits, potentially using numbers or case studies.
  • Next Steps (Clear CTA): Propose a logical progression.
  • Q&A & Close: Address questions and confirm the next action.

Example Framework:

(Sales Rep): "Welcome, [Prospect Name] and team! Thanks for joining. Based on our last conversation, we noted that [Prospect's Company Name] is particularly focused on [Key Pain Point 1, e.g., improving data accuracy for financial forecasting] and [Key Pain Point 2, e.g., automating repetitive compliance checks].

"Today, my goal is to show you how our AI platform, [Your Product Name], directly addresses these challenges, and demonstrate how it can help you achieve [Desired Outcome 1] and [Desired Outcome 2]. Does that sound like a good agenda for you?"

(Prospect): "Yes, perfect."

(Sales Rep): "Great. Before we dive in, are there any other pressing areas or specific features you're hoping to see today, or any new challenges that have emerged since our last chat?"

(Prospect): [Responds]

(Sales Rep): "Understood. Let's start by looking at how [Your Product Name]'s [Specific AI Feature 1, e.g., predictive analytics module] can transform your financial forecasting. As you can see here, the AI ingests [Data Source] and uses [Algorithm Type] to generate [Output, e.g., highly accurate, real-time forecasts]. This directly addresses your need for improved data accuracy, allowing your team to [Benefit 1, e.g., make more informed strategic decisions] and [Benefit 2, e.g., reduce forecasting errors by up to X%]."

(Sales Rep - throughout demo): "What are your initial thoughts on this feature?" / "How do you see this impacting your current workflow for [Specific Task]?" / "Does this align with how you envisioned solving [Pain Point]?"

(Sales Rep - after demonstrating relevant features): "So, to recap, with [Your Product Name], you can expect to [Key Benefit 1, e.g., drastically reduce manual data processing], [Key Benefit 2, e.g., gain deeper insights from your unstructured data], and ultimately [Overarching Business Impact, e.g., accelerate your digital transformation journey]. We've seen clients in your industry achieve [Specific Result, e.g., a 20% increase in operational efficiency within the first six months]."

"Given what you've seen today, what are your thoughts on how [Your Product Name] could fit into your current strategy at [Prospect's Company Name]?"

(Prospect): [Provides feedback/questions]

(Sales Rep): "Excellent questions. To ensure we cover all your team's needs, I recommend a follow-up session with [Relevant Team Member, e.g., your Head of IT] to dive into the technical integration aspects. Alternatively, we could prepare a tailored proposal outlining the ROI based on your specific requirements. Which of those options would be most beneficial for you right now?"

(Prospect): [Chooses a next step]

(Sales Rep): "Fantastic. I'll get that scheduled/prepared. Thank you again for your time today, [Prospect Name]. We're excited about the potential to partner with you."


3.3. Follow-up Script: Nurturing and Advancing the Deal

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

Target Persona: All stakeholders involved in the decision-making process.

Scenario: Post-demo, post-meeting, or after sending a proposal.


Script Structure:

  • Reference Point: Remind them of the last interaction.
  • Value Add/Next Step Reminder: Provide something new or reiterate the next agreed-upon step.
  • Open-Ended Question: Encourage a response and uncover any new thoughts or obstacles.
  • Clear Call to Action: Suggest a specific, easy-to-take next step.

Example Email Script (Post-Demo):

Subject: Following Up: Your AI Journey with [Your Product Name] - [Prospect's Company Name]

Body:

Hi [Prospect Name],

It was a pleasure speaking with you and your team on [Date of Demo]. I genuinely enjoyed our discussion about how [Your Product Name]'s [Key Feature, e.g., intelligent automation capabilities] could help [Prospect's Company Name] [Key Benefit 1, e.g., streamline your document processing] and [Key Benefit 2, e.g., improve data quality for decision-making].

As a quick recap, I've attached [Relevant Resource, e.g., a brief summary of the key points we covered / a case study from a similar client in your industry / the proposed next steps document].

Since our meeting, have any further questions come up, or have you had a chance to discuss the potential impact of [Your Product Name] internally?

I'm keen to ensure you have all the information you need. Would you be open to a quick 10-minute call later this week to answer any outstanding questions, or perhaps discuss the next steps, such as [Proposed Next Step, e.g., scheduling a technical deep-dive / preparing a customized proposal]?

Please let me know what works best for you.

Best regards,

[Your Name]

[Your Title]

[Your Company]

[Your Contact Information]


3.4. Objection Handling Framework: Navigating Challenges

Objective: Address prospect concerns professionally and effectively, turning potential roadblocks into opportunities to reinforce value and build trust.

Framework:

  1. Listen Actively: Let the prospect finish their statement without interrupting.
  2. Acknowledge & Empathize: Validate their concern to show you understand.
  3. Clarify & Isolate: Ask questions to fully understand the root of the objection. Is it a real concern or a misunderstanding?
  4. Respond & Reframe: Provide a solution, reframe the objection, or pivot back to value.
  5. Confirm & Close: Check if their concern has been addressed and move forward.

Common Objections & Example Responses (AI/SaaS Specific):

Objection 1: "It's too expensive / We don't have the budget for AI right now."

  • Acknowledge: "I understand, budget is always a critical consideration, especially with new technology investments."
  • Clarify: "To help me understand, are you concerned about the initial investment, or the overall long-term cost of ownership? And what kind of ROI are you typically looking for with a solution like this?"
  • Respond & Reframe: "Many of our clients initially felt the same. However, when we break down the costs, they often find that the ROI from [Your Product Name]'s ability to [Key Benefit 1, e.g., automate X hours of manual work / reduce errors by Y% / generate Z more leads] far outweighs the investment. For instance, [Client X] saw a [Specific ROI, e.g., 200% ROI in the first year] through [Specific Mechanism]. What if we explored a phased implementation or a pilot program to demonstrate the value before a full commitment?"
  • Confirm & Close: "Does that help address your concerns about the investment, or are there other budget considerations we should discuss?"

Objection 2: "We're happy with our current system / We don't see the immediate need for AI."

  • Acknowledge: "That's perfectly fair. Many companies have established systems in place that work well."
  • Clarify: "Could you tell me a bit more about what you like most about your current setup for [Specific Task related to your AI]? And what are some of the limitations or areas where you feel there's still room for improvement, even if minor?"
  • Respond & Reframe: "It's not about replacing what works, but enhancing it. Our AI solution, [Your Product Name], often integrates seamlessly with existing platforms like [Common System, e.g., Salesforce, SAP] to augment your capabilities, not disrupt them. For example, it can [Specific Enhancement, e.g., provide predictive insights that your current system can't / automate the data entry that currently consumes X hours]. This allows your team to focus on higher-value tasks, leveraging your existing investment even further."
  • Confirm & Close: "Would exploring how our AI could complement your current systems be of interest, rather than replacing them entirely?"

Objection 3: "We're not sure if our data is ready for AI / It sounds too complex to implement."

  • Acknowledge: "That's a very common and valid concern, especially with new AI implementations. Data readiness and integration complexity are often top of mind."
  • Clarify: "Could you elaborate on what specific data readiness challenges you foresee, or what makes you concerned about the complexity? Is it about data quality, volume, or the integration process itself?"
  • Respond & Reframe: "We understand that data can be messy, and implementation can seem daunting. That's why [Your Company Name] provides [Specific Support/Feature, e.g., dedicated data onboarding specialists / robust data cleansing tools / pre-built connectors for common platforms]. Our implementation process is designed to be highly structured and hands-on, guiding you every step of the way, from data assessment to full operationalization. Our goal is to make AI adoption as smooth and painless as possible, ensuring your team is fully supported."
  • Confirm & Close: "Does knowing about our structured support and data handling capabilities help ease your concerns about complexity and data readiness?"

Objection 4: "I need to discuss this with my team / I need to get buy-in from others."

  • Acknowledge: "Absolutely, this is a strategic decision, and it's essential to involve all key stakeholders."
  • Clarify: "Who else on your team typically gets involved in evaluating new technology solutions like [Your Product Name]? And what information or specific aspects would be most important for them to see or understand to gain their buy-in?"
  • Respond & Reframe: "To make that internal discussion as productive as possible, I'd be happy to [Offer Support, e.g., provide a tailored executive summary / join a follow-up call with your team to answer their questions directly / share a relevant case study that addresses their specific concerns]. My goal is to equip you with everything you need to build a strong business case internally."
  • Confirm & Close: "Would it be helpful for me to send over some additional resources specifically for [Specific Stakeholder, e.g., your finance team / your Head of Operations], or perhaps schedule a brief follow-up call where I can address their questions directly?"

4. Customization Guide for Your Sales Team

These scripts are powerful templates. To maximize their effectiveness, encourage your sales team to:

  • Personalize: Research each prospect
gemini Output

As a professional AI Sales Script Generator, we are pleased to present the refined and formatted output designed to empower your sales team with conversion-optimized, industry-specific scripts. This deliverable outlines the methodology and provides structured templates for various sales scenarios, ensuring your communications are impactful, relevant, and drive results.


AI Sales Script Generator: Your Blueprint for Conversion-Optimized Sales Conversations

This comprehensive guide serves as your strategic framework for generating high-impact sales scripts across critical touchpoints: cold calls, product/service demonstrations, follow-ups, and robust objection handling. Our methodology focuses on combining AI-driven insights with your specific business context to produce scripts that resonate with your target audience and accelerate your sales cycle.


1. Core Principles of Conversion-Optimized Sales Scripts

Our script generation process is built upon fundamental principles proven to drive conversions and build stronger customer relationships:

  • Deep Audience Understanding: Scripts are tailored to the specific pain points, goals, and language of your target persona.
  • Clear, Concise Value Proposition: Every script highlights the unique benefits and ROI your solution offers, directly addressing customer needs.
  • Strategic Call to Action (CTA): Each script ends with a clear, low-friction next step, guiding the prospect smoothly through the sales funnel.
  • Proactive Objection Handling: Common objections are anticipated and addressed thoughtfully, building trust and overcoming barriers before they fully arise.
  • Industry-Specific Relevance: Language, examples, and case studies are integrated to speak directly to the nuances and challenges of your industry.
  • Adaptability & Personalization: Scripts are designed with flexibility, allowing your sales team to personalize interactions while maintaining core messaging.
  • Emotional Intelligence: Scripts aim to build rapport, demonstrate empathy, and foster genuine connections.

2. Input Requirements for Tailored Script Generation

To generate the most effective and customized scripts, the AI requires specific inputs from your team. The more detailed the information, the more precise and impactful the scripts will be:

  • A. Company & Product/Service Details:

* Company Name & Brief Description: What you do and your core mission.

* Product/Service Name(s) & Key Features: Specific offerings.

* Unique Selling Proposition (USP): What makes you different/better?

* Primary Benefits & ROI: How do you solve problems and add value?

* Success Metrics/Case Studies (Optional): Quantifiable results your customers have achieved.

  • B. Target Audience Profile:

* Ideal Customer Profile (ICP): Industry, company size, revenue, geographic location.

* Buyer Persona(s): Job titles, responsibilities, daily challenges, goals, motivations, budget authority.

* Current Solutions/Alternatives: What are they using now (or considering)?

  • C. Industry Specifics:

* Key Industry Terminology/Jargon: Words and phrases common in your target industry.

* Current Industry Trends/Challenges: What are the major shifts or pain points in this sector?

* Regulatory Considerations (if applicable): Any specific compliance or legal aspects.

  • D. Common Objections:

* List of Frequent Objections: Price, "no budget," "not a priority," "happy with current solution," "send me information," "call me back later," etc.

* Your Current Best Responses (if any): What has worked well for your team?

  • E. Desired Outcome/Call to Action (CTA):

* For Cold Calls: Schedule a demo, qualify interest, gather information.

* For Demos: Next meeting, trial signup, proposal request.

* For Follow-ups: Re-engage, confirm next steps, close.


3. Detailed Script Templates and Frameworks

Below are the structured templates for each sales scenario. These are designed to be dynamic and will be populated with your specific inputs to create ready-to-use scripts.

3.1. Cold Call Script

Objective: To capture attention, qualify interest, and secure a next step (e.g., a discovery call or demo).

Key Components:

  • Permission-Based Opening: Respectful and sets a professional tone.
  • Intrigue & Value Statement: Briefly state who you are and a relevant, high-level benefit.
  • Problem/Pain Point Identification: Connect your solution to a common industry challenge.
  • Brief Solution & Benefit: How you help, without overwhelming.
  • Proof/Social Proof (Optional): A quick, relevant example.
  • Low-Friction Call to Action (CTA): Propose a small, easy next step.
  • Objection Handling (Integrated): Prepare for initial pushback.

Example Structure (Placeholder Content):


[Your Company Name] - Cold Call Script Template

Target Persona: [e.g., Head of IT, Marketing Director, Operations Manager]

Industry: [e.g., SaaS, Healthcare, Manufacturing]

Product/Service: [e.g., AI-driven CRM, IoT Monitoring Solution]

(0:00-0:15) Opening & Permission:

  • "Hi [Prospect Name], this is [Your Name] from [Your Company Name]. I know you weren't expecting my call, but I saw your role as [Prospect's Title] at [Prospect's Company] and had a quick question about [Relevant Industry Challenge / Goal]."
  • "Is now still a bad time, or do you have 30 seconds for me to explain why I called?"

(0:15-0:45) Value Proposition & Pain Point:

  • "Great. We work with companies like yours in the [Industry] sector, and often hear that [Common Pain Point 1, e.g., 'integrating disparate data sources'] or [Common Pain Point 2, e.g., 'optimizing operational efficiency'] is a significant challenge."
  • "Our [Product/Service] helps [Specific Benefit 1, e.g., 'streamline data integration by X%'] and [Specific Benefit 2, e.g., 'reduce manual oversight by Y hours per week']."

(0:45-1:15) Qualification & Impact:

  • "I don't know if [Pain Point] is something you're currently facing, but if it is, we've helped companies like [Similar Company or Type] achieve [Quantifiable Result, e.g., 'a 15% reduction in data processing time']."

(1:15-1:45) Low-Friction CTA:

  • "Instead of taking up more of your time now, would it make sense for a brief 15-minute call next week to explore if this could be relevant to your team at [Prospect's Company]? We could dive a bit deeper into how [Product/Service] specifically addresses [Pain Point]."
  • "How does [Day] at [Time] or [Day] at [Time] look for you?"

(Integrated Objection Handling - see Section 3.4 for full framework):

  • Objection: "I'm busy right now, just send me an email."
  • Response: "I certainly can, [Prospect Name]. To ensure I send you something truly relevant to [Prospect's Company], could you tell me quickly, what's your primary focus regarding [Area of Pain Point] right now?"

3.2. Demo Script

Objective: To showcase the value of your solution, address specific prospect needs, and move them towards the next stage of the buying process.

Key Components:

  • Discovery & Needs Confirmation: Reiterate understanding of their challenges.
  • Personalized Introduction: Connect demo to their specific use case.
  • Feature-Benefit Walkthrough: Show relevant features, immediately linking them to benefits.
  • Interactive Engagement: Ask questions, invite participation.
  • Objection Handling (Integrated): Address concerns as they arise.
  • Value Reinforcement & Summary: Recap key benefits.
  • Clear Next Steps: Define what happens next.

Example Structure (Placeholder Content):


[Your Company Name] - Demo Script Template

Target Persona: [e.g., IT Manager, Marketing VP]

Industry: [e.g., FinTech, E-commerce]

Product/Service: [e.g., Fraud Detection Platform, Personalization Engine]

(0:00-0:05) Welcome & Agenda Setting:

  • "Welcome, [Prospect Name]! Thanks for taking the time today. Based on our previous conversation, my understanding is you're looking to [Prospect's Primary Goal, e.g., 'reduce false positives in transaction monitoring'] and address challenges with [Key Challenge, e.g., 'manual review processes']. Does that still accurately capture your main priorities?"
  • "Today, I'd like to show you how our [Product/Service] specifically tackles these issues, focus on [Key Feature 1] and [Key Feature 2], and leave plenty of time for your questions. Sound good?"

(0:05-0:15) Discovery & Personalization:

  • "Before we dive in, could you share a bit more about [Specific Aspect of their Challenge, e.g., 'the current volume of transactions requiring manual review'] or [Specific Metric, e.g., 'the impact of current false positives on customer experience']?"
  • "This will help me tailor the demo even further to your specific needs."

(0:15-0:40) Feature-Benefit Walkthrough (Interactive):

  • Transition: "Great, thank you for that context. Let's start with [Key Feature 1, e.g., 'our AI-driven anomaly detection engine']."
  • Show: [Demonstrate Feature 1]
  • Explain Benefit: "As you can see, this allows your team to [Specific Benefit of Feature 1, e.g., 'automatically flag suspicious activity with 98% accuracy'], which means [Impact on Prospect, e.g., 'your analysts can focus on high-risk cases instead of sifting through noise']."
  • Engage: "How does that compare to your current process for [related task]?" or "Can you see how this would impact [relevant team/metric]?"
  • Repeat for other key features, always linking back to prospect's pain points and goals.

(0:40-0:50) Addressing Objections & Q&A:

  • "Are there any questions on what we've covered so far?"
  • [Proactively address potential objections based on prior conversations or common concerns, e.g., "A common question at this point is about integration with existing systems. Our platform offers [Integration Details]..."]

(0:50-0:55) Value Reinforcement & Summary:

  • "To recap, with [Product/Service], you can expect to [Recap Benefit 1], [Recap Benefit 2], and ultimately achieve [Overarching Goal, e.g., 'a more secure and efficient transaction environment']."

(0:55-1:00) Clear Next Steps:

  • "Based on what we've discussed, I recommend [Next Step, e.g., 'a follow-up call with your VP of Operations to discuss implementation details'] or [e.g., 'setting up a pilot program for your team']."
  • "What do you think is the best next step for us to explore this further?"
  • "Are you available on [Date] or [Date] for that?"

3.3. Follow-Up Script

Objective: To maintain momentum, reinforce value, address outstanding questions, and guide the prospect to the next stage.

Key Components:

  • Contextual Opening: Remind them of the previous interaction.
  • Value Reinforcement: Reiterate a key benefit or insight.
  • Addressing Potential Roadblocks: Pre-empt common delays.
  • Clear Call to Action: What do you want them to do next?
  • Urgency/Scarcity (Optional): If applicable and genuine.

Example Structure (Placeholder Content):


[Your Company Name] - Follow-Up Script Template

Scenario: Post-Demo Follow-Up (Email & Call)

Target Persona: [e.g., Project Manager, Business Owner]

Industry: [e.g., Construction, Retail]

Product/Service: [e.g., Project Management Software, Inventory Optimization]

A. Email Follow-Up Script:

Subject: Following Up: Your [Company Goal] with [Your Company Name]

"Hi [Prospect Name],

It was great connecting with you on [Date of Last Interaction] to discuss how [Your Company Name]'s [Product/Service] can help [Prospect's Company] achieve [Key Goal discussed, e.g., 'streamlined project delivery' or 'reduced inventory waste'].

I particularly recall our conversation about [Specific Pain Point or Challenge discussed] and how [Specific Feature/Benefit] could directly address that, leading to [Quantifiable Impact].

Since our chat, I've been thinking about [Relevant Industry Insight/News or Acknowledgment of their current situation], and I believe [Your Solution] could offer even greater value in that context.

Do you have any initial thoughts or questions that have come up since our demo?

To help you share this information internally, I've attached [Relevant Resource, e.g., 'a summary of our discussion points' or 'a brief case study from a similar client'].

Would you be open to a brief 15-minute call next [Day] at [Time] or [Time] to answer any questions and discuss potential next steps, such as [Suggested Next Step, e.g., 'a deeper dive into the reporting features' or 'connecting with your finance team']?

Looking forward to hearing from you.

Best regards,

[Your Name]

[Your Title]

[Your Company Name]

[Your Contact Info]"


B. Call Follow-Up Script:

(0:00-0:15) Opening & Context:

  • "Hi [Prospect Name], this is [Your Name] from [Your Company Name]. I'm following up on our conversation from [Date of Last Interaction] about [Key Topic, e.g., 'your
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);}});}