Change FirstMessage based on time of day
# support
m
Hello what's the best way to have a different message based on the time of the day? I've done it using the Dynamic first message option, prompting and giving it the time. IT seems to work 78% of the time. For example this call got the wrong message: e874fd96-fd99-483f-9efa-04c1a8773e8d whereas this one 10 minutes later got it right: 40402b58-474c-4bd1-8f1b-60fa76d4d041 How can I get it to be consistently right?
@Vapi Support Bot
@User
c
Hey, you'll need to create custom logic based on the assistant request. Try searching for "transient assistant" in Vapi on YouTube, and you'll find a bunch of related videos.
m
So you're saying it can't be done through the prompt reliably. Only through code? Like before 6pm use this assistant vs after 6pm?
@Sahil
c
Yup, you will need to write code for it to make it work.
m
ok thnaks
2 Views