> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # setResponse > Set or replace the response text on a FunctionResult. [functionresult]: /docs/server-sdks/reference/typescript/agents/function-result Set or replace the response text after construction. The response is the text the AI speaks back to the caller after the function executes. ## **Parameters** **`response`** `string` — required Text for the AI to speak to the caller. --- ## **Returns** [`FunctionResult`][functionresult] -- `this`, for chaining. ## **Example** ```typescript {4} import { FunctionResult } from '@signalwire/sdk'; const result = new FunctionResult(); result.setResponse('Your order has been confirmed.'); ``` > Set or replace the response text on a FunctionResult.