Idle Message
# support
e
I’d like to know how I could manage it to set up the idle message in another language than English? because we are in Germany here and it doesn’t feel that good to have an English speaking idol message, but I noticed that you don’t have the opportunity to change the language inside of the dashboard.
v
@Exideus_Systems Absolutely, I can guide you through the process of setting up an idle message in German. Since the language configuration in the voice section is deprecated, you'll need to select a voice that supports German from your voice provider. Here's what you can do: 1. Go to your voice assistant's settings. 2. Look for the section where you can choose a voice for your assistant. 3. From the list of available voices, select a voice that supports the German language. 4. Once you've chosen the German voice, you can then set up your idle message using that voice. If you need assistance in selecting a German voice or have any other questions, please let me know!
You can continue this conversation by mentioning me in the message.
m
hei, use the API
the PATCH on the assistant, sending the massageplan
e
That doesn’t make sense because I already have German speaking agents, but if I’m going to the advanced settings to idle messages, they are just kind of templates in English language, and this is spoken in English and not in German.
v
@Exideus_Systems I understand the confusion. If the idle message templates are only available in English, you will need to create a custom idle message in German. Here's what you can do: 1. Write the message you want to be spoken when the assistant is idle in German. 2. Access the advanced settings where you configure idle messages. 3. Replace the default English template with your custom German message. 4. Ensure that the voice selected for your assistant supports German, as this will allow the message to be spoken in the correct language. If the system does not allow you to input a custom message directly, you may need to use an API call to update the idle message. In that case, you would use the PATCH method to send the updated message plan to the assistant's configuration. Should you need further assistance with the API call or have any other questions, please let me know!
e
Sry I dont understand that 🙂
m
are you familiar with API?
e
Somehow
m
thinga i normally do:
1 - set an english iddle message plan in vapi dashboard
2 - get the assistant via api -> https://docs.vapi.ai/api-reference/assistants/get
3 - copy the message plan
that is something like this: "messagePlan": { "idleMessages": [ "still there??" ], "idleMessageMaxSpokenCount": 1 "idleTimeoutSeconds": 1 }
4 - change the content of messageplan, for example changing from ''still there??'' to the language i wnat to use
5 - update the assistante with the patch api https://docs.vapi.ai/api-reference/assistants/update sending, in the body, only the new messageplan, this will change it in the assistant
e
But where shall I add this? Sry im still learning @User
m
you need to use the API, do you kno Postman?
e
I inow it but never used it
m
oh, ok
i think you need to understand how API works, once you do this, my ''5 steps guide'' it would be pretty clear
e
I am studying everyday to learn more
m
yu need to get confident with api and postman, once you do this it will pretty easy to undesratsn my instructions
c
Same problem here. Is there any Youtube Video how to handle the API?
s
@Exideus_Systems You can set the custom idle messages using API. Here's what you need to do:-
Copy code
curl -X POST https://api.vapi.ai/assistant \
     -H "Authorization: Bearer " \
     -H "Content-Type: application/json" \
     -d '{
  "messagePlan": {
    "idleMessages": [
      "first-idle-message-in-your-langauge",
      "second-idle-message-in-your-langauge"
    ],
    "idleMessageMaxSpokenCount": 3,
    "idleTimeoutSeconds": 5
  }
}'
Ref: https://docs.vapi.ai/api-reference/assistants/create?playground=%2Fapi-reference%2Fassistants%2Fcreate
Do let me know if you require further help.
e
So youre saying it is possible to integrate 2 different idle messages?
s
Vapi will choose randomly from one of them.
m
2 or more
c
I successfully made a get call with postman. How can I set the idle message? with patch? How do I choose the right assistent? https://cdn.discordapp.com/attachments/1311607535903707216/1312790892163366993/image.png?ex=674dc74b&is=674c75cb&hm=f663d663ade7856c55e9372400e56822d2ff3d23c1473902e94a562be5b97968&
I am trying to set the Idle message for serveral hours, thats very frustrating. I use curl with powershell, but it doesn't work curl.exe -X POST "https://api.vapi.ai/assistant"
Copy code
-H "Authorization: Bearer xxxxxxxxxxxxxxxxxx"
-H "Content-Type: application/json" ` -d '{"messagePlan":{"idleMessages":["Hallo?","Sind Sie noch da?"],"idleMessageMaxSpokenCount":3,"idleTimeoutSeconds":5}}' And I get this message: {"message":"Expected property name or '}' in JSON at position 1 (line 1 column 2)","error":"Bad Request","statusCode":400} Asking ChatGPT / Claude / Mistral... all didn't help☹️
s
@Claudio Pillath here's the sample CURL :
Copy code
curl -X POST https://api.vapi.ai/assistant \
     -H "Authorization: Bearer " \
     -H "Content-Type: application/json" \
     -d '{
  "messagePlan": {
    "idleMessages": [
      "first-idle-message-here"
    ]
  },
  "model": {
    "provider": "openai"
  }
}'
c
That doesn't work
s
s
@Claudio Pillath you are sending auth key that's why your getting the error message, try using the API reference and then you can find out the diff.
7 Views