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

    Properties

    Methods

    Constructors

    Properties

    AuthorizesCaller: boolean

    True when the action authorizes its caller itself, so a public entry point such as the RunAction mutation may run it for an authenticated user without an MJ: Action Authorizations link. Set it only on an action that either checks an authorization the caller must hold, or reads and writes only with the caller's own permissions. Leave it false for an action that acts with more authority than its caller, or that reaches data or sends messages the caller chooses but could not otherwise reach.

    The engine reads the marker only from the class that runs, never from its parent classes. A subclass that overrides a marked action must declare the marker again.

    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