Help Center

Explore our knowledge base

Export the conversation history

Exporting your conversation allows you to collect your conversation history. This way, you can analyze the verbatim and/or save this content into your own database.
The aim of this article is to help you better understand the conversation model we are using.
With the iAdvize REST API, you can export the conversation following the documentation :
To guide you through the details of our conversation history model, we are providing you with an example with a description of the code.
Technically speaking, it requires a parsing of the table using each X’ code to filter messages by type (text, link, notifications, etc). 
Request sample{Conversation_ID}?website_list[0]={Website_ID}&key={API_KEY}
Response sample
  // …
    "data": {
                        "[5,"2018-03-30 10:07:24",""],
                        [1,"2018-03-30 10:07:25","Hello I am Ana, how can I help you ?"],
                        [3,"2018-03-30 10:07:25","The rule Chat is activated."],
                        [2,"2018-03-30 10:07:35","Hello I am John, I have a question product 1."],
                        [2,"2018-03-30 10:07:49","I am looking for this very specific product. "],
                        [1,"2018-03-30 10:07:57","Right we have it. "],
                        [2,"2018-03-30 10:08:06","Perfect, let me order it."],
                        [1,"2018-03-30 10:08:18","Have a nice day,"],
                        [3,"2018-03-30 10:08:22","VISITOR_CHAT_CLOSE"],
                        [3,"2018-03-30 10:10:57","OPERATOR_CHAT_CLOSE"]"