gamma-core-workflow-a

jeremylongshore's avatarfrom jeremylongshore

Implement core Gamma workflow for AI presentation generation.Use when creating presentations from prompts, documents,or structured content with AI assistance.Trigger with phrases like "gamma generate presentation", "gamma AI slides","gamma from prompt", "gamma content to slides", "gamma automation".

⭐939stars🔀114forks📁View on GitHub🕐Updated Jan 11, 2026

When & Why to Use This Skill

This Claude skill automates the creation of professional presentations by integrating Gamma's AI capabilities directly into your workflow. It solves the problem of manual slide design and content structuring by allowing users to transform simple text prompts, long-form documents (PDF, Markdown, Docx), or structured outlines into visually engaging, ready-to-use presentations instantly. It is designed to streamline the transition from raw ideas to polished visual assets, significantly reducing the time spent on formatting and layout.

Use Cases

  • Prompt-to-Presentation: Instantly generate a complete, professional slide deck from a single topic description, including AI-generated images and speaker notes.
  • Document Conversion: Automatically transform research papers, project reports, or meeting notes into concise presentation slides while extracting key insights.
  • Structured Outline Generation: Build custom decks by providing a specific slide-by-slide outline, ensuring precise control over the narrative flow and content.
  • Batch Pipeline Processing: Execute high-volume presentation generation for multiple topics or clients simultaneously using the automated batch processing capability.
namegamma-core-workflow-a
description|
allowed-toolsRead, Write, Edit
version1.0.0
licenseMIT
authorJeremy Longshore <jeremy@intentsolutions.io>

Gamma Core Workflow A: AI Presentation Generation

Overview

Implement the core workflow for generating presentations using Gamma's AI capabilities from various input sources.

Prerequisites

  • Completed gamma-sdk-patterns setup
  • Understanding of async patterns
  • Content ready for presentation

Instructions

Step 1: Prompt-Based Generation

import { GammaClient } from '@gamma/sdk';

const gamma = new GammaClient({ apiKey: process.env.GAMMA_API_KEY });

async function generateFromPrompt(topic: string, slides: number = 10) {
  const presentation = await gamma.presentations.generate({
    prompt: topic,
    slideCount: slides,
    style: 'professional',
    includeImages: true,
    includeSpeakerNotes: true,
  });

  return presentation;
}

// Usage
const deck = await generateFromPrompt('Introduction to Machine Learning', 8);
console.log('Generated:', deck.url);

Step 2: Document-Based Generation

async function generateFromDocument(filePath: string) {
  const document = await fs.readFile(filePath, 'utf-8');

  const presentation = await gamma.presentations.generate({
    sourceDocument: document,
    sourceType: 'markdown', // or 'pdf', 'docx', 'text'
    extractKeyPoints: true,
    maxSlides: 15,
  });

  return presentation;
}

Step 3: Structured Content Generation

interface SlideOutline {
  title: string;
  points: string[];
  imagePrompt?: string;
}

async function generateFromOutline(outline: SlideOutline[]) {
  const presentation = await gamma.presentations.generate({
    slides: outline.map(slide => ({
      title: slide.title,
      content: slide.points.join('\n'),
      generateImage: slide.imagePrompt,
    })),
    style: 'modern',
  });

  return presentation;
}

Step 4: Batch Generation Pipeline

async function batchGenerate(topics: string[]) {
  const results = await Promise.allSettled(
    topics.map(topic =>
      gamma.presentations.generate({
        prompt: topic,
        slideCount: 5,
      })
    )
  );

  return results.map((r, i) => ({
    topic: topics[i],
    status: r.status,
    url: r.status === 'fulfilled' ? r.value.url : null,
    error: r.status === 'rejected' ? r.reason.message : null,
  }));
}

Output

  • AI-generated presentations from prompts
  • Document-to-presentation conversion
  • Structured content transformation
  • Batch processing capability

Error Handling

Error Cause Solution
Generation Timeout Complex prompt Reduce slide count or simplify
Content Too Long Document exceeds limit Split into sections
Rate Limit Too many requests Implement queue system
Style Not Found Invalid style name Check available styles

Resources

Next Steps

Proceed to gamma-core-workflow-b for presentation editing and export workflows.