Answered

I'm creating wallboard for my client where I have to show how many "total chat today"? How can I fetch that? Please help.

  • 27 April 2021
  • 6 replies
  • 10 views

I'm creating wallboard for my client where I have to show how many "total chat today"? How can I fetch that? Please help.
icon

Best answer by Roy 27 April 2021, 16:28

View original

6 replies

Userlevel 1
Badge

Hello @anand​ , You are developing some custom solution or want to build some reports which will indicate total chats today?

Hi Roy, Thank for reply.

I'm developing a web app using NEXT JS where I can show some reports such as total chats, number of agents and Happiness score.

I'm using Axios.get method to fetch the data in next js - is this the right way of doing it ? Kindly suggest. Many thanks.

Userlevel 1
Badge

@anand​ , How about using Conversation Search API for that?

 

Sending request to https://api.intercom.io/conversations/search

{

 "query": {

  "operator": "AND",

  "value": [

   {

    "field": "created_at",

    "operator": ">",

    "value": 1619481600

   }, 

   {

    "field": "created_at",

    "operator": "<",

    "value": 1619568000

   }

  ]

 }

}

 

1619481600, 1619568000 This Unix timestamps are for todays date.

Thank you so much for your help !! 🙏

 

Can you please also help me to get the Happiness score as a percentage?

 

Many many thanks.

Userlevel 1
Badge

@anand​ Always happy to help 😎

 

About the Conversation rating, you should take a look at the following doc.

Thanks Roy,

can you tell me which API endpoint do I need for the Happiness score?

Reply