Time Specific Greeting
# support
g
How to handle Time Specific First Message / Greeting - Good afternoon - Good morning - Good eventing. Does I have to create a tool and this could be used in the welcome message? My plan is not to model a custom workflow. Or might be that the way to go?
v
Hi there! 👋 Based on the documentation I've found, Vapi doesn't have a specific built-in tool dedicated to time-specific greetings. However, you can implement this functionality without creating a complex custom workflow by using: 1. Dynamic Variables - You can use dynamic variables to customize greetings based on the time of day [Vapi Documentation](https://docs.vapi.ai/assistants) 2. Dynamic Script Handling - You could define a script with placeholders for greetings:
Copy code
Assistant: "Good {time_of_day}, this is [Assistant Name]. How can I assist you?"
Then implement logic to determine
time_of_day
based on the current system time. 3. Prompt Engineering - Structure your prompts to naturally incorporate time-based information by specifying guidelines for morning, afternoon, or evening scenarios [Vapi Prompting Guide](https://docs.vapi.ai/prompting-guide) While you don't necessarily need to create a full custom workflow, you will need to implement some logic to determine the time of day and select the appropriate greeting. This can be done through the existing conversational flow management features in Vapi. Is there a specific aspect of implementing time-based greetings you'd like more information about? Sources: - [Vapi Documentation](https://docs.vapi.ai/assistants) - [Vapi Prompting Guide](https://docs.vapi.ai/prompting-guide)
Message marked as helpful by @gigo1980! 🎉
k
Hey @gigo1980 checking if this is resolved for you?
g
Sometimes it work. But I think this is Not the final solution
k
Hello Gigo, the best solution for you is going to be to pass the time as a dynamic variable and prompt the model to take that into account in it's greeting. It may take some adjustments in the prompt to make it work the way you'd like.