compute_emotion_curve
Computes the emotion curve of the journey: average emotion per phase (phases ordered via orderInPhase). Counts ONLY the customer-side steps — swimlane='customer' or swimlane absent; a step explicitly frontstage/backstage/support is excluded from the computation even if it carries metadata.emotion. Returns emotionCurve [{phaseId, phaseName, emotion}], overall averageEmotion, swimlanesUsed, countsByType. Serves summary visualizations or a numeric recap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _unused | No | Unused parameter | |
| expectedProjectId | No | UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted. |