Skip to content
Search prompts, tools, agents…

Prompt library

8,166 AI prompts, ready to copy

Search every prompt on the site directly, not just the articles. Each one links back to its guide with examples and tips.

8,166 prompts

Category 6: Refactoring & Legacy Code Modernization

Coding & Tech
Act as a Senior React Engineer. Refactor this legacy React Class Component into a modern React 18 Functional Component with Hooks and TypeScript.
Requirements:
- Replace `componentDidMount`, `componentDidUpdate`, and `componentWillUnmount` with `useEffect`.
- Replace class state with `useState` or `useReducer`.
- Preserve exact existing props interface and functional logic.

[INSERT CLASS COMPONENT HERE]

Category 8: Accessibility (a11y) & Design System Compliance

Coding & Tech
Write a fully accessible Accordion UI component in React and TypeScript.
Requirements:
- Implement appropriate ARIA attributes: `aria-expanded`, `aria-controls`, `aria-disabled`, `role="region"`.
- Keyboard interaction support: Arrow Up, Arrow Down, Home, End keys move focus across accordion headers.
- Space and Enter keys toggle expanded states.

Commercial Property Showcase Prompt

Property & Real Estate
Avatar: Professional, authoritative male avatar.
Voice: Clear, confident, informative tone.
Backgrounds: Professional photos of offices, common areas, exterior, and location map.

Script:

(Scene 1: Exterior of Commercial Building)
"Good day. I'm here to present an exceptional commercial opportunity at [Property Address], a prime location for your business's next chapter. Situated in the vibrant [Business District/Area Name], this property offers unparalleled visibility and accessibility."

(Scene 2: Interior Office Space - open plan)
"Step into these versatile commercial spaces, designed to foster productivity and collaboration. This [e.g., 5,000 sq ft] unit features [mention open-plan layouts, natural light, modern finishes, flexible partitioning options], ready to be customized to your specific needs."

(Scene 3: Common Areas/Amenities - conference room, lounge)
"Enhance your team's experience with superior building amenities, including [mention features like state-of-the-art conference rooms, comfortable lounge areas, high-speed internet infrastructure, ample parking, security]. We provide an environment where your business can thrive."

(Scene 4: Location Map/Local Infrastructure)
"Strategically positioned within [Business District/Area Name], this location offers immediate access to [mention major highways, public transportation hubs, nearby corporate parks, client base, retail amenities]. Proximity to [major city/hub] further boosts its appeal."

(Scene 5: Key Business Benefits)
"Investing in this property means investing in growth. Benefit from [mention specific advantages like high foot traffic, established business community, competitive lease terms, potential for expansion, tax incentives]. This is more than an office; it’s a strategic asset."

(Scene 6: Call to Action with avatar)
"Seize this remarkable opportunity to elevate your business presence. To discuss lease or purchase options, or to arrange a comprehensive tour, please reach out to [Your Name/Agency Name] at [Phone Number] or visit [Your Commercial Real Estate Website URL]. We are prepared to facilitate your success."

Prompt 1: Automated Customer Support Email Triage

AI Automation & Workflow
Role: Customer Support Triage AI.
Task: Analyze the incoming email body below and classify it into one category, assign a priority level, and extract key details.

Incoming Email:
"{{Email_Body}}"

Return JSON format only:
{
  "category": "Billing" | "Technical" | "Feature Request" | "General",
  "priority": "P1-Urgent" | "P2-High" | "P3-Medium" | "P4-Low",
  "sentiment": "Positive" | "Neutral" | "Negative" | "Frustrated",
  "summary": "1 sentence overview",
  "suggested_routing": "Department name"
}

Prompt 3: Cold Inbound Lead Personalization Draft

AI Automation & Workflow
Role: Sales Development Representative.
Task: Draft a personalized, 4-sentence reply to a prospect who requested a product demo.

Prospect Form Data:
Name: {{Lead_Name}}
Company: {{Company_Name}}
Industry: {{Industry}}
Primary Goal: {{Primary_Goal}}

Structure:
Sentence 1: Express enthusiasm for helping {{Company_Name}} achieve {{Primary_Goal}}.
Sentence 2: Mention a relevant benefit specifically for the {{Industry}} sector.
Sentence 3: Provide a calendar booking link.
Sentence 4: Short, low-friction closing question.

Prompt 4: Escalated Complaint Response Drafting

AI Automation & Workflow
Role: Customer Retention Manager.
Task: Draft an empathetic, solution-oriented email response to an unhappy customer.

Complaint Details:
Customer Name: {{Customer_Name}}
Issue Description: {{Issue_Description}}

Guidelines:
- Acknowledge the issue immediately with sincere empathy without admitting legal liability.
- State the direct step being taken to resolve the issue.
- Offer a compensation credit of $25 if appropriate.
- Keep the tone calm, professional, and reassuring.

Prompt 6: Out-of-Office Urgent Routing Responder

AI Automation & Workflow
Role: Automated Inbox Assistant.
Task: Evaluate an email received while the account owner is out of office.

Email Text:
"{{Email_Text}}"

Rule:
If the email contains urgent escalation keywords (e.g., "outage", "system down", "contract cancellation", "urgent deadline"), draft a referral email pointing to [email protected]. Otherwise, generate a standard OOO response indicating return on {{Return_Date}}. Output only the final draft email text.