Creating Plot Twists
    Preparing search index...

    Type Alias ActivityIntentHandler

    Intent handler for activity mentions. Defines how the twist should respond when mentioned in an activity.

    type ActivityIntentHandler = {
        description: string;
        examples: string[];
        handler: (activity: Activity) => Promise<void>;
    }
    Index

    Properties

    description: string

    Human-readable description of what this intent handles

    examples: string[]

    Example phrases or activity content that would match this intent

    handler: (activity: Activity) => Promise<void>

    The function to call when this intent is matched