diff --git a/fern/changelog/2025-02-27.mdx b/fern/changelog/2025-02-27.mdx new file mode 100644 index 000000000..d8cf366b1 --- /dev/null +++ b/fern/changelog/2025-02-27.mdx @@ -0,0 +1,49 @@ +# Phone Keypad Input Support, OAuth2 and Analytics Improvements + +1. **Keypad Input Support for Phone Calls:** A new [`keypadInputPlan`](https://api.vapi.ai/api#:~:text=KeypadInputPlan) feature has been added to enable handling of DTMF (touch-tone) keypad inputs during phone calls. This allows your voice assistant to collect numeric input from callers, like account numbers, menu selections, or confirmation codes. + +Configuration options: +```json +{ + "keypadInputPlan": { + "enabled": true, // Default: false + "delimiters": "#", // Options: "#", "*", or "" (empty string) + "timeoutSeconds": 2 // Range: 0.5-10 seconds, Default: 2 + } +} +``` + +The feature can be configured in: +- `assistant.keypadInputPlan` +- `call.squad.members.assistant.keypadInputPlan` +- `call.squad.members.assistantOverrides.keypadInputPlan` + +2. **OAuth2 Authentication Enhancement:** The [`OAuth2AuthenticationPlan`](https://api.vapi.ai/api#:~:text=OAuth2AuthenticationPlan) now includes a `scope` property to specify access scopes when authenticating. This allows more granular control over permissions when integrating with OAuth2-based services. + +```json +{ + "credentials": [ + { + "authenticationPlan": { + "type": "oauth2", + "url": "https://example.com/oauth2/token", + "clientId": "your-client-id", + "clientSecret": "your-client-secret", + "scope": "read:data" // New property, max length: 1000 characters + } + } + ] +} +``` + +The scope property can be configured at: +- `assistant.credentials.authenticationPlan` +- `call.squad.members.assistant.credentials.authenticationPlan` + +3. **New Analytics Metric: Minutes Used** The [`AnalyticsOperation`](https://api.vapi.ai/api#:~:text=AnalyticsOperation) schema now includes a new column option: `minutesUsed`. This metric allows you to track and analyze the duration of calls in your usage reports and analytics dashboards. + + +4. **Removed TrieveKnowledgeBaseCreate Schema:** Removed `TrieveKnowledgeBaseCreate` schema from +- `TrieveKnowledgeBase.createPlan` +- `CreateTrieveKnowledgeBaseDTO.createPlan` +- `UpdateTrieveKnowledgeBaseDTO.createPlan`