Skip to main content
Answered

How do I retrieve conversation attributes via the conversation API?

  • October 11, 2020
  • 5 replies
  • 333 views

Hi - I am writing a custom Bot that needs to gather up conversation attributes that have been set via a custom bot, and send them to our system to trigger an alert.

 

It seems that the conversation_parts where these conversation attributes are being set are coming back in a "comment" conversation part without any body, and without any other structured data.

 

Is there some additional API or trick I need to use to retrieve these conversation attributes? I am assuming it is possible, right? Help!

Best answer by Roy

Hello @anoop​ ,

 

Yes, it's possible to get the value of the data attributes based on the conversation.

 

You should use Retrieve a conversation call:

https://api.intercom.io/conversations/ConversationID/p>

 

====================

  "custom_attributes": {

    "Type": "Issue",

    "Priorty": "Low",

    "Feature": "Billing & Payments"

  },

====================

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

5 replies

Forum|alt.badge.img+3
  • Super User ✨
  • 83 replies
  • October 11, 2020

When i checked with the team convo attributes were not yet usable via API as I was exploring similar options.

 

@eric f11​ can you confirm that?


Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • 1630 replies
  • October 12, 2020

@craig​ @satish​ you can use the unstable version of our API to access conversation attributes: https://developers.intercom.com/intercom-api-reference/v0/reference#introduction./p>

 

We're effectively beta testing these through the unstable version with a view to shipping them later this year!


  • Connector
  • 6 replies
  • February 5, 2021

@eric f11​ , I am looking for the same option, but could get the attributes values on the conversation. Have you got a solution to get the attribute values of a conversation?

 

https://www.intercom.com/changes/en/-access-conversation-data-via-intercoms-api-for-more-sophisticated-reporting-and-workflow-needs--

 


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

Hello @anoop​ ,

 

Yes, it's possible to get the value of the data attributes based on the conversation.

 

You should use Retrieve a conversation call:

https://api.intercom.io/conversations/ConversationID/p>

 

====================

  "custom_attributes": {

    "Type": "Issue",

    "Priorty": "Low",

    "Feature": "Billing & Payments"

  },

====================


  • Connector
  • 6 replies
  • February 5, 2021

Hello @Roy and @eric f11 (Intercom Employee)

 

I understand that using conversation ID I can get the required attributes, but my problem here is I need to get the attributes or conversation ID at the very beginning of every conversation. Could you tell me which API should I use?

 

I tried with the data attributes API model and its not returning any values. Any suggestions, please.

 

Thanks,

Anoop


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