> ## Documentation Index
> Fetch the complete documentation index at: https://docs.convocore.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Vapi

> Connect your Vapi account to your AI agent on Convocore.

# Vapi Voice Service Integration

Welcome to the Convocore Vapi Voice Service integration guide! This document will help you quickly connect and configure the Vapi Voice Service with Convocore, allowing you to leverage voice interactions powered by AI.

## What is Vapi Voice Service?

Vapi Voice Service is a powerful tool that enables voice-based interactions through AI and language models. It provides robust capabilities for processing and interpreting spoken language, making it an ideal solution for voice-based customer interactions.

## Why Integrate Vapi with Convocore?

<Tip>
  Voice interactions can significantly improve user engagement and satisfaction. Consider using voice channels for scenarios where typing might be inconvenient or impossible for users.
</Tip>

By integrating Vapi with Convocore, you can:

* Enhance customer experiences through conversational voice interactions
* Leverage advanced AI-powered voice recognition and response capabilities
* Improve efficiency and reduce response times for common customer queries

## Prerequisites

<Card title="Need Help Setting Up?" icon="question" href="https://landing.convocore.ai/">
  Our integration specialists are available to guide you through the Vapi setup process. Reach out for personalized assistance!
</Card>

Before you start, ensure you have:

1. An active [Convocore](https://convocore.ai/) account with permissions to integrate third-party services.
2. Access to a [Vapi Voice Service](https://dashboard.vapi.ai/) account.

***

## Steps to Integrate Vapi with Convocore

<Tip>
  Make sure to keep your API keys secure and never share them publicly. Consider using environment variables for additional security.
</Tip>

### Step 1: Access the Vapi Dashboard and Retrieve API Keys

1. Sign in to your [Vapi Voice Service account](https://dashboard.vapi.ai/).

<img src="https://mintcdn.com/convocore/tRhxRHP8cCXC64Jh/images/vapi-tut/1.png?fit=max&auto=format&n=tRhxRHP8cCXC64Jh&q=85&s=bba3259693d222388e6e20e09d71f57d" alt="Dashboard Sign In" width="1910" height="898" data-path="images/vapi-tut/1.png" />

2. In the profile menu, navigate to the **API Keys** page.

3. On the **API Keys** page, locate both your **Public API Key** and **Private API Key**.

<img src="https://mintcdn.com/convocore/tRhxRHP8cCXC64Jh/images/vapi-tut/2.png?fit=max&auto=format&n=tRhxRHP8cCXC64Jh&q=85&s=3bdcb3fd45881da8a96d533129a840c6" alt="Vapi Private API Key" width="1910" height="898" data-path="images/vapi-tut/2.png" />

<img src="https://mintcdn.com/convocore/tRhxRHP8cCXC64Jh/images/vapi-tut/3.png?fit=max&auto=format&n=tRhxRHP8cCXC64Jh&q=85&s=cc5abbe6d14b59448b0725447a5e9bf1" alt="Vapi Public aPI Key" width="1910" height="898" data-path="images/vapi-tut/3.png" />

***

### Step 2: Configure Convocore for Vapi Integration

1. Log in to your [Convocore](https://convocore.ai/) account.

2. Go to the **Credentials** tab.

<img src="https://mintcdn.com/convocore/tRhxRHP8cCXC64Jh/images/vapi-tut/4.png?fit=max&auto=format&n=tRhxRHP8cCXC64Jh&q=85&s=3cf75eee0c100cbd0253006ee3ac95b1" alt="Credentials Tab" width="1910" height="898" data-path="images/vapi-tut/4.png" />

3. In the **VAPI Credentials** section, enter your **Public API Key** and **Private API Key** that you retrieved from the Vapi dashboard.

<img src="https://mintcdn.com/convocore/tRhxRHP8cCXC64Jh/images/vapi-tut/5.png?fit=max&auto=format&n=tRhxRHP8cCXC64Jh&q=85&s=09949e5d1277ddbc727a0ebedf93895f" alt="Entering VAPI Credentials" width="1910" height="898" data-path="images/vapi-tut/5.png" />

4. Click the "Save" button to store your credentials.

***

### Step 3: Retrieve the Assistant ID from Vapi Dashboard

1. Go back to your [Vapi Voice Service dashboard](https://dashboard.vapi.ai/).
2. Navigate to **Platform** > **Assistants**.
3. Select your assistant, and copy the **Assistant ID** from the assistant's details page.

<img src="https://mintcdn.com/convocore/tRhxRHP8cCXC64Jh/images/vapi-tut/6.png?fit=max&auto=format&n=tRhxRHP8cCXC64Jh&q=85&s=4ced4ee0b5d92d5ceff1fc24da4e478e" alt="Vapi Assistants Assistant ID" width="1910" height="898" data-path="images/vapi-tut/6.png" />

***

### Step 4: Configure Voice Setup for the Agent on Convocore

1. On your [Convocore](https://convocore.ai/) platform, select the **agent** you want to integrate with Vapi.
2. In the agent's details, go to the **Channels** page, and click on **Voice Setup** for the Vapi integration.

<img src="https://mintcdn.com/convocore/tRhxRHP8cCXC64Jh/images/vapi-tut/7.png?fit=max&auto=format&n=tRhxRHP8cCXC64Jh&q=85&s=7462d40e5c06fefe8c17fb256b21e0a1" alt="Voice Setup" width="1910" height="898" data-path="images/vapi-tut/7.png" />

3. In the **Voice Setup** section, enter your **Assistant ID** that you retrieved from the Vapi dashboard. Click on **Enable VAPI on Web** to enable the Vapi integration on your agent and enter your **Popup Message**. Then, click on **Save** to save the changes.

<img src="https://mintcdn.com/convocore/tRhxRHP8cCXC64Jh/images/vapi-tut/8.png?fit=max&auto=format&n=tRhxRHP8cCXC64Jh&q=85&s=c61f3bb3b30326adc111449cf6053cb7" alt="Assistant ID" width="1910" height="898" data-path="images/vapi-tut/8.png" />

### Step 5: Test the Integration

***

1. Once the Voice Setup is complete, navigate to the agent's **Channels** page.
2. You should see a **phone icon** indicating that the Vapi assistant is ready.
3. Click on the phone icon to initiate a test session and interact with the Vapi assistant to ensure it's working as expected.

<img src="https://mintcdn.com/convocore/tRhxRHP8cCXC64Jh/images/vapi-tut/9.png?fit=max&auto=format&n=tRhxRHP8cCXC64Jh&q=85&s=f21c320edb72476d07d1e5c4d752ad65" alt="Testing Vapi Assistant" width="1910" height="898" data-path="images/vapi-tut/9.png" />

***

### Learn More

* This tutorial video provides a comprehensive guide on connecting VAPI to your Convocore agent:

<iframe width="100%" height="450" src="https://www.youtube.com/embed/KI7k3WoLv20?start=56" title="Connect VAPI Tutorial" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen" allowfullscreen />

***

## Troubleshooting

<Note>
  Most integration issues can be resolved by double-checking credentials and ensuring all required permissions are in place.
</Note>

If you encounter issues with the Vapi Voice Service integration, try the following steps:

* **API Key errors:** Double-check that you entered the correct **Public** and **Private API Keys** in both the Vapi and Convocore platforms. Ensure there are no spaces or missing characters
* **Voice Assistant not responding:** Ensure that the Assistant ID is correct and that your agent has been properly configured for voice interactions
* **Phone icon not appearing:** Verify that the **Enable VAPI on Web** option is checked in the **Voice Setup** section of your agent's Channels page

## Usage Limits and Pricing

<Card title="Optimize Your Usage" icon="chart-line" href="https://dashboard.vapi.ai/usage">
  Monitor your voice interaction metrics and usage patterns to optimize costs and improve performance. Check your dashboard regularly!
</Card>

* Be aware of your Vapi Voice Service plan limits and associated costs
* Monitor your usage regularly to avoid unexpected charges

## Security Considerations

<Warning>
  Exposing API keys in public or client-side code can lead to unauthorized access and potential security breaches. Always follow security best practices when handling credentials.
</Warning>

* **API Key Protection:**
  * Never expose your API keys in the client-side code
  * Rotate keys periodically for enhanced security
  * Store keys securely in environment variables

## Best Practices

<Note>
  Creating a test environment before deploying to production can help identify and resolve potential issues early in the integration process.
</Note>

* **Test frequently:** Before going live, thoroughly test the voice interactions to ensure a smooth user experience
* **Monitor usage:** Regularly monitor the performance of the voice assistant through the Vapi dashboard to identify any potential issues or improvements
* **Update as needed:** Make sure to periodically update your API keys and assistant settings to keep the integration secure and up-to-date
