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

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