Can I have the agent say the request-start on tool...
# support
a
Can I have the system say the request-start, etc messages in the language set for the agent? Currently no matter what language the agent is speaking it will say these phrases in ENGLISH. For example if I have a Spanish speaking agent, it will speak these in ENGLISH even if all the conversation is in SPANISH.... "messages": [ { "type": "request-start", "content": "Hold on a moment while I create a support ticket for you" }, { "type": "request-failed", "content": "I couldn't file a ticket for you right now, should I transfer you?" } ],
v
message has been deleted
@AiTitus :) Absolutely, you can configure the system to use localized messages for system prompts such as "request-start" or "request-failed" to match the language of the agent. This ensures a consistent experience for users interacting with the agent in their preferred language. To achieve this, you would typically need to set up a localization file or database that contains the translations of these system messages in the desired languages. Then, the system should be programmed to detect the current language of the agent and select the appropriate message from the localization file. If you're using a specific voice API or platform, you may need to check their documentation or settings to see how to implement multilingual support for system messages. If the platform supports dynamic content, you could also programmatically replace the messages based on the agent's language setting. If you need assistance with setting this up or have any other questions, please let me know!
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
s
Wanted to let you know that you can now set multiple message for the tools calling. You can checkout FunctionTool -> messages -> Any tools message -> then there is property of contents which you need to set. https://api.vapi.ai/api-json#
a
this is a dump of the entire API in JSON, should I sift through it to find out what you are talking about or is there an area in your swagger?
I need a better answer please if you can provide it since this is a ton of JSON to sort through without any clear idea of where to go @User
s
components > schemas > FunctionTool -> messages -> Any tools message -> then there is property of contents which you need to set. @AiTitus :) this was the path.
a
what tool do you use to navigate the https://api.vapi.ai/api-json to find the paths, etc?
this part? "tools": [ { "async": false, "messages": [ { "contents": [ { "type": "text", "text": "string", "language": "aa" } ],
can i override this for transient agents at all? I have an agent that speaks multiple languages so how would i best dynamically adjust the tool to speak the current spoken language @Shubham Bajaj . Thanks!
do you have an example for me if possible? thanks a bunch!
s
@AiTitus :) I don't have concrete example currently for native language tool call message but dropping a rough example below and yes you can create dynamic tools for transient assistants.
Copy code
json
{
"messages": [{type: "insert-type-here", "contents": [type: "text", text: "content-here", lang: "en"] }]
}
a
do you have an example of dynamic tools for transient assistants, that would be very helpful like the JSON structure, I see there is a tools item but normally it shows the tool id thanks @Shubham Bajaj !
s
with transient assistant you have to pass complete tool config under
tools
property.
Copy code
json
{
...exisitingAssistantConfig,
  "model": {
    "tools": [
      {
      }
    ]
  }
}
a
inside tools i would pass all the params for a tool
4 Views