Member Junction
    Preparing search index...

    Action that generates presentations using Gamma's Generations API Creates presentations, documents, or social media posts from text input

    // Generate a basic presentation
    await runAction({
    ActionName: 'Gamma Generate Presentation',
    Params: [{
    Name: 'InputText',
    Value: 'Create a presentation about climate change impacts and solutions'
    }]
    });

    // Generate with specific format and options
    await runAction({
    ActionName: 'Gamma Generate Presentation',
    Params: [{
    Name: 'InputText',
    Value: 'Quarterly sales report with revenue trends and projections'
    }, {
    Name: 'Format',
    Value: 'presentation'
    }, {
    Name: 'TextMode',
    Value: 'generate'
    }, {
    Name: 'NumCards',
    Value: 10
    }, {
    Name: 'ThemeName',
    Value: 'Modern'
    }]
    });

    // Generate and export as PDF
    await runAction({
    ActionName: 'Gamma Generate Presentation',
    Params: [{
    Name: 'InputText',
    Value: 'Product launch announcement'
    }, {
    Name: 'ExportAs',
    Value: 'pdf'
    }]
    });

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Executes the Gamma presentation generation

      Parameters

      • params: RunActionParams

        The action parameters containing:

        • InputText: Text to generate content from (required, 1-750,000 characters)
        • Format: Output format - 'presentation' (default), 'document', 'social'
        • TextMode: How to process text - 'generate' (default), 'condense', 'preserve'
        • ThemeName: Visual theme name (optional)
        • NumCards: Number of slides/cards (1-75, depends on tier)
        • CardSplit: How to split cards - 'auto' (default) or 'inputTextBreaks'
        • AdditionalInstructions: Custom guidance for content generation (optional)
        • ExportAs: Export format - 'pdf' or 'pptx' (optional)
        • TextAmount: Amount of text - 'auto', 'minimal', 'moderate', 'detailed'
        • TextTone: Tone of text - 'auto', 'professional', 'casual', 'educational'
        • TextAudience: Target audience description (optional)
        • TextLanguage: Language for content (e.g., 'en', 'es', 'fr')
        • ImageSource: Image source - 'auto', 'web', 'ai', 'none'
        • ImageModel: AI image model - 'dall-e-3', 'sd-3-large', 'firefly-3'
        • ImageStyle: AI image style - 'auto', 'photographic', 'digital-art', 'illustration'
        • PollStatus: Poll for completion status (default: true)
        • PollInterval: Seconds between status checks (default: 5)
        • MaxPollTime: Maximum seconds to poll (default: 300)

      Returns Promise<ActionResultSimple>

      Generation results with Gamma URL and status