Skip to main content

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

Interface: Sentiment

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

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:594

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


magnitude

TypeScript
magnitude: number;

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


overall

TypeScript
overall: SentimentLabel;

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


remote?

TypeScript
optional remote?: ChannelSentiment;

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

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


score

TypeScript
score: number;

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