Is there any way to get back the conversation between bot and user on webchat (directline) in nodejs bot framework V4

25 views Asked by At

there is a way to do so but the class used here to store the conversations had been deprecated and the flow of defining and writing code is also old style so if there is any new sample for the same then please update.

I have tried the sample with old versions of classes, the sample works fine but I need to use latest class to store the conversation.

let transcriptStore = new AzureBlobTranscriptStore({
  storageAccountOrConnectionString: blobStorageConfig.connectionString,
  containerName: blobStorageConfig.container,
});

var transcriptMiddleware = new TranscriptLoggerMiddleware(transcriptStore);
adapter.use(transcriptMiddleware);

This AzureBlobTranscriptStore has been deprecated. I'm using BlobsTranscriptStore instead of this. But I'm not able to fetch transcripts from container. I think one of the reason of not getting transcripts is because when I looked in blobStorage container AzureBlobTranscriptStore class is storing data in specific channelId folder but BlobsTranscriptStore class is storing the data directly in a hierarchy.

This below method is used to get all the transcripts from container. And in new Class this method is also same with the same arguments, but still not able to fetch all the transcripts.

var pagedTranscript =
            await this.transcriptStore.getTranscriptActivities(
              turnContext.activity.channelId,
              turnContext.activity.conversation.id,
              continuationToken
            );

So Please let me know if there any possible solution to this problem.

0

There are 0 answers