Skip to main content
Answered

How can I access the conversation ID in a custom action?


I'm trying to create a custom action that calls a webhook with the conversation ID when a new message is received. The action builder says "You can use the selector ({...}) to pass Intercom attribute values in your request body." however there are no "Conversation attributes" that I can select. How can I add the conversation ID to the request payload?

Screenshot 2022-08-15 at 11.53.29

Best answer by Racheal

Hey @greg m12​ Racheal from the Support Engineer team here 👋

 

Only the conversation attributes listed under Settings > App Data > Conversation data will be visible in the dropdown menu. Other standard conversation attributes such as Conversation ID are not currently available.

 

The good news is, the team is working on adding support for using the conversation ID in custom actions request body. So hopefully we will see that functionality in place soon. 📿

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

3 replies

Racheal
Intercom Team
Forum|alt.badge.img+5
  • Customer Support Engineer
  • 512 replies
  • Answer
  • August 18, 2022

Hey @greg m12​ Racheal from the Support Engineer team here 👋

 

Only the conversation attributes listed under Settings > App Data > Conversation data will be visible in the dropdown menu. Other standard conversation attributes such as Conversation ID are not currently available.

 

The good news is, the team is working on adding support for using the conversation ID in custom actions request body. So hopefully we will see that functionality in place soon. 📿


Forum|alt.badge.img+1
  • Active User
  • 12 replies
  • February 1, 2024

@Racheal 
Is there already an option to get the conversation ID in the request body somehow?
I want to create a custom action sending a POST request when a note was added by someone in a conversation.
This POST request should have the conversation ID in the body.

Thanks!


Jacob Cox
Intercom Team
Forum|alt.badge.img+5
  • Sr. Technical Support Engineer
  • 441 replies
  • March 2, 2024

Hi there @User2149 and @Greg M12 

You can access the Conversation ID attribute by looking under the ‘Conversation Attributes’ section of the variable dropdown when creating a Custom Action and selecting the Conversation ID variable.

 


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