Which Chat Support Software is better?
I have talked about this before, but it is better to choose this one. Livechat is very mature. The 10% off coupon is here , and interested students can take a look.
The reason and motivation for choosing it, you can read my previous articles, the foreign trade customer service software livechat offers discounts, and you can use the paid functions for free in just a few steps .
How to get the most services with less money from livechat?
Software is cheap, reports are expensive
Before giving a method to use the interface of face book to return data to google analtyics. This time I have a new problem.
After using livechat for a year, I have accumulated a lot of customer data, and now I want to export them, do analysis, engage in EDM email marketing, and activate silent users.
Don't ask why customers didn't manually enter the CRM after inquiries. Our sales are very strong, small customers, and customers who are not 100% sure. People don't like them and will not enter them.
Here comes the tricky job, to export the customer list, to export the customer list, to export the customer list.
I asked the customer service of livechat, and they told me a very painful answer. The original words said so.
If you would like to export the mentioned emails you would need to use our API call list_archives to pull the information about chats including the emails https://developers.livechat.com/docs/messaging/agent-chat-api#list-archives . If you would consider upgrading to the Business plan, there is a feature called "Export Raw Data" available. It allows for downloading the report about the chats in the CSV format including the list of emails from the pre-chat forms
https://www.livechat.com/help/advanced-reports-functions/#export-data-to-create-your-own-reports
They mean that they can use the api to retrieve data by themselves, or use the reporting function that comes with the system. When I looked at the reporting function, my requirement was not within the scope of the basic report, but it was only available after an upgrade. As shown in the figure, if we have 5 seats, we will be charged an extra $1500. In order to export the data, it will cost an extra 10,000 yuan per year. Wouldn't he be fragrant if he had the money to upgrade his website server?
This charging strategy for foreigners is a pit, and the service is particularly good. When you can't live without it and accumulate enough data, you will be out of pocket.
Self-reliance, hard work, and the path of API. It is very expensive to find someone else to develop it. You can only learn it by yourself. After a few days, you can really figure it out. I have to say that livechat is indeed a very mature customer service consulting software. The help documentation is very friendly, and Xiaobai can also get started.
Strong hands-on ability, you do it yourself. Weak hands-on ability, you spend money to buy . Thinking about it carefully, people are really kind, unlike some domestic software, which only pays you money to go.
How to use livechat api export customer data
here is code
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf8">
- <style type="text/css">
- <!--
- body,td{
- font-size: 14px;
- color: #000000;
- }
- a {
- color: #000066;
- text-decoration: none;
- }
- a:hover {
- color: #FF6600;
- text-decoration: underline;
- }
- -->
- #text-button {
- display: block;
- cursor: pointer;
- width: 160px;
- text-align: center;
- border: 1px solid #232323;
- }
- .user {
- display: table;
- width: 80%;
- }
- .user .name, .user .email, .user .num {
- display: table-cell;
- }
- .user .name {
- width: 40%;
- background: #CCDDFF;
- }
- .user .email {
- width: 50%;
- background: #99BBFF;
- }
- .user .num {
- width: 10%;
- background: #CCDDFF;
- }
- </style>
- </head>
- <body>
- <font color = "#FF0000" > Test to get customer data </font><br>
- <**********lt is the termination time and gte is the termination time. The interaction model is adopted, so the time is selected from the last interaction time, not the creation time. **********> <br>
- <!--<div id="text-button"><p id="text">点击</p></div>-->
- <!--<button onclick="list_customers()">Click me</button>-->
- <button onclick = " myFunction () " > Test return value </button>
- <p id="jianhuA"></p>
- <p id="jianhuB"></p>
- <p id="demo"></p>
- <script>
- async function myFunction(){
- //Request parameters up to 100 Default: 10, maximum: 100
- //alert('clicked');
- //document.getElementById("demo").innerHTML = JSON.stringify(fanhui());
- //let t = await list_customers();
- var html = '' ;
- var next_page_id = "";
- var xunhuan_num = 0 ;
- do{
- xunhuan_num = xunhuan_num + 1 ;
- //let t = m;
- let t = await list_customers(next_page_id);
- next_page_id = t.next_page_id;
- let customers = t.customers;
- let total_customers = t.total_customers;
- if (total_customers > 5000)
- {
- alert ( "There are too many returned items, I'm afraid it won't run, please shorten the date range and re-query" );
- break;
- }
- customers.forEach(user => {
- let htmlSegment = `<div class="user">
- <div class = "name">${user.name}</div>
- <div class="email">${user.email}</div>
- <div class="num">${xunhuan_num}</div>
- </div>`;
- html += htmlSegment;
- });
- document . getElementById ( "jianhuA" ). innerHTML = `Attempting to request data, currently $ { xunhuan_num } th` ;
- document . getElementById ( "jianhuB" ). innerHTML = `Totally return $ { total_customers } pieces of data, please be patient`;
- }
- while (xunhuan_num < 20 && typeof(next_page_id) != "undefined");
- document.getElementById("demo").innerHTML = html;
- //list_customers();
- };
- async function list_customers(page_id){
- //console.log("page_id is "+page_id);
- var data = "";
- var myHeaders = new Headers ();
- myHeaders . append ( "Authorization" , "Basic API token encoding" );
- myHeaders.append("Content-Type", "application/json");
- var raw = "";
- /**测试if(typeof(page_id) == "undefined" || page_id == null){alert("a is undefined");}
- else{alert("a is defined" + typeof(page_id));
- console.log("is page_id empty");
- console.log(page_id)
- }*/
- if (page_id == ""){
- console . log ( "Execute the first unpaged request with parameters" );
- raw = JSON.stringify({
- "filters": {
- "customer_last_event_created_at": {
- "lt": "2022-07-19T23:59:59.010200+01:00",
- "gte":"2022-07-01T00:00:00.010200+01:00"
- }
- },
- "limit": 100,
- "sort_order": "asc",
- "sort_by": "customer_last_event"
- });
- }
- else{
- //console.log("page_id is "+page_id);
- raw = JSON.stringify({
- "page_id": page_id
- });
- }
- console.log(raw);
- var requestOptions = {
- method: 'POST',
- headers: myHeaders,
- body: raw,
- redirect: 'follow'
- };
- let res = await fetch("https://api.livechatinc.com/v3.4/agent/action/list_customers", requestOptions);
- //var response = await fetch("https://api.livechatinc.com/v3.4/agent/action/list_customers", requestOptions);
- if (res.status >= 200 && res.status < 300) {
- return await res.json();
- //data = Promise.resolve(response.text());
- } else {
- throw new Error(response.statusText);
- }
- };
- </script>
- </body>
- </html>
Self-study for a few days and written in js, there are many problems, it is for reference only. With this, you can change the time range of the report. Measured a bit, less than 5000 is not a problem.
Note:
- Which Chat Support Software is better?
- How to get the most services with less money from livechat?
- Software is cheap, reports are expensive
- How to use livechat api export customer data
- Note:
- Which foreign trade online customer service software system is better?
- How to get the wool of foreigners livechat, get the most services with less money?
- Software is cheap, reports are expensive
- How to use livechat's api to export customer data
- postscript, self-study notes
- Those unsolved pits
- Developer Console Tutorials #5 | LiveChat Agent Chat API authorization