Skip to main content
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.


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

Best answer by Roy

@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.

View original
Did this topic help you find an answer to your question?

6 replies

Forum|alt.badge.img+5
  • Expert User
  • 1152 replies
  • April 27, 2021

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


  • Author
  • New Participant
  • 3 replies
  • April 27, 2021

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.


Forum|alt.badge.img+5
  • Expert User
  • 1152 replies
  • Answer
  • April 27, 2021

@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.


  • Author
  • New Participant
  • 3 replies
  • April 27, 2021

Thank you so much for your help !! 🙏

 

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

 

Many many thanks.


Forum|alt.badge.img+5
  • Expert User
  • 1152 replies
  • April 27, 2021

@anand​ Always happy to help 😎

 

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


  • Author
  • New Participant
  • 3 replies
  • April 27, 2021

Thanks Roy,

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings