mathusan
12/18/2025, 6:58 PMVapi Support Bot
12/18/2025, 6:59 PMX-Call-Id for calls and X-Chat-Id for chats. You can use this in your backend to set a mode-specific system prompt or logic.
Example:
js
if (headers['X-Call-Id']) {
// Set system prompt for call mode
} else if (headers['X-Chat-Id']) {
// Set system prompt for chat mode
}
This lets you tailor communication style based on the session mode.
According to the documentation, updating the system prompt alone may not suffice unless you pass the mode context yourself via your integration logic.
Source:
- [MCP Tool Documentation](https://docs.vapi.ai/tools/mcp)Chiranjeet Mishra
12/19/2025, 2:29 PM