Skipping First Message #support
# support
j
Im using VAPI to send a test announcement to SIP speaker. The call works and the speaker picks up the call automatically but I need VAPI to bypass the first message and execute the system prompt instructions without any response from the speaker. #1211483291191083018
v
Hi Jose! 👋 I understand you need VAPI to bypass the first message and directly execute system prompt instructions when sending announcements to a SIP speaker. While I can't guarantee a perfect solution, I can suggest several configuration options that might help. Here are some approaches you can try: 1. **Set an empty first message**: Try setting the
firstMessage
parameter to an empty string in your assistant configuration:
Copy code
javascript
{
  "assistant": {
    "firstMessage": "",
    // other configuration options
  }
}
According to [VAPI documentation](https://docs.vapi.ai/quickstart/dashboard), the first message is optional, so it can be disabled. 2. **Use the
triggerResponseEnabled
flag**: This controls whether a system message triggers an LLM response:
Copy code
javascript
vapi.send({
    type: 'add-message',
    message: {
        role: 'system',
        content: 'Your announcement content here'
    },
    triggerResponseEnabled: false
})
This approach was mentioned in [Discord discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1338730919904673853) about controlling LLM responses. 3. **Use the
mute-assistant
control message**: This stops the current LLM generation:
Copy code
javascript
vapi.send({
    type: 'control',
    control: 'mute-assistant'
})
4. **Set `assistantOverrides.maxDurationSeconds`**: This parameter can mute the assistant for a specified duration, preventing it from speaking:
Copy code
javascript
{
  "assistantOverrides": {
    "maxDurationSeconds": 120
  }
}
5. **Adjust endpointing parameters**: Try configuring
numWordsToInterruptAssistant
to a higher value and set appropriate
maxDurationSeconds
to control the AI's timing behavior. Note that according to [VAPI documentation](https://docs.vapi.ai/quickstart/web), the first message cannot be interrupted and is guaranteed to be spoken, so you might need to experiment with these approaches to find what works best for your use case.
Would you like me to provide more details on any of these approaches? Sources: - [VAPI documentation](https://docs.vapi.ai/quickstart/dashboard) - [Discord discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1338730919904673853) - [VAPI documentation](https://docs.vapi.ai/quickstart/web)
k
Hey! To help track down this issue, could you share: - The call ID - What response you expected to get - What response you actually got instead This would really help us figure out what went wrong!
j
I have not been successful avoiding the First Message Playing. How can i go direct from first message to the system prompt without waiting for someone to responsd to the first message?
d
How to solve refs error
k
checking if this is resolved/solved for you?
3 Views