@avvyr/storefront-sdk - v0.19.0
    Preparing search index...

    Interface AssistantMessage

    interface AssistantMessage {
        attachments?: AssistantAttachment[];
        author: string | null;
        cards?: AssistantCard[];
        content: string;
        createdAt: string;
        id: string;
        replies?: string[];
        role: "user" | "assistant" | "staff";
    }
    Index
    attachments?: AssistantAttachment[]

    Photos the shopper sent with this (user) message.

    author: string | null

    Staff member's name on staff messages, otherwise null.

    cards?: AssistantCard[]

    Cards shown with this (assistant) message.

    content: string

    May be empty: an assistant message can carry only cards, a user message only photos.

    createdAt: string
    id: string
    replies?: string[]

    Short replies the assistant suggests, in the shopper's language. Only on the last message, only from the assistant, and only while it answers (status bot). Show them as buttons that send the text as the shopper's next message.

    role: "user" | "assistant" | "staff"