Options
All
  • Public
  • Public/Protected
  • All
Menu

Agent Assist Processor Service

Hierarchy

  • AgentAssistProcessorService

Index

Constructors

Properties

knowledgeArticleSuggestions: KnowledgeArticlesForContactId[] = []
onKnowledgeArticleSuggestionsReceived: BehaviorSubject<KnowledgeArticlesForContactId[]> = ...
onKnowledgeArticleSuggestionsReceivedForContactId: Subject<KnowledgeArticlesForContactId> = ...
onRtigStateUpdatePayload: BehaviorSubject<any> = ...
onSmartRepliesReceivedForContactId: Subject<KnowledgeArticlesForContactId> = ...

Methods

  • clearAgentAssistStoreFromIndexDb(): Promise<void>
  • Used to remove getnext data from indexdb

    example
    agentAssistProcessorService.clearAgentAssistStoreFromIndexDb();
    

    Returns Promise<void>

  • Used to get GetNext event data from indexdb for a contact Id

    example
    agentAssistProcessorService.getAgentAssistGetNextForContactIdFromIndexDb(contactId);
    

    Parameters

    • contactId: string

    Returns Promise<AgentAssistWSRequest[]>

  • Used to get GetNext event data from indexdb

    example
    agentAssistProcessorService.getAllAgentAssistGetNextFromIndexDb();
    

    Returns Promise<AgentAssistWSRequest[]>

  • getValuesByKeyPattern(storeName: IndexDBStoreNames, searchText: string): Promise<any[]>
  • Used to get Index DB entries matching the key pattern in searchText

    example
    const values = await this.getValuesByKeyPattern(storeName, searchText);
    

    Parameters

    • storeName: IndexDBStoreNames

      name of the index DB store

    • searchText: string

      text pattern to search in the Keys

    Returns Promise<any[]>

  • Pre-Process CCAI WebSocket Messages to filter before saving to state

    example
    this.processCCAIWebSocketMessages(resp, newMessage);
    

    Parameters

    Returns void

  • processRTIGWebSocketMessages(wsMsgRespBody: any): void
  • Pre-Process RTIG WebSocket Messages to filter before saving to state

    example
    this.processRTIGWebSocketMessages(wsMsgRespBody);
    

    Parameters

    • wsMsgRespBody: any

      The RTIG websocket message response

    Returns void

  • Reduce duplication in Knowledge Article Suggestions

    example
    const newArticles = this.reduceDuplicateSuggestion(existingSuggestions, newArticles);
    

    Parameters

    Returns KnowledgeArticleSuggestion

  • removeAgentAssistGetNextForContactIdFromIndexDb(contactId: string): Promise<void>
  • Used to remove getnext data from indexdb for a contact Id

    example
    agentAssistProcessorService.removeAgentAssistGetNextForContactIdFromIndexDb();
    

    Parameters

    • contactId: string

    Returns Promise<void>

  • removeEntriesByKeyPattern(storeName: IndexDBStoreNames, searchText: string): Promise<void>
  • Used to remove Index DB entries matching the key pattern in searchText

    example
    await this.removeEntriesByKeyPattern(storeName, searchText);
    

    Parameters

    • storeName: IndexDBStoreNames

      name of the index DB store

    • searchText: string

      text pattern to search in the Keys

    Returns Promise<void>

  • removeInMemoryDataForContactId(contactId: string): void
  • Remove any In Memory data for a contact Id

    example
    this.removeInMemoryDataForContactId(contactId);
    

    Parameters

    • contactId: string

      contact Id

    Returns void

  • Used to put agent assist getnext data into indexdb for a contact Id

    example
    agentAssistProcessorService.setAgentAssistGetNextInIndexDb();
    

    Parameters

    Returns Promise<void>

  • validate a knowledge article

    example
    bool isValid = this.validateArticle(article);
    

    Parameters

    Returns boolean

Generated using TypeDoc