Issues with first messages.
# support
y
So I'm having my AI speak in a non-english language which is fine but I'm not having any success when it comes to the AI's first message. Option A: If I set it to Assistant speaks first then it will essentially introduce itself twice, once with the hardcoded message I set and then it will say something similar again after the user speaks, this is happening without me specifiying it somewhere in the prompt. Option B: I tried to let the Assistant speak first with model generated message and putting the introduction message in the prompt instead but no matter how I try it will always end up speaking in English. Option C: User speaks first: This usually comes with too much latency causing the recipient to be confused as I'm doing cold calls. I'm not certain on how I should approach this issue?
v
To ensure your assistant's first message is in your target language, update your system prompt to explicitly instruct the model which languages to use. For example:
Copy code
You are a helpful assistant that can communicate in [YOUR LANGUAGE] and English.
Language Instructions:
- You can speak and understand: [YOUR LANGUAGE] and English
- Always respond in [YOUR LANGUAGE] unless the user requests English
- Your first message should be in [YOUR LANGUAGE]
- Use culturally appropriate greetings and formality levels
Replace
[YOUR LANGUAGE]
with your desired language, and set
firstMessage
to an empty string with
firstMessageMode
as
assistant-speaks-first-with-model-generated-message
. This will prevent the model from defaulting to English for the first message. Reference: See the multilingual support documentation for more details. Source: - [Multilingual support](https://docs.vapi.ai/customization/multilingual)
y
Initially this caused my AI to speak in a completely different language, after removing the firstMessage it now speaks English.
c
Hi, could you please provide a call id where you experienced this issue? We would like to review the logs to identify the cause.
y
019a2615-744e-7ff8-a20b-85e8aeb5c7ef
5 Views