SatisfactionSurvey

public struct SatisfactionSurvey : Equatable, Sendable

Represents the structured data of a satisfaction survey received within a chat session.

The SatisfactionSurvey encapsulates the information needed to present a survey to the customer — a text prompt inviting the customer to fill out the survey, the URL of the survey web page, and the identifier of the thread the survey belongs to. Satisfaction survey messages are not part of the regular chat transcript; they are handled separately.

Properties

  • The prompt text to display to the customer.

    Declaration

    Swift

    public let prompt: String
  • url

    The URL of the survey page.

    Declaration

    Swift

    public let url: URL
  • The identifier of the thread the survey belongs to, matching id.

    Use it to present the survey with its own conversation - for example, to hold it back while the customer is viewing a different thread and present it once they open this one.

    Declaration

    Swift

    public let threadId: String