Skip to navigation

Make the AI agent speak specific text immediately, bypassing the normal LLM response flow. The text is spoken in the agent’s configured voice.

Parameters

text
stringRequired

Text for the agent to speak.

Returns

FunctionResult — this, for chaining.

Example

import { FunctionResult } from '@signalwire/sdk';
const result = new FunctionResult()
.say('Your appointment is confirmed for tomorrow at 3 PM.');