Skip to content

Commit cfbd66f

Browse files
humfordskeptrunedev
authored andcommitted
VAP-3082: Add public docs section and introduction page for Workflows (open beta) and Voice Testing (#202)
* restructure * add workflows section * added all workflow docs, voice testing page
1 parent d5e9789 commit cfbd66f

24 files changed

+462
-58
lines changed

fern/assistants.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
---
2-
title: Introduction
2+
title: Introduction to Assistants
33
subtitle: The core building-block of voice agents on Vapi.
44
slug: assistants
55
---
66

7-
**Assistant** is a fancy word for an AI configuration that can be used across phone calls and Vapi clients. Your voice assistant can augment your customer support and
8-
experience for call centers, business websites, mobile apps, and much more.
7+
[**Assistant**](/api-reference/assistants/create) is a fancy word for an AI configuration that can be used across phone calls and Vapi clients. Your voice assistant can augment your customer support and experience for call centers, business websites, mobile apps, and much more.
8+
9+
<EndpointResponseSnippet endpoint='POST /assistant' />
910

1011
## Core Components
1112

@@ -18,7 +19,7 @@ There are three core components that make up an assistant:
1819
These components can be configured, mixed, and matched for your specific use case.
1920

2021
<Info>
21-
View all configurable properties in the [API Reference](/api-reference/assistants/create-assistant)
22+
View all configurable properties in the [API Reference](/api-reference/assistants/create-assistant).
2223
</Info>
2324

2425
## Key Features

fern/blocks.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
---
2-
title: Introduction
2+
title: Introduction to Blocks
33
subtitle: Breaking down bot conversations into smaller, more manageable prompts
44
slug: blocks
55
---
66

7+
<Warning>
8+
**Blocks** is being deprecated in favor of [Workflows](/workflows). We recommend using Workflows for all new development as it provides a more powerful and flexible way to structure conversational AI. We're working on migration tools to help transition existing Blocks implementations to Workflows.
9+
</Warning>
710

8-
9-
We're currently running a beta for **Blocks**, an upcoming feature from [Vapi.ai](http://vapi.ai/) aimed at improving bot conversations. The problem we've noticed is that single LLM prompts are prone to hallucinations, unreliable tool calls, and can’t handle many-step complex instructions.
11+
We're currently running a beta for [**Blocks**](/api-reference/blocks/create), an upcoming feature from [Vapi.ai](http://vapi.ai/) aimed at improving bot conversations. The problem we've noticed is that single LLM prompts are prone to hallucinations, unreliable tool calls, and can’t handle many-step complex instructions.
1012

1113
**By breaking the conversation into smaller, more manageable prompts**, we can guarantee the bot will do this, then that, or if this happens, then that happens. It’s like having a checklist for conversations — less room for error, more room for getting things right.
1214

fern/blocks/block-types.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ subtitle: 'Building the Logic and Actions for Each Step in Your Conversation '
44
slug: blocks/block-types
55
---
66

7+
<Warning>
8+
**Blocks** is being deprecated in favor of [Workflows](/workflows). We recommend using Workflows for all new development as it provides a more powerful and flexible way to structure conversational AI. We're working on migration tools to help transition existing Blocks implementations to Workflows.
9+
</Warning>
710

811
[**Blocks**](https://api.vapi.ai/api#/Blocks/BlockController_create) are the functional units within a Step, defining what action happens at each stage of a conversation. Each Step can contain only one Block, and there are three main types of Blocks, each designed to handle different aspects of conversation flow.
912

fern/blocks/steps.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ subtitle: Building and Controlling Conversation Flow for Your Assistants
44
slug: blocks/steps
55
---
66

7+
<Warning>
8+
**Blocks** is being deprecated in favor of [Workflows](/workflows). We recommend using Workflows for all new development as it provides a more powerful and flexible way to structure conversational AI. We're working on migration tools to help transition existing Blocks implementations to Workflows.
9+
</Warning>
710

811
[**Steps**](https://api.vapi.ai/api#:~:text=HandoffStep) are the core building blocks that dictate how conversations progress in a bot interaction. Each Step represents a distinct point in the conversation where the bot performs an action, gathers information, or decides where to go next. Think of Steps as checkpoints in a conversation that guide the flow, manage user inputs, and determine outcomes.
912

10-
<Note>
11-
Blocks is currently in beta. We're excited to have you try this new feature and welcome your [feedback](https://discord.com/invite/pUFNcf2WmH) as we continue to refine and improve the experience.
12-
</Note>
13-
1413
#### Features
1514

1615
- **Output:** The data or response expected from the step, as outlined in the block's `outputSchema`.

fern/docs.yml

Lines changed: 44 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,8 @@ navigation:
9191
layout:
9292
- section: Getting Started
9393
contents:
94-
- page: Introduction
95-
path: introduction.mdx
96-
- section: How Vapi Works
97-
contents:
98-
- page: Core Models
99-
path: quickstart.mdx
100-
- page: Orchestration Models
101-
path: how-vapi-works.mdx
10294
- section: Quickstart
95+
path: introduction.mdx
10396
contents:
10497
- page: Dashboard Quickstart
10598
path: quickstart/dashboard.mdx
@@ -109,6 +102,12 @@ navigation:
109102
path: quickstart/outbound.mdx
110103
- page: Web Call Quickstart
111104
path: quickstart/web.mdx
105+
- section: How Vapi Works
106+
contents:
107+
- page: Core Models
108+
path: quickstart.mdx
109+
- page: Orchestration Models
110+
path: how-vapi-works.mdx
112111
- section: Use Cases
113112
contents:
114113
- page: Outbound Sales
@@ -122,9 +121,8 @@ navigation:
122121
- section: Build
123122
contents:
124123
- section: Assistants
124+
path: assistants.mdx
125125
contents:
126-
- page: Introduction
127-
path: assistants.mdx
128126
- page: Voice AI Prompting Guide
129127
path: prompting-guide.mdx
130128
- page: Persistent Assistants
@@ -137,48 +135,67 @@ navigation:
137135
path: assistants/background-messages.mdx
138136
- page: Voice Formatting Plan
139137
path: assistants/voice-formatting-plan.mdx
138+
- section: Workflows
139+
path: workflows.mdx
140+
contents:
141+
- section: Verbs
142+
contents:
143+
- page: Say
144+
path: workflows/verbs/say.mdx
145+
- page: Gather
146+
path: workflows/verbs/gather.mdx
147+
- page: API Request
148+
path: workflows/verbs/api-request.mdx
149+
- page: Transfer
150+
path: workflows/verbs/transfer.mdx
151+
- page: Hangup
152+
path: workflows/verbs/hangup.mdx
153+
- section: Conditions
154+
contents:
155+
- page: Logical Conditions
156+
path: workflows/logical-conditions.mdx
157+
- page: AI Conditions
158+
path: workflows/ai-conditions.mdx
140159
- section: Blocks
160+
path: blocks.mdx
141161
contents:
142-
- page: Introduction
143-
path: blocks.mdx
144162
- page: Steps
145163
path: blocks/steps.mdx
146164
- page: Block Types
147165
path: blocks/block-types.mdx
148166
- section: Tools
167+
path: tools/introduction.mdx
149168
contents:
150-
- page: Introduction
151-
path: tools/introduction.mdx
152169
- page: Default Tools
153170
path: tools/default-tools.mdx
154171
- page: Custom Tools
155172
path: tools/custom-tools.mdx
156173
- page: Make & GHL Tools
157174
path: GHL.mdx
158175
- section: Knowledge Base
176+
path: knowledge-base/knowledge-base.mdx
159177
contents:
160-
- page: Introduction
161-
path: knowledge-base/knowledge-base.mdx
162178
- page: Integrating with Trieve
163179
path: knowledge-base/integrating-with-trieve.mdx
164180
- section: Squads
181+
path: squads.mdx
165182
contents:
166-
- page: Introduction
167-
path: squads.mdx
168183
- page: Example
169184
path: squads-example.mdx
170185
- page: Silent Transfers
171186
path: squads/silent-transfers.mdx
172-
# - section: Test
173-
# contents:
174-
# - page: Voice Testing
175-
# path: support.mdx
187+
- section: Test
188+
contents:
189+
- page: Manual Testing
190+
hidden: true
191+
path: test/manual-testing.mdx
192+
- page: Voice AI Testing
193+
path: test/voice-testing.mdx
176194
- section: Deploy
177195
contents:
178196
- section: Calls
197+
path: phone-calling.mdx
179198
contents:
180-
- page: Introduction
181-
path: phone-calling.mdx
182199
- page: Call Forwarding
183200
path: call-forwarding.mdx
184201
- page: Dynamic Call Transfers
@@ -192,9 +209,8 @@ navigation:
192209
- page: Voice Mail Detection
193210
path: calls/voice-mail-detection.mdx
194211
- section: Vapi SDKs
212+
path: sdks.mdx
195213
contents:
196-
- page: Overview
197-
path: sdks.mdx
198214
- section: Client SDKs
199215
contents:
200216
- page: Web SDK
@@ -206,19 +222,17 @@ navigation:
206222
- page: Code Resources
207223
path: resources.mdx
208224
- section: Server URLs
225+
path: server-url.mdx
209226
contents:
210-
- page: Introduction
211-
path: server-url.mdx
212227
- page: Setting Server URLs
213228
path: server-url/setting-server-urls.mdx
214229
- page: Server Events
215230
path: server-url/events.mdx
216231
- page: Developing Locally
217232
path: server-url/developing-locally.mdx
218233
- section: SIP Telephony
234+
path: advanced/sip/sip.mdx
219235
contents:
220-
- page: SIP Introduction
221-
path: advanced/sip/sip.mdx
222236
- page: Telnyx Integration
223237
path: advanced/sip/sip-telnyx.mdx
224238
- section: Advanced Concepts

fern/introduction.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Introduction
2+
title: Introduction to Vapi
33
subtitle: Vapi is the Voice AI platform for developers.
44
slug: introduction
55
---

fern/knowledge-base/knowledge-base.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Creating Custom Knowledge Bases for Your Voice AI Assistants
2+
title: Introduction to Knowledge Bases
33
subtitle: >-
44
Learn how to create and integrate custom knowledge bases into your voice AI
55
assistants.
@@ -8,7 +8,7 @@ slug: knowledge-base
88

99
## **What is Vapi's Knowledge Base?**
1010

11-
A Knowledge Base is a collection of custom files that contain information on specific topics or domains. By integrating a Knowledge Base into your voice AI assistant, you can enable it to provide more accurate and informative responses to user queries. This is currently available in Vapi via the API, and will be on the dashboard soon.
11+
A [**Knowledge Base**](/api-reference/knowledge-bases/create) is a collection of custom files that contain information on specific topics or domains. By integrating a Knowledge Base into your voice AI assistant, you can enable it to provide more accurate and informative responses to user queries. This is currently available in Vapi via the API, and will be on the dashboard soon.
1212

1313
### **Why Use a Knowledge Base?**
1414

@@ -18,6 +18,10 @@ Using a Knowledge Base with your voice AI assistant offers several benefits:
1818
- **Enhanced capabilities**: A Knowledge Base enables your assistant to answer complex queries and provide detailed responses to user inquiries.
1919
- **Customization**: With a Knowledge Base, you can tailor your assistant's responses to specific domains or topics, making it more effective and informative.
2020

21+
<Info>
22+
Knowledge Bases are configured through the API, view all configurable properties in the [API Reference](/api-reference/knowledge-bases/create-knowledge-base).
23+
</Info>
24+
2125
## **How to Create a Knowledge Base**
2226

2327
To create a Knowledge Base, follow these steps:

fern/prompting-guide.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ To enhance clarity and maintainability, it's recommended to break down system pr
4444

4545
**Example:**
4646

47-
```
47+
```md wordWrap
4848
[Identity]
4949
You are a helpful and knowledgeable virtual assistant for a travel booking platform.
5050

@@ -69,7 +69,7 @@ You are a helpful and knowledgeable virtual assistant for a travel booking platf
6969
For complex interactions, breaking down the task into a sequence of steps enhances the agent's understanding and ensures a structured conversation flow. Incorporate conditional logic to guide the agent's responses based on user input.
7070
Example:
7171

72-
```
72+
```md wordWrap
7373
[Task]
7474
1. Welcome the user to the technical support service.
7575
2. Inquire about the nature of the technical issue.
@@ -82,7 +82,7 @@ Example:
8282

8383
To prevent the agent from rushing through the conversation, explicitly indicate when to wait for the user's response before proceeding to the next step.
8484

85-
```
85+
```md wordWrap
8686
[Task]
8787
1. Inform the user about the purpose of the call.
8888
2. Ask for the user's name and account information.
@@ -95,7 +95,7 @@ To prevent the agent from rushing through the conversation, explicitly indicate
9595
Specify when and how the agent should utilize external tools or APIs. Reference the tools by their designated names and describe their functions to ensure accurate invocation.
9696
Example:
9797

98-
```
98+
```md wordWrap
9999
[Task]
100100
...
101101
3. If the user wants to know about something, use the get_data function with the parameter 'query', which will contain the user's question to initiate the process.
@@ -108,7 +108,7 @@ If the AI determines that the user needs to be transferred, do not send any text
108108

109109
Always include fallback options and error-handling mechanisms in your prompts. This ensures that the Agent can gracefully handle unexpected user inputs or system errors.
110110

111-
```
111+
```md wordWrap
112112
[Error Handling]
113113
If the customer's response is unclear, ask clarifying questions. If you encounter any issues, inform the customer politely and ask to repeat.
114114
```
@@ -134,7 +134,7 @@ When working with numbers that need to be expressed in writing, it's often prefe
134134

135135
Add personality and provide tone to the assistant to make it sound more like a human being. Here are some examples:
136136

137-
```
137+
```md wordWrap
138138
- Tone: conversational, spartan, use less corporate jargon
139139
- Act as Iva, a sales agent who is a human being and has real feelings.
140140
```
@@ -143,7 +143,7 @@ Add personality and provide tone to the assistant to make it sound more like a h
143143

144144
### Appointment Setter
145145

146-
```
146+
```md wordWrap
147147
[Role]
148148
You're Susan, an AI assistant for xxx. Your primary task is to interact with the customer, ask questions, and gather information for appointment booking.
149149

fern/squads.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
---
2-
title: Squads
2+
title: Introduction to Squads (Multi-Assistant Conversations)
33
subtitle: Use Squads to handle complex workflows and tasks.
44
slug: squads
55
---
66

7-
87
Sometimes, complex workflows are easier to manage with multiple assistants.
98
You can think of each assistant in a Squad as a leg of a conversation tree.
109
For example, you might have one assistant for lead qualification, which transfers to another for booking an appointment if they’re qualified.
1110

1211
Prior to Squads you would put all functionality in one assistant, but Squads were added to break up the complexity of larger prompts into smaller specialized assistants with specific tools and fewer goals.
1312
Squads enable calls to transfer assistants mid-conversation, while maintaining full conversation context.
1413

14+
<Info>
15+
View all configurable properties in the [API Reference](/api-reference/squads/create-squad).
16+
</Info>
17+
1518
## Usage
1619

1720
To use Squads, you can create a `squad` when starting a call and specify `members` as a list of assistants and destinations.
@@ -45,7 +48,7 @@ Transfers are specified by assistant name and are used when the model recognizes
4548
```
4649

4750

48-
## Best practices
51+
## Best Practices
4952

5053
The following are some best practices for using Squads to reduce errors:
5154

fern/static/images/.DS_Store

2 KB
Binary file not shown.

0 commit comments

Comments
 (0)