Thankly SDK for JavaScript
    Preparing search index...

    Interface CatalogRecommendationsData

    Payload of a catalog-recommendations widget.

    interface CatalogRecommendationsData {
        assistantMessage?: string;
        recommendations: {
            confidence?: number;
            product?: CatalogProduct;
            productId: string;
            reasoning?: string;
        }[];
        suggestedPrompts?: string[];
    }

    Hierarchy (View Summary)

    Index
    assistantMessage?: string

    Prose introducing the recommendations.

    recommendations: {
        confidence?: number;
        product?: CatalogProduct;
        productId: string;
        reasoning?: string;
    }[]

    List of recommendations for this category

    Type Declaration

    • Optionalconfidence?: number

      How strongly the model backs this recommendation, 0–1.

    • Optionalproduct?: CatalogProduct

      The recommended product.

    • productId: string

      Catalog product identifier.

    • Optionalreasoning?: string

      Why this was recommended, in the model's words.

    suggestedPrompts?: string[]

    Follow-up prompts to offer the user.