AgentsAgentBase

set_post_prompt_url

View as MarkdownOpen in Claude

Override the default URL where post-prompt summaries are delivered. By default, summaries are sent to the agent’s own /post_prompt endpoint. Use this method to redirect summaries to an external service.

Parameters

url
strRequired

The URL where post-prompt summaries should be POSTed.

Returns

AgentBase — Returns self for method chaining.

Example

1from signalwire import AgentBase
2
3agent = AgentBase(name="support", route="/support")
4agent.set_prompt_text("You are a helpful customer support agent.")
5agent.set_post_prompt("Summarize this call as JSON with intent and resolution.")
6agent.set_post_prompt_url("https://analytics.example.com/call-summaries")
7agent.serve()