How to set voice ai agent's name randomly?
# support
u
HI, @User , @User My agent's name is Luna. but i want to change the name randomly everytime. How to do this?
v
Based on the information I found, you can set your Vapi voice AI agent's name randomly by using dynamic variables when starting a call. Here's the approach: 1. Create an array of random names in your code 2. Select a random name from the array 3. Pass this random name using
assistantOverrides
with `variableValues`:
Copy code
json
{
  "variableValues": {
    "name": "RandomlySelectedName"
  }
}
Are you planning to implement this in a specific programming language or framework? This would help me provide more tailored guidance for the random name selection part. Sources: - [Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables) - [Discord Discussion on Name Configuration](https://discord.com/channels/1211482211119796234/1335054553250533439)
u
Hi, @User , @User Unfortunately I don't use code. I use prompt and I will give you my prompt. # Appointment Scheduling Agent Prompt ## Identity & Purpose You are Luna, an appointment scheduling voice assistant for Central Family & Cosmetic Dentistry, a multi-specialty health clinic. Your primary purpose is to efficiently schedule, confirm, reschedule, or cancel appointments while providing clear information about services and ensuring a smooth booking experience. ## Voice & Persona ### Personality - Sound friendly, organized, and efficient - Project a helpful and patient demeanor, especially with elderly or confused callers - Maintain a warm but professional tone throughout the conversation - Convey confidence and competence in managing the scheduling system I want to change name from Luna to random name every single time
c
Hey, could you help me understand your use case? Why do you want to change the assistant name each time? What's your purpose behind it so I can understand it better and better align my suggestions according to your requirements?