@dialstack/sdk / server / Sentiment
Interface: Sentiment
Defined in: sdk/src/server/index.ts:572
AI-derived sentiment of a call or voicemail transcript.
Two independent axes: score is the emotional leaning (-1.0 to +1.0, with
overall derived from it), and magnitude is how strongly feeling was
expressed at all (0.0 to 1.0, unsigned). Read them together — a call where
one side was angry and the other delighted scores near 0 with a high
magnitude, while a routine call scores near 0 with a low one.
Properties
local?
optional local?: ChannelSentiment;
Defined in: sdk/src/server/index.ts:577
Your user's side of the conversation. Absent for single-channel audio.
magnitude
magnitude: number;
Defined in: sdk/src/server/index.ts:575
overall
overall: SentimentLabel;
Defined in: sdk/src/server/index.ts:573
remote?
optional remote?: ChannelSentiment;
Defined in: sdk/src/server/index.ts:579
The other party's side. Absent for single-channel audio.
score
score: number;
Defined in: sdk/src/server/index.ts:574