@shortcut/client
    Preparing search index...

    Interface ShortcutSessionCreatedPayload

    A session was opened for the agent. Delivered once per session, to the agent's webhook URL, after an assignment, mention, reply, or the agent's own POST /agent-sessions.

    interface ShortcutSessionCreatedPayload {
        activity?: ShortcutSessionPromptActivity;
        id: string;
        installation_id: string;
        prompt_context: ShortcutSessionPromptContext;
        session: ShortcutAgentSession;
        type: "session.created";
        version: "v1";
        workspace_id: string;
    }

    Hierarchy

    • ShortcutSessionEventEnvelope
      • ShortcutSessionCreatedPayload
    Index

    Properties

    The opening prompt. Absent when no person wrote anything, as for an automation's assignment.

    id: string

    The event id. Retries reuse it, so persist it before answering.

    installation_id: string

    Only session.created carries the prompt context. Later prompts arrive with the activity alone.

    type: "session.created"
    version: "v1"
    workspace_id: string