> 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. # getPrompt > Retrieve the current prompt configured on the agent. [set-prompt-text]: /docs/server-sdks/reference/typescript/agents/agent-base/set-prompt-text Retrieve the fully rendered main prompt text. Returns the assembled prompt string from either [`setPromptText()`][set-prompt-text] or POM sections. ## **Parameters** None. ## **Returns** `string` -- The assembled prompt string. ## **Example** ```typescript {5} import { AgentBase } from '@signalwire/sdk'; const agent = new AgentBase({ name: 'support', route: '/support' }); agent.setPromptText('You are a customer support agent for Acme Corp.'); const prompt = agent.getPrompt(); console.log(prompt); ``` > Retrieve the current prompt configured on the agent.