fascinating-indigo
fascinating-indigo3d ago

First Message not invoked when using custom tts server

Hi Vapi team, We are trying to test the use of custom tts servers and we have observed an issue where the initial welcome message configured on an agent is completely ignored, and the conversation only starts if the user initiates it. As far as we can tell from looking at your logs as well as ours, no attempt is made to contact our servers for that initial message, can you look into that? Example: https://dashboard.vapi.ai/calls/019ae457-39af-7339-bf0e-19c9f3043bd7
VAPI Dashboard - Voice AI Management Platform
Build and manage voice AI agents that conduct human-like conversations. Access real-time analytics, configure assistants, and monitor your AI voice applications.
No description
8 Replies
Vapi Support Bot
To help diagnose why your custom TTS server isn't invoked for the initial welcome message, add logging middleware to your TTS endpoint to confirm if any "voice-request" POST is received at call start:
app.use('/api/synthesize', (req, res, next) => {
console.log('=== Incoming TTS Request ===');
console.log('Headers:', req.headers);
console.log('Body:', JSON.stringify(req.body, null, 2));
next();
});
app.use('/api/synthesize', (req, res, next) => {
console.log('=== Incoming TTS Request ===');
console.log('Headers:', req.headers);
console.log('Body:', JSON.stringify(req.body, null, 2));
next();
});
This will help you verify if Vapi is sending the initial message to your server and narrow down whether the issue is with Vapi's request or your endpoint's handling. If no request is logged, double-check your assistant's configuration for the custom TTS provider and required IDs as described in the documentation.
For more details, see the custom TTS integration guide. Source: - Custom TTS integration
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
quickest-silver
quickest-silver2d ago
I can help investigate why the initial welcome message isn’t triggering and why your custom TTS server isn’t contacted. Could you confirm if the welcome message is set to play automatically on call start or only as a first-turn AI response? This will help identify whether it’s an agent config or TTS flow issue. Once confirmed, I can guide you on the fix. @Oru/オル
fascinating-indigo
fascinating-indigoOP2d ago
@Tremix Thank you for offering to help. We currently have it configured to go to the LLM automatically. If this is not what you meant, could you share which specific configuration you would like us to share?
No description
quickest-silver
quickest-silver20h ago
Thanks for the clarification. What I meant is the exact config that controls how your first message is routed to the LLM—things like your “First Message Mode,” system prompt settings, and how the assistant is triggered. Sharing those sections will help me pinpoint whether the behavior is coming from your routing or from the model itself. I can guide you on the exact adjustment once I see that setup. @Oru/オル
fascinating-indigo
fascinating-indigoOP16h ago
Dear @Tremix here is the configuration we have
fascinating-indigo
fascinating-indigoOP16h ago
quickest-silver
quickest-silver14h ago
Thanks for sharing this — it helps a lot. The best approach is to first clean up the prompt rules and ensure the model isn’t receiving any malformed characters or broken formatting. From there, we can restructure the system message into clear sections (rules, behaviors, and allowed actions) so the LLM interprets everything correctly. Once the prompt is stable, we can run small test queries to confirm the assistant follows the restrictions, then adjust the routing or first-message logic if needed. I can help you refine this setup so the model responds consistently without breaking any of your rules. @Oru/オル
fascinating-indigo
fascinating-indigoOP12h ago
@Tremix Apologies but I do not quite understand why the prompt/model is involved here. Our issue is receiving the event for the first message in our custom voice provider. We have already been using and testing this prompt multiple times with other voice providers that are already registered on Vapi and had no issues receiving a call back from Vapi. This is only happening with a custom voice provider. This is quite an important issue for us for continuing to rely on Vapi. Please advise 🙏

Did you find this page helpful?