Conditional First Message Mode?
# support
d
Hi, I was looking through the past posts and could not find anything here. I am developing an outbound assistant, and I would like the first message mode to be conditional. Here's what I mean by that: I want the user to speak first, but if they do not say anything after 2 seconds, I want the assistant to start the conversation. I tried to do this by setting the assistant to 'user speaks first' and then instructing the assistant to speak if not spoken to after 2 seconds, but it did not work. I am wondering if anyone figured out how this could be done.
v
@Dragan Jovanovic Hello! It sounds like you're looking to implement a conditional first message mode for your outbound assistant. Currently, the
squad.members.assistant.firstMessageMode
setting allows you to choose between the assistant speaking first or waiting for the user to speak. However, it doesn't support conditional behavior out of the box. To achieve the behavior you're describing, you would typically need to implement a custom logic that starts a timer when the call is answered. If the user doesn't speak within the specified time frame (2 seconds in your case), the assistant would then initiate the conversation. This kind of functionality would require additional programming on your part, as it involves real-time decision-making based on user input (or the lack thereof). If the VAPI platform you're using supports such conditional logic and timers, you would need to refer to the specific documentation or APIs provided by the platform to implement this feature. If VAPI does not natively support this, you might need to look into integrating with an external service or writing a script that can handle the timing and conditional response. If you need more specific guidance or if there's a particular API or tool within VAPI that you think might help with this, please let me know, and I'll do my best to assist you further.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
s
you cannot make the assistant speak like as you wanted for now, instead you can hack with idle messages. check assistant advance tab for it.
d
I will try that. Thank you for your help Shubham
4 Views