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?
Answered
Workflow is not triggered when creating Messages/Conversations through the API
Best answer by Jacob Cox
Hi
I just tested this and was able to get it to work. You’ll want to:
- Make sure you are using the “Customer sends first message” or “Customer sends any message” workflow trigger
- Have the ‘Channel’ of the Workflow set only to Email
- Make a ‘Create a conversation’ call with the API
- Make sure the message_type is “email”
- Make sure the from.type is “user”
That should trigger the Workflow when the conversation comes in.
![](https://uploads-eu-west-1.insided.com/intercom-en/attachment/a76d9356-3949-410c-9a97-93ac4bae870e.png)
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Join the Intercom Community 🎉
Already have an account? Login
Login to the community
No account yet? Create an account
Intercom Customers and Employees
Log in with SSOor
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.