Hello there!
I am having some issues to understand how to assign the Conversation Rating to an agent.
Context: I am using Fivetran connector to load the data on our Data Warehouse and from conversation_history table I am grabbing the column conversation_rating_teammate_id to link the owner of the rating with the corresponding admin/agent.
Issue: We want to attribute the rating of each conversation to an agent using the same logic Intercom is using in the UI where the last agent who respond get the credit but for some conversations the last message author ID from conversation_part_history is not the same as the conversation_rating_teammate_id.
Can someone explain me how this attribution logic works?
Thanks!
Answered
Conversatio Rating Agent Attribution API
Best answer by Paul D
Hi
The system uses the following priority order to determine who gets attributed the rating:
| Priority | Actor Type | Logic |
|---|---|---|
| 1st (Highest) | Human Teammate | The most recent reply from a human teammate |
| 2nd | Fin AI Agent | If no human teammate replied, the most recent Fin AI reply |
| 3rd (Fallback) | Any Admin Part | If neither of the above, the most recent admin-authored message of any type |
How It Works
- Retrieves all admin parts from the conversation
- Filters out internal-only content - removes admin notes, participant events, and ticket state updates (these are not visible to end users)
- Reverses the order to start from the most recent message
- Applies the priority logic:
- First looks for any part authored by a human admin (not Operator/bots)
- If none found, looks for a Fin AI part
- If still none found, uses whatever the most recent admin part is
Examples
| Scenario | Rated Teammate |
|---|---|
| Teammate A replied, then Teammate B replied, then conversation closed | Teammate B (most recent human) |
| Teammate A replied, then Fin resolved it | Teammate A (humans take priority over Fin) |
| Only Fin replied, then teammate closed conversation without replying | Fin AI Agent |
| Fin replied, then Teammate A replied | Teammate A (most recent human) |
| Multiple teammates replied | The last one to send a user-visible reply |
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.
