Saltlife Kid
05/14/2025, 12:53 PMVapi Support Bot
05/14/2025, 12:54 PMjson
{
"model": {
"provider": "openai",
"model": "gpt-4",
"messages": [
{ "role": "system", "content": "You are a voice assistant managing a call with a customer. Utilize the following previous call history to deliver more personalized and contextual responses." },
{ "role": "system", "content": "Previous call history: [Include formatted call logs, outcomes, and significant details from past interactions with this customer]" }
]
}
}
This approach is not built-in and must be implemented externally through your own programming and database management.
Sources:
- [Vapi Documentation Example: Inbound Support](https://docs.vapi.ai/examples/inbound-support)
- [Discord Channel Discussion](https://discord.com/channels/1211482211119796234/1334393915071135825)Pigeon
05/14/2025, 12:58 PMmessages
or similar property, like AI example.Saltlife Kid
05/14/2025, 2:25 PMPigeon
05/14/2025, 2:42 PMPigeon
05/14/2025, 2:43 PMconst completion = await client.chat.completions.create({
model: "gpt-4.1",
messages: [
{
role: "developer",
content: "Talk like a pirate."
},
{
role: "user",
content: "Are semicolons optional in JavaScript?",
},
],
});
Saltlife Kid
05/14/2025, 3:03 PM