Skip to main content
Answered

Assign to both a team and teammate at the same time in inbox rules


If a customer says ‘Hi Sarah’ I want it to automatically get assigned to Sarah. However, I ALSO want it to be assigned to sales so that sales is credited for the response in the data tracking. 

Best answer by Jacob Cox

Hi @Julia Jannetti !

 

I played around with this one a little bit, but it looks like when you assign a User to a Team then the admin assigned to them is removed, and vice versa. The best option I can come up with in order to overcome this limitation would be to make use of our Custom Actions. You could create a Custom Action that makes a call to the /conversations endpoint of our REST API and assigns Sarah as the Admin and Sales as the Team. Then, in your Inbox rule you could call that Custom Action as the follow-up action when a person’s Message Content contains the string “Sarah”.

Custom Actions do require a basic understanding of how APIs work, so you may need to do a little Googling on that side of things. But they don’t require a ton of knowledge in the area. I’m going to flag this assignment behavior with the team as a Feature Request. It would be much simpler if you were able to assign to both attributes!

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

4 replies

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

Hi @Julia Jannetti !

 

I played around with this one a little bit, but it looks like when you assign a User to a Team then the admin assigned to them is removed, and vice versa. The best option I can come up with in order to overcome this limitation would be to make use of our Custom Actions. You could create a Custom Action that makes a call to the /conversations endpoint of our REST API and assigns Sarah as the Admin and Sales as the Team. Then, in your Inbox rule you could call that Custom Action as the follow-up action when a person’s Message Content contains the string “Sarah”.

Custom Actions do require a basic understanding of how APIs work, so you may need to do a little Googling on that side of things. But they don’t require a ton of knowledge in the area. I’m going to flag this assignment behavior with the team as a Feature Request. It would be much simpler if you were able to assign to both attributes!


Hi @Jacob Cox What does the body of the Custom Action look like if you are assigning BOTH the Admin and Team at the same time? 

I am using this:

 

{ "message_type": "assignment", "type": "team", "admin_id": [Teammate ID], "assignee_id": [Team ID] }

but it removes the individual assigned to the case when I assign the Team in this way. How can I assign both an individual and a Team? 


This assigns a Team but not an Admin. Do I run it twice for type: team and type: admin?

@Jacob Cox 


You can achieve this with 3 api calls per conversation with the following payloads:

  1. assign a teammate
  2. assign a team
  3. assign a teammate

This way, the conversation should keep both assignations.


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