Class ExternalPage.Builder

    • Method Detail

      • id

        public ExternalPage.TitleStage id​(@NotNull
                                          java.lang.String id)

        The unique identifier for the external page which is given by Intercom.

        The unique identifier for the external page which is given by Intercom.

        Specified by:
        id in interface ExternalPage.IdStage
        Returns:
        Reference to this so that method calls can be chained together.
      • title

        public ExternalPage.HtmlStage title​(@NotNull
                                            java.lang.String title)

        The title of the external page.

        The title of the external page.

        Specified by:
        title in interface ExternalPage.TitleStage
        Returns:
        Reference to this so that method calls can be chained together.
      • aiCopilotAvailability

        public ExternalPage.SourceIdStage aiCopilotAvailability​(boolean aiCopilotAvailability)

        Whether the external page should be used to answer questions by AI Copilot.

        Whether the external page should be used to answer questions by AI Copilot.

        Specified by:
        aiCopilotAvailability in interface ExternalPage.AiCopilotAvailabilityStage
        Returns:
        Reference to this so that method calls can be chained together.
      • sourceId

        public ExternalPage.ExternalIdStage sourceId​(int sourceId)

        The unique identifier for the source of the external page which was given by Intercom. Every external page must be associated with a Content Import Source which represents the place it comes from and from which it inherits a default audience (configured in the UI). For a new source, make a POST request to the Content Import Source endpoint and an ID for the source will be returned in the response.

        The unique identifier for the source of the external page which was given by Intercom. Every external page must be associated with a Content Import Source which represents the place it comes from and from which it inherits a default audience (configured in the UI). For a new source, make a POST request to the Content Import Source endpoint and an ID for the source will be returned in the response.

        Specified by:
        sourceId in interface ExternalPage.SourceIdStage
        Returns:
        Reference to this so that method calls can be chained together.
      • externalId

        public ExternalPage.CreatedAtStage externalId​(@NotNull
                                                      java.lang.String externalId)

        The identifier for the external page which was given by the source. Must be unique for the source.

        The identifier for the external page which was given by the source. Must be unique for the source.

        Specified by:
        externalId in interface ExternalPage.ExternalIdStage
        Returns:
        Reference to this so that method calls can be chained together.
      • finAvailability

        public ExternalPage._FinalStage finAvailability​(java.lang.Boolean finAvailability)

        Deprecated. Use ai_agent_availability and ai_copilot_availability instead.

        Specified by:
        finAvailability in interface ExternalPage._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • url

        public ExternalPage._FinalStage url​(java.lang.String url)

        The URL of the external page. This will be used by Fin to link end users to the page it based its answer on.

        Specified by:
        url in interface ExternalPage._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • url

        public ExternalPage._FinalStage url​(java.util.Optional<java.lang.String> url)

        The URL of the external page. This will be used by Fin to link end users to the page it based its answer on.

        Specified by:
        url in interface ExternalPage._FinalStage