Skip to main content
Answered

How to add/update title to a conversation from the intercom api


So I have been following the document related to intercom api and was able to add a new conversation with body using the api. However, I am also trying to assign a conversation title along with some of my tags during the creation process but it does not seem to be reading those properties during creation. I tried the PUT endpoint after the conversation was created to update those fields but they do not seem to make any updates either. Please let me know what the correct way to accomplish this?!

 

Thanks in advance.

Best answer by Roy

@user1111​ , First, you should create a conversation to apply tags to them.

 

"Create conversation API" creates a conversation, it's not possible to apply tags to the non-created conversation.

The same is with the assignment, first you should create a conversation to assign to the team member.

 

I hope this will be helpful, Always happy to help 😇

 

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

4 replies

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

Hello @user1111​ 👋, Welcome to Interconnect ✨

 

Q - How to add/update title to a conversation from the intercom API

A - Did you mean to add a conversation subject?

 

To create a conversation with the Subject, you should send the request to "https://api.intercom.io/conversations"

Content:

{

 "from": {

  "type": "user",

  "id": "Intercom Contact ID"

 },

 "subject": "Subject",

 "body": "Conversation Text"

}

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

Adding a tag to the conversation via API:

 

Sending request to "https://api.intercom.io/conversations/<ConversationID>/tags"

Content:

{

"id": "TagID",

"admin_id": "AdminID"

}

 

More information from Intercom API docs

 

Let me know if you have any questions about Intercom API, more than happy to help.


  • Author
  • New Participant
  • 2 replies
  • April 20, 2021

Roy,

 

Thank you very much for the response. I have tried the first option to add a subject during the conversation creation process but for some reason that property does not seem to be setting the conversation. I will try again.

 

So I found the tags endpoint that you mentioned which does work, but is there a way to make that also part of the conversation creation process or tags requires it to be a different endpoint altogether?

 

Thanks again.


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

@user1111​ , First, you should create a conversation to apply tags to them.

 

"Create conversation API" creates a conversation, it's not possible to apply tags to the non-created conversation.

The same is with the assignment, first you should create a conversation to assign to the team member.

 

I hope this will be helpful, Always happy to help 😇

 


  • Author
  • New Participant
  • 2 replies
  • April 21, 2021

Thanks Roy, Seems like this works through POSTMAN so I will try to replicate that into my server side API code.


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