Skip to main content

@dialstack/sdk-dev / server/src / Sentiment

Interface: Sentiment

Defined in: sdk/server/src/index.ts:848

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?​

TypeScript
optional local?: ChannelSentiment;

Defined in: sdk/server/src/index.ts:853

Your user's side of the conversation. Absent for single-channel audio.


magnitude​

TypeScript
magnitude: number;

Defined in: sdk/server/src/index.ts:851


overall​

TypeScript
overall: SentimentLabel;

Defined in: sdk/server/src/index.ts:849


remote?​

TypeScript
optional remote?: ChannelSentiment;

Defined in: sdk/server/src/index.ts:855

The other party's side. Absent for single-channel audio.


score​

TypeScript
score: number;

Defined in: sdk/server/src/index.ts:850