Server SDKs
Build AI agents, control calls, send messages, and more
Retrieve the current post-prompt text, if one has been set.
None.
string | null — The post-prompt string, or null if not configured.
string | null
null
1import { AgentBase } from '@signalwire/sdk';23const agent = new AgentBase({ name: 'support', route: '/support' });4agent.setPostPrompt('Summarize this call as JSON with intent, resolution, and sentiment.');5const postPrompt = agent.getPostPrompt();6if (postPrompt) {7 console.log(postPrompt);8}