How to link earlier vapi outbound call details int...
# support
d
Hi, We would like to our vocie agent to know all previous call details for the particular customer when it is making the call. We are thinking making separate assistant for each outbound call. So is there any way we can make voice agent aware of previous call details if it was made for that same customer earlier already.
v
@dl_amit Hello! To make your voice agent aware of previous call details for a particular customer, you can implement a system that retrieves and provides the agent with the customer's call history before making the call. This would typically involve integrating your voice agent with a customer relationship management (CRM) system or a database where call logs are stored. Here's a general approach you could take: 1. **Customer Identification**: Ensure that each customer has a unique identifier that can be used to retrieve their call history. 2. **Data Retrieval**: Before initiating a call, use the customer's unique identifier to query your CRM or database for their previous call details. 3. **Data Provision**: Supply the retrieved call details to the voice agent so it can reference the information during the call. 4. **Voice Agent Configuration**: Configure your voice agent to accept and process the provided call history information to tailor the conversation based on past interactions. If you have the
recordingEnabled
option set to true, you can use the recordings as a reference for previous calls, provided that you have a system in place to associate recordings with customer identifiers. However, if
hipaaEnabled
is true, remember that no logs, recordings, or transcriptions will be stored, so you'll need to ensure that the end-of-call-report message is stored on your server with the customer's identifier for future reference. If you need assistance with setting up this functionality within VAPI or have any specific questions about implementation, please let me know!
You can continue this conversation by mentioning me in the message.
s
@dl_amit Yes, you can make your voice agent aware of previous call details by incorporating historical context into the conversation. Here's how to implement this: 1. Before each call, retrieve the customer's previous call history from your database 2. Format this historical information as context that can be understood by the AI 3. Include this context in your API calls to the language model
Here's an example of how to structure your API request:
Copy code
json
{
  "model": {
    "provider": "openai", 
    "model": "gpt-4",
    "messages": [
      {
        "role": "system",
        "content": "You are a voice assistant handling a call with a customer. Use the following previous call history to provide more personalized and contextual responses."
      },
      {
        "role": "system",
        "content": "Previous call history: [Include formatted call logs, outcomes, and important details from past interactions with this customer]"
      }
    ]
  }
}
7 Views