Thankly SDK for JavaScript
    Preparing search index...

    Interface RecommendationsState

    State for AI recommendations section

    interface RecommendationsState {
        accessToken: string | null;
        assistantMessage: string | null;
        capabilityId: string | null;
        currentVersion: number;
        error: string | null;
        experienceId: string | null;
        recommendations: ProductRecommendation[];
        status: "error" | "idle" | "loading" | "ready";
        suggestedPrompts: string[];
        wardrobeAssistantMessage: string | null;
        wardrobeCapabilityId: string | null;
        wardrobeOutfitSummary: string | null;
        wardrobeRecommendations: ProductRecommendation[];
        wardrobeStatus: "error" | "idle" | "loading" | "ready";
    }
    Index
    accessToken: string | null

    Per-experience token used to poll for recommendation updates.

    assistantMessage: string | null

    Prose introducing the recommendations.

    capabilityId: string | null

    Identifier of the capability that produced this.

    currentVersion: number

    Version counter, incremented on each refinement; used to detect a stale write.

    error: string | null

    Human-readable reason for the rejection.

    experienceId: string | null

    The experience that triggered the generation

    recommendations: ProductRecommendation[]

    List of recommendations for this category

    status: "error" | "idle" | "loading" | "ready"

    Loading state of the catalog recommendations.

    suggestedPrompts: string[]

    Follow-up prompts to offer the user.

    wardrobeAssistantMessage: string | null

    Prose introducing the wardrobe recommendations.

    wardrobeCapabilityId: string | null

    Capability that produced the wardrobe recommendations.

    wardrobeOutfitSummary: string | null

    Prose describing the wardrobe outfit.

    wardrobeRecommendations: ProductRecommendation[]

    Products recommended from the customer's wardrobe.

    wardrobeStatus: "error" | "idle" | "loading" | "ready"

    Loading state of the wardrobe recommendations.