How to do maintain history in my own server

(Siva L) #1

Hi @Subrahmanyam could you please explain how can i store and getting history to my DB using webservice .

(Siva L) #2

Hi @Subrahmanyam Please reply for above query.

(Subrahmanyam Donepudi) #3

@rajinisiva93 Are you referring to the conversation history information? Conversation history can be accessed from a public API. Please follow the below link for more details.

As of now for the conversation history API to work, you’ll need to enable botkit at your bot. Enable it at any of the events and the API should respond back to you with data based on the parameters passed.

(Aarsh Pandit) #4

Hi @Subrahmanyam
Problem Statement: I want to get all the conversation history of all my users and save it to my database accordingly…

how to trigger that for each and every user from ?

above Conversation History API we need public API to get that. I want to know somehow to export it from each time…

(Aarsh Pandit) #5

HI, @Subrahmanyam the one thing I can think is at the end of conversation to give a service call to invoke Public API…

and then using Public API to get conversation history it into my database…

is there any other solution to this ?

(Subrahmanyam Donepudi) #6

@aarsh.pandit Yes, it’s the same thought I had for now. Please give it a try. :slight_smile:

(Aarsh Pandit) #7

Sure @Subrahmanyam ,

Do let me know if you come across any other solution to this…

I wanted to optimise it to only one call at the end of conversation…

Many Thanks