DocumentSuggestionActions (Deprecated)

This is for:

Developer
Warning

Headless v1 has been deprecated. We recommend using the latest version of the Coveo Headless library.

The document suggestion action creators.

Loader Function

loadDocumentSuggestionActions

Loads the document suggestion reducer and returns possible action creators.

Parameters

  • engine: CaseAssistEngine

    The headless engine.

Returns DocumentSuggestionActionCreators: The document suggestion action creators.

DocumentSuggestionActionCreators

fetchDocumentSuggestions

Retrieves the document suggestions from the platform. Document suggestions are retrieved based on the case information entered so far.

Returns AsyncThunkAction<FetchDocumentSuggestionsThunkReturn, void, AsyncThunkCaseAssistOptions<StateNeededByFetchDocumentSuggestions>>: A dispatchable action.