Extension Flow
This flow captures “prediction of emotion” and “supervisor ask” for every new chat message.
- When a chat is accepted by an agent, a parent record is created in the ChatAIResultSummary custom object.
- For each new message in that chat, the emotion model endpoint is called to get emotion prediction.
- For each new message in that chat, the supervisor ask model endpoint is called to get supervisor ask prediction.
- Once we have both, the prediction stores the results in the ChatAIPredictionInfo child table.
- The custom object is updated with the start time and the completed time of a chat, which are retrieved from the product chats table.
- When the chat has completed, the parent row as is marked as inactive.
The following flowchart represents the extension flow: