|
| 1 | +--- |
| 2 | +title: "2025-08-20: Major API Updates — Handoff Tool, Rejection Plans, Metrics, Security, and More" |
| 3 | +date: 2025-08-20 |
| 4 | +--- |
| 5 | + |
| 6 | +<Card> |
| 7 | + <Check/> |
| 8 | + <b>Major OpenAPI Release: Multi-Agent Handoff, Tool Rejection, Security, and Observability</b> |
| 9 | +</Card> |
| 10 | + |
| 11 | +## 🚀 New Features & Additions |
| 12 | + |
| 13 | +### Multi-Agent Handoff Tool |
| 14 | +- **New `HandoffTool` and related endpoints**: Seamlessly hand off conversations between agents (assistants) using the new `handoff` tool type. Handoffs can be configured for: |
| 15 | + - <b>Single or multiple static destinations</b> (by assistant ID or name) |
| 16 | + - <b>Dynamic destinations</b> via server webhook, including custom parameters (e.g., customer intent, sentiment) |
| 17 | +- <b>Use case:</b> Enables advanced multi-agent orchestration, escalations, and dynamic call routing in complex workflows. |
| 18 | + |
| 19 | +### Tool Rejection Plans |
| 20 | +- **All tools now support a `rejectionPlan`**: Define conditions under which a tool call should be rejected (e.g., user didn't say goodbye, bot is looping, or user intent mismatch). |
| 21 | +- <b>Flexible logic:</b> Supports regex, Liquid templates, and logical groups for advanced conversation state handling. |
| 22 | +- <b>Use case:</b> Prevents accidental tool calls, enables smarter, context-aware flows, and reduces conversational errors. |
| 23 | + |
| 24 | +### Expanded Voice Capabilities |
| 25 | +- **New `MinimaxVoice` support**: Configure Minimax TTS with options for model, pitch, speed, region, volume, emotion, and caching. |
| 26 | +- **Voice fallback plans**: Enhanced failover across voice providers, including Minimax and Inworld. |
| 27 | + |
| 28 | +### Performance Metrics & Observability |
| 29 | +- **`call.artifact.performanceMetrics`**: Track detailed turn-level latency for model, voice, endpointing, and transcription. |
| 30 | +- **`AnalysisCostBreakdown`**: Now includes structured output token usage and costs. |
| 31 | +- **Support for Langfuse and improved logging/recording paths in `ArtifactPlan`**. |
| 32 | + |
| 33 | +### Security & Compliance |
| 34 | +- **Security filter plans**: New `securityFilterPlan` in compliance configuration allows for transcript sanitization, rejection, or replacement on threats (e.g., SQLi, XSS, prompt injection). |
| 35 | +- **User message filtering**: Each message now tracks `isFiltered`, `detectedThreats`, and `originalMessage`. |
| 36 | +- **RBAC and retention controls**: Subscription objects now include `rbacEnabled`, `callRetentionDays`, and `chatRetentionDays`. |
| 37 | + |
| 38 | +### Workflow & Assistant Enhancements |
| 39 | +- **Workflow-level hooks, background sound, keypad input plans, and dynamic credentials** (including Minimax credentials). |
| 40 | +- **Custom LLM models and headers**: Workflows and assistants can now specify custom model endpoints and headers. |
| 41 | +- **More granular artifact and analysis configuration**. |
| 42 | + |
| 43 | +## ⚠️ Breaking Changes & Deprecations |
| 44 | + |
| 45 | +### Major Deprecations |
| 46 | +- **Tool `function` property removed**: All custom logic for tool execution must now be handled via webhooks or rejection plans. Update your tool configurations accordingly. |
| 47 | +- **Removed legacy support endpoints**: `/support/ticket`, `/workflow/generate`, `/campaign/paginated` and discriminator mappings for `ghl`, `make`, `output` have been removed. |
| 48 | +- **Removed properties from core objects:** |
| 49 | + - `Assistant`: `messagePlan`, `silenceTimeoutSeconds`, `backgroundDenoisingEnabled` |
| 50 | + - `Artifact`/`NodeArtifact`: `variables` |
| 51 | + - `AssemblyAITranscriber`: `enableUniversalStreamingApi` |
| 52 | + - Tool DTOs: All `function` properties |
| 53 | + |
| 54 | +### Migration Guidance |
| 55 | +- <Card> |
| 56 | + <b>Update all tool definitions to use <code>rejectionPlan</code> for conditional logic.</b><br/> |
| 57 | + Replace removed `function` fields with webhook-based or plan-based logic. |
| 58 | + <br/><br/> |
| 59 | + <b>Review assistant and workflow schemas:</b><br/> |
| 60 | + Remove deprecated properties and update to new compliance, hooks, and model options. |
| 61 | +</Card> |
| 62 | + |
| 63 | +## 📝 Documentation Updates Required |
| 64 | + |
| 65 | +- **Tool configuration**: Update all tool examples and guides to use `rejectionPlan` instead of `function`. |
| 66 | +- **Handoff flows**: Add new documentation and code samples for `handoff` tool and dynamic routing. |
| 67 | +- **Security/compliance**: Document new `securityFilterPlan` and message filtering fields on user messages. |
| 68 | +- **Performance metrics**: Add usage guides for turn latency and cost breakdown. |
| 69 | +- **Assistant/workflow schemas**: Remove deprecated fields and highlight new credential, sound, and model options. |
| 70 | + |
| 71 | +<Frame> |
| 72 | + <b>Note:</b> This release introduces significant improvements for multi-agent orchestration, security, and observability, but also requires updates to existing tool and assistant configurations. Please review all breaking changes and update your integrations accordingly. |
| 73 | +</Frame> |
0 commit comments