Skip to main content
Answered

Location / TimeZone of Conversations

  • April 18, 2023
  • 1 reply
  • 161 views

I am exporting conversations data from intercom to an external database. I want to filter out conversations based on either Location or Timezone,  I have seen that on intercom UI, when I go to Reports → Customer Support → Export, I have the option to filter out conversation data by selecting Country. 

I have also explored two other ways to export data ie., by specifying S3 export bucket or by calling intercom APIs directly. In both ways, however I am not seeing any field related to Country or Location or Timezone.

How do I filter out API data or s3 export data based on location, like I am able to do via the UI Reports option? 

Best answer by Jacob Cox

Hi @Shagun Bhardwaj !

 

Conversations don’t have countries, rather your Contacts (who participate in the conversations) have countries. You’ll need to make a “search contacts” call via our REST API and filter by location.country to gather the IDs of Contacts from your target countries.  Once you’ve done that you can make a “search conversations” call and pass in those ID values as contact_ids and it should return the conversations that are associated with the contacts from those specific countries.

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

1 reply

Jacob Cox
Intercom Team
Forum|alt.badge.img+5
  • Sr. Technical Support Engineer
  • 441 replies
  • Answer
  • April 22, 2023

Hi @Shagun Bhardwaj !

 

Conversations don’t have countries, rather your Contacts (who participate in the conversations) have countries. You’ll need to make a “search contacts” call via our REST API and filter by location.country to gather the IDs of Contacts from your target countries.  Once you’ve done that you can make a “search conversations” call and pass in those ID values as contact_ids and it should return the conversations that are associated with the contacts from those specific countries.


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