Thankly SDK for JavaScript
    Preparing search index...

    Interface EngagementDecisionResponse

    Result of invoking an engagement decision.

    interface EngagementDecisionResponse {
        access_token: string;
        decision_id?: string | null;
        experience_id: string;
        session_id: string | null;
        status: string;
        widget_data?: Record<string, unknown> | null;
    }
    Index
    access_token: string

    Per-experience token the client uses to poll.

    decision_id?: string | null

    Stable handle for outcome reporting; equals session_id on the generated path, null on cache hit.

    experience_id: string

    Identifier of the generated experience.

    session_id: string | null

    Identifier of the generation session.

    status: string

    PENDING on async dispatch; COMPLETED on cache hit (widget_data is populated).

    widget_data?: Record<string, unknown> | null

    The capability's widget data — for /engage this is the decision envelope (cast to DecisionEnvelope); null while PENDING (poll GET /experiences/{id}, whose widget.data fills the same generic slot). Single carrier — a duplicate decision_envelope field was removed to halve the response now that it carries content blocks (engagement-content-blocks).