get_automation_examples
Get AI automation examples tailored to your industry, detailing functionality, time savings, and revenue impact to inform your automation strategy.
Instructions
Get real examples of AI automations for a specific industry, including what they do, time saved, and revenue impact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| industry | Yes | The business industry to get examples for (e.g., 'dentists', 'restaurants', 'real-estate') |
Implementation Reference
- src/server.ts:62-93 (registration)Registration of the 'get_automation_examples' tool via server.tool(), with industry parameter schema and handler function.
server.tool( "get_automation_examples", "Get real examples of AI automations for a specific industry, including what they do, time saved, and revenue impact.", { industry: z.string().describe( "The business industry to get examples for (e.g., 'dentists', 'restaurants', 'real-estate')" ), }, async ({ industry }) => { const slug = industry.toLowerCase().replace(/\s+/g, "-"); const data = industries[slug] || findClosestIndustry(slug); if (!data) { const allIndustries = Object.values(industries) .map((i) => `- ${i.name} → ${i.pageUrl}`) .join("\n"); return { content: [ { type: "text" as const, text: `I don't have specific examples for "${industry}" yet, but here are the industries I cover:\n\n${allIndustries}\n\nMany of these automations apply across industries. For a personalized assessment, book a free call: ${BOOKING_URL}`, }, ], }; } const examples = formatExamples(data); return { content: [{ type: "text" as const, text: examples }], }; } ); - src/server.ts:70-92 (handler)Handler function for get_automation_examples: normalizes industry name, looks up data in industries dict, calls formatExamples() to build output, or returns fallback with list of available industries.
async ({ industry }) => { const slug = industry.toLowerCase().replace(/\s+/g, "-"); const data = industries[slug] || findClosestIndustry(slug); if (!data) { const allIndustries = Object.values(industries) .map((i) => `- ${i.name} → ${i.pageUrl}`) .join("\n"); return { content: [ { type: "text" as const, text: `I don't have specific examples for "${industry}" yet, but here are the industries I cover:\n\n${allIndustries}\n\nMany of these automations apply across industries. For a personalized assessment, book a free call: ${BOOKING_URL}`, }, ], }; } const examples = formatExamples(data); return { content: [{ type: "text" as const, text: examples }], }; } - src/server.ts:65-69 (schema)Input schema for get_automation_examples: requires an 'industry' string parameter describing the business industry.
{ industry: z.string().describe( "The business industry to get examples for (e.g., 'dentists', 'restaurants', 'real-estate')" ), }, - src/server.ts:304-332 (helper)formatExamples() helper function that builds the formatted markdown string of automation examples for a given IndustryData object.
function formatExamples(data: IndustryData): string { let output = `# AI Automation Examples for ${data.name}\n\n`; output += `Here are proven automations that ${data.name.toLowerCase()} are using right now:\n\n`; for (let i = 0; i < data.automations.length; i++) { const auto = data.automations[i]; output += `## ${i + 1}. ${auto.name}\n\n`; output += `**What it does:** ${auto.description}\n\n`; output += `**Time saved:** ${auto.timesSaved}\n\n`; } output += `## Overall Impact for ${data.name}\n\n`; output += `- **Average time saved:** ${data.avgTimeSaved}\n`; output += `- **Revenue impact:** ${data.avgRevenuImpact}\n\n`; output += `## Common Pain Points This Solves\n\n`; for (const pp of data.painPoints) { output += `- ${pp}\n`; } output += `\n`; output += `## Want This for Your Business?\n\n`; output += `- **Full industry guide:** ${data.pageUrl}\n`; output += `- **Free AI Readiness Quiz:** ${GRADER_URL}\n`; output += `- **Book a free strategy call:** ${BOOKING_URL}\n\n`; output += `---\n*Powered by [EasyAiFlows](${SITE_URL}) — AI automation built by an entrepreneur, for entrepreneurs.*`; return output; } - src/server.ts:97-175 (helper)findClosestIndustry() helper function that resolves aliases and fuzzy-matches industry slugs to find the closest matching industry data.
function findClosestIndustry(slug: string): IndustryData | null { const aliases: Record<string, string> = { dental: "dentists", dentist: "dentists", restaurant: "restaurants", cafe: "restaurants", "coffee-shop": "restaurants", heating: "hvac", "air-conditioning": "hvac", plumbing: "hvac", realtor: "real-estate", "real-estate-agent": "real-estate", realty: "real-estate", gym: "fitness-studios", "fitness-studio": "fitness-studios", "fitness-center": "fitness-studios", crossfit: "fitness-studios", yoga: "fitness-studios", pilates: "fitness-studios", barbershop: "barbershops", barber: "barbershops", "nail-salon": "nail-salons", nails: "nail-salons", "med-spa": "med-spas", medspa: "med-spas", "medical-spa": "med-spas", aesthetics: "med-spas", chiropractor: "chiropractors", chiropractic: "chiropractors", insurance: "insurance-agents", "insurance-agent": "insurance-agents", mortgage: "mortgage-brokers", "mortgage-broker": "mortgage-brokers", lending: "mortgage-brokers", photographer: "photographers", photography: "photographers", "event-planner": "event-planners", "event-planning": "event-planners", wedding: "event-planners", cleaning: "cleaning-services", "cleaning-service": "cleaning-services", "maid-service": "cleaning-services", janitorial: "cleaning-services", landscaper: "landscapers", landscaping: "landscapers", "lawn-care": "landscapers", "auto-repair-shop": "auto-repair", mechanic: "auto-repair", automotive: "auto-repair", "pet-groomer": "pet-groomers", "pet-grooming": "pet-groomers", grooming: "pet-groomers", daycare: "daycares", childcare: "daycares", "child-care": "daycares", preschool: "daycares", church: "churches", ministry: "churches", nonprofit: "nonprofits", "non-profit": "nonprofits", ngo: "nonprofits", charity: "nonprofits", foundation: "nonprofits", }; const resolved = aliases[slug]; if (resolved && industries[resolved]) { return industries[resolved]; } // Fuzzy match: check if slug is contained in any key for (const [key, data] of Object.entries(industries)) { if (key.includes(slug) || slug.includes(key)) { return data; } } return null; }