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

    Accessors

    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.

    Accessors

    • get SupportsAudience(): boolean

      Whether this action can bound what it returns to an audience (RunActionParams.Audience): everyone besides the caller who will see its output, such as the other participants of a shared conversation.

      false by default, and the engine enforces it: when a run's audience adds a reader beyond the caller, ActionEngineServer.RunAction refuses the action with result code AUDIENCE_UNSUPPORTED, without running it. Override to return true only when the action honours the audience in full — every record, snippet and count it returns is something every reader may see (pass the audience to the search engine, check each reader's entitlement to anything it scopes by, and leave out aggregates computed before that filtering).

      Returns boolean

    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