|
| 1 | +## New Workflows API, Telnyx Phone Number Support, Voice Options, and much more |
| 2 | + |
| 3 | +1. **Workflows Replace Blocks**: The API has migrated from blocks to workflows with new `/workflow` endpoints. [Introduction to Workflows](https://docs.vapi.ai/workflows) |
| 4 | +You can now use [`UpdateWorkflowDTO`](https://api.vapi.ai/api#:~:text=UpdateWorkflowDTO) where conversation components (`Say`, `Gather`, `ApiRequest`, `Hangup`, `Transfer` nodes) are explicitly connected via edges to create directed conversation flows. |
| 5 | + |
| 6 | +<Accordion title='Example workflow (simplified)'> |
| 7 | + ```json |
| 8 | + { |
| 9 | + "name": "Customer Support Workflow", |
| 10 | + "nodes": [ |
| 11 | + { |
| 12 | + "id": "greeting", |
| 13 | + "type": "Say", |
| 14 | + "text": "Hello, welcome to customer support. Do you need help with billing or technical issues?" |
| 15 | + }, |
| 16 | + { |
| 17 | + "id": "menu", |
| 18 | + "type": "Gather", |
| 19 | + "options": ["billing", "technical", "other"] |
| 20 | + }, |
| 21 | + { |
| 22 | + "id": "billing", |
| 23 | + "type": "Say", |
| 24 | + "text": "I'll connect you with our billing department." |
| 25 | + }, |
| 26 | + { |
| 27 | + "id": "technical", |
| 28 | + "type": "Say", |
| 29 | + "text": "I'll connect you with our technical support team." |
| 30 | + }, |
| 31 | + { |
| 32 | + "id": "transfer_billing", |
| 33 | + "type": "Transfer", |
| 34 | + "destination": { |
| 35 | + "type": "number", |
| 36 | + "number": "+1234567890" |
| 37 | + } |
| 38 | + }, |
| 39 | + { |
| 40 | + "id": "transfer_technical", |
| 41 | + "type": "Transfer", |
| 42 | + "destination": { |
| 43 | + "type": "number", |
| 44 | + "number": "+1987654321" |
| 45 | + } |
| 46 | + } |
| 47 | + ], |
| 48 | + "edges": [ |
| 49 | + { |
| 50 | + "from": "greeting", |
| 51 | + "to": "menu" |
| 52 | + }, |
| 53 | + { |
| 54 | + "from": "menu", |
| 55 | + "to": "billing", |
| 56 | + "condition": { |
| 57 | + "type": "logic", |
| 58 | + "liquid": "{% if input == 'billing' %} true {% endif %}" |
| 59 | + } |
| 60 | + }, |
| 61 | + { |
| 62 | + "from": "menu", |
| 63 | + "to": "technical", |
| 64 | + "condition": { |
| 65 | + "type": "logic", |
| 66 | + "liquid": "{% if input == 'technical' %} true {% endif %}" |
| 67 | + } |
| 68 | + }, |
| 69 | + { |
| 70 | + "from": "billing", |
| 71 | + "to": "transfer_billing" |
| 72 | + }, |
| 73 | + { |
| 74 | + "from": "technical", |
| 75 | + "to": "transfer_technical" |
| 76 | + } |
| 77 | + ] |
| 78 | + } |
| 79 | + ``` |
| 80 | +</Accordion> |
| 81 | + |
| 82 | +2. **Telnyx Phone Number Support**: Telnyx is now available as a phone number provider alongside Twilio and Vonage. |
| 83 | + - Use the [`TelnyxPhoneNumber`](https://api.vapi.ai/api#:~:text=TelnyxPhoneNumber), [`CreateTelnyxPhoneNumberDTO`](https://api.vapi.ai/api#:~:text=CreateTelnyxPhoneNumberDTO), and [`UpdateTelnyxPhoneNumberDTO`](https://api.vapi.ai/api#:~:text=UpdateTelnyxPhoneNumberDTO) schemas with [`/phone-number`](https://api.vapi.ai/api#/Phone%20Numbers) endpoints to create and update Telnyx phone numbers. |
| 84 | + - The `Call.phoneCallProviderId` now includes Telnyx's `callControlId` alongside Twilio's `callSid` and Vonage's `conversationUuid`. |
| 85 | + |
| 86 | +3. **New Voice Options**: |
| 87 | + - **Vapi Voices**: New Vapi voices - `Elliot`, `Rohan`, `Lily`, `Savannah`, and `Hana` |
| 88 | + - **Hume Voice**: New provider with `octave` model and customizable voice settings |
| 89 | + - **Neuphonic Voice**: New provider with `neu_hq` (higher quality) and `neu_fast` (faster) models |
| 90 | + |
| 91 | +4. **New Cerebras Model**: [`CerebrasModel`](https://api.vapi.ai/api#:~:text=CerebrasModel) Supports `llama3.1-8b` and `llama-3.3-70b` models |
| 92 | + |
| 93 | +5. **Enhanced Transcription**: |
| 94 | + - **New Providers**: [ElevenLabs](https://api.vapi.ai/api#:~:text=ElevenLabsTranscriber) and [Speechmatics](https://api.vapi.ai/api#:~:text=SpeechmaticsTranscriber) transcribers now available. |
| 95 | + - **DeepgramTranscriber Numerals**: New `numerals` option converts spoken numbers to digits (e.g., "nine-seven-two" → "972") |
| 96 | + |
| 97 | +6. **Improved Voicemail Detection**: You can now use multiple provider implementations for `assistant.voicemailDetection` (Google, OpenAI, Twilio). OpenAI implementation allows configuring detection duration (5-60 seconds, default: 15). |
| 98 | + |
| 99 | +7. **Smart Endpointing Upgrade**: Now supports LiveKit as an alternative to Vapi's custom-trained model in [`StartSpeakingPlan.smartEndpointingEnabled`](https://api.vapi.ai/api#:~:text=StartSpeakingPlan). LiveKit only supports English but may offer different endpointing characteristics. |
| 100 | + |
| 101 | +8. **Observability with Langfuse**: New `assistant.observabilityPlan` property allows integration with Langfuse for tracing and monitoring of assistant calls. Configure with [LangfuseObservabilityPlan](https://api.vapi.ai/api#:~:text=LangfuseObservabilityPlan). |
| 102 | + |
| 103 | +9. **More Credential Support**: Added support for Cerebras, Google, Hume, InflectionAI, Mistral, Trieve, and Neuphonic credentials in `assistant.credentials` |
0 commit comments