Skip to main content
Answered

Workflow is not triggered when creating Messages/Conversations through the API


Forum|alt.badge.img

Hi All, 

I’ve a contact form on the web, and in Intercom we created a Email workflow, if some email is send to a email address we trigger the email workflow. So, I need to trigger that workflow when I POST  a Conversation o Message, with message_type = email. I’ve tried POST conversations, POST message, also set the from and to with valid contacts/users, the message/conversation is created but the workflow is not triggered. 
Any ideas?

Best answer by Jacob Cox

Hi @Alejandro Narmona !

I just tested this and was able to get it to work. You’ll want to:

  1. Make sure you are using the “Customer sends first message” or “Customer sends any message” workflow trigger
  2. Have the ‘Channel’ of the Workflow set only to Email
  3. Make a ‘Create a conversation’ call with the API
  4. Make sure the message_type is “email”
  5. Make sure the from.type is “user”

That should trigger the Workflow when the conversation comes in.

 

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

2 replies

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

Hi @Alejandro Narmona !

I just tested this and was able to get it to work. You’ll want to:

  1. Make sure you are using the “Customer sends first message” or “Customer sends any message” workflow trigger
  2. Have the ‘Channel’ of the Workflow set only to Email
  3. Make a ‘Create a conversation’ call with the API
  4. Make sure the message_type is “email”
  5. Make sure the from.type is “user”

That should trigger the Workflow when the conversation comes in.

 


Forum|alt.badge.img

Thanks, finally i figured out. We’ve added the audience rule “Created via API” on our email workflow. Thanks!


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