Creating Plot Twists
    Preparing search index...

    Type Alias CreateLinkDraft

    Fields captured in Plot when a user initiates creation of a new external item via a connector's onCreateLink hook.

    Thread-agnostic on purpose — connectors do not receive the Plot thread. The platform attaches the returned NewLinkWithNotes to the originating thread once onCreateLink resolves.

    type CreateLinkDraft = {
        channelId: string;
        type: string;
        status: string;
        title: string;
        noteContent: string | null;
        contacts: Actor[];
    }
    Index

    Properties

    channelId: string

    The channel (account + resource) the new item belongs to.

    type: string

    Link type identifier, matches a LinkTypeConfig.type.

    status: string

    Status the user selected. Matches a statuses[].status for type.

    title: string

    Title of the originating Plot thread (post AI title generation).

    noteContent: string | null

    Markdown content of the thread's first note, or null if none.

    contacts: Actor[]

    Contacts attached to the originating Plot thread, excluding the creating user. Use these as recipients (email, chat DM members, etc.) when the external item is a message or invite. An empty list means the user did not add anyone to the thread.