Best answer by Roy
View originalI'm creating wallboard for my client where I have to show how many "total chat today"? How can I fetch that? Please help.
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.
@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.
Thanks Roy,
can you tell me which API endpoint do I need for the Happiness score?
Reply
Join the Intercom Community 🎉
Already have an account? Login
Login to the community
No account yet? Create an account
Intercom Customers and Employees
Log in with SSOEnter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.