internal_fillers
An array of objects that define language-specific filler phrases for internal SWAIG functions. These fillers help break silence between responses and are played asynchronously during the function call.
Name | Type | Default | Description |
---|---|---|---|
internal_fillers Optional | object | - | An object that contains the internal_fillers parameters |
internal_fillers
parameters​
The internal_fillers
object contains parameters for various internal functions that the AI Agent can use during conversations.
Each function can have language-specific filler phrases to enhance the conversation flow.
All functions accept the same object structure for defining fillers.
Name | Type | Description |
---|---|---|
hangup Optional | object | Filler phrases played when the AI Agent is hanging up the call. |
check_time Optional | object | Filler phrases played when the AI Agent is checking the time. |
wait_for_user Optional | object | Filler phrases played when the AI Agent is waiting for user input. |
wait_seconds Optional | object | Filler phrases played during deliberate pauses or wait periods. |
adjust_response_latency Optional | object | Filler phrases played when the AI Agent is adjusting response timing. |
next_step Optional | object | Filler phrases played when transitioning between conversation steps when utilizing prompt.context . |
change_context Optional | object | Filler phrases played when switching between conversation contexts when utilizing prompt.context . |
get_visual_input Optional | object | Filler phrases played when the AI Agent is processing visual input. This function is enabled when the enable_vision property is set to true in the ai.params method. |
get_ideal_strategy Optional | object | Filler phrases played when the AI Agent is thinking or considering options. This is utilized when enable_thinking is set to true in ai.params. |
Filler Object Structure​
Each internal_fillers
parameters accepts an object containing language-specific filler phrases. All functions use the same structure for defining fillers.
Language-Specific Fillers​
Language Code | Type | Description |
---|---|---|
[key: string] | string[] | An array of filler phrases that will be played during the function execution. The key is a valid language code and the value is an array of filler phrases that are selected from randomly. |
Supported Language Codes​
Internal filler functions accept an object with the key being one of the supported language codes and the value being an array of filler phrases.
The following is the list of supported language codes:
Code | Description |
---|---|
default | Default language set by the user in the ai.languages property |
bg | Bulgarian |
ca | Catalan |
cs | Czech |
da | Danish |
da-DK | Danish (Denmark) |
de | German |
de-CH | German (Switzerland) |
el | Greek |
en | English |
en-AU | English (Australia) |
en-GB | English (United Kingdom) |
en-IN | English (India) |
en-NZ | English (New Zealand) |
en-US | English (United States) |
es | Spanish |
es-419 | Spanish (Latin America) |
et | Estonian |
fi | Finnish |
fr | French |
fr-CA | French (Canada) |
hi | Hindi |
hu | Hungarian |
id | Indonesian |
it | Italian |
ja | Japanese |
ko | Korean |
ko-KR | Korean (South Korea) |
lt | Lithuanian |
lv | Latvian |
ms | Malay |
multi | Multilingual (Spanish + English) |
nl | Dutch |
nl-BE | Flemish (Belgian Dutch) |
no | Norwegian |
pl | Polish |
pt | Portuguese |
pt-BR | Portuguese (Brazil) |
pt-PT | Portuguese (Portugal) |
ro | Romanian |
ru | Russian |
sk | Slovak |
sv | Swedish |
sv-SE | Swedish (Sweden) |
th | Thai |
th-TH | Thai (Thailand) |
tr | Turkish |
uk | Ukrainian |
vi | Vietnamese |
zh | Chinese (Simplified) |
zh-CN | Chinese (Simplified, China) |
zh-Hans | Chinese (Simplified Han) |
zh-Hant | Chinese (Traditional Han) |
zh-HK | Chinese (Traditional, Hong Kong) |
zh-TW | Chinese (Traditional, Taiwan) |
Examples​
Basic Usage​
- YAML
- JSON
internal_fillers:
hangup:
en-US:
- 'Goodbye!'
- 'Thank you for calling.'
- 'Have a great day!'
es-ES:
- '¡Adiós!'
- 'Gracias por llamar.'
- '¡Que tengas un buen dÃa!'
check_time:
default:
- 'Let me check the time.'
- 'One moment while I get the time.'
- 'Just checking the current time.'
{
"internal_fillers": {
"hangup": {
"en-US": [
"Goodbye!",
"Thank you for calling.",
"Have a great day!"
],
"es-ES": [
"¡Adiós!",
"Gracias por llamar.",
"¡Que tengas un buen dÃa!"
]
},
"check_time": {
"default": [
"Let me check the time.",
"One moment while I get the time.",
"Just checking the current time."
]
}
}
}
Comprehensive Example​
- YAML
- JSON
internal_fillers:
hangup:
en-US:
- 'Goodbye!'
- 'Thank you for calling.'
- 'Have a great day!'
- 'It was nice talking with you.'
es-ES:
- '¡Adiós!'
- 'Gracias por llamar.'
- '¡Que tengas un buen dÃa!'
- 'Fue un placer hablar contigo.'
check_time:
en-US:
- 'Let me check the time.'
- 'One moment while I get the time.'
- 'Just checking the current time.'
- 'Give me a second to look at the time.'
es-ES:
- 'PermÃteme verificar la hora.'
- 'Un momento mientras obtengo la hora.'
- 'Solo verificando la hora actual.'
- 'Dame un segundo para ver la hora.'
wait_for_user:
en-US:
- 'I\'m listening.'
- 'Go ahead.'
- 'I\'m here, please continue.'
- 'Take your time.'
es-ES:
- 'Te escucho.'
- 'Adelante.'
- 'Estoy aquÃ, por favor continúa.'
- 'Tómate tu tiempo.'
wait_seconds:
en-US:
- 'Just a moment.'
- 'Please hold.'
- 'One second please.'
- 'Bear with me for just a moment.'
es-ES:
- 'Solo un momento.'
- 'Por favor espera.'
- 'Un segundo por favor.'
- 'Ten paciencia por un momento.'
adjust_response_latency:
en-US:
- 'Adjusting response time.'
- 'Optimizing for better conversation flow.'
- 'Fine-tuning my responses.'
- 'Just calibrating my timing.'
es-ES:
- 'Ajustando el tiempo de respuesta.'
- 'Optimizando para mejor fluidez de conversación.'
- 'Afinando mis respuestas.'
- 'Solo calibrando mi tiempo.'
next_step:
en-US:
- 'Moving on to the next step.'
- 'Let\'s continue.'
- 'Now let\'s proceed.'
- 'Next, we\'ll move forward.'
es-ES:
- 'Pasando al siguiente paso.'
- 'Continuemos.'
- 'Ahora procedamos.'
- 'A continuación, avanzaremos.'
change_context:
en-US:
- 'Switching topics now.'
- 'Let me adjust my focus.'
- 'Changing gears here.'
- 'Moving to a different area.'
es-ES:
- 'Cambiando de tema ahora.'
- 'PermÃteme ajustar mi enfoque.'
- 'Cambiando de rumbo aquÃ.'
- 'Pasando a un área diferente.'
get_visual_input:
en-US:
- 'Analyzing visual input, please wait.'
- 'I am scanning my surroundings for data, this won\'t take long.'
- 'Please wait briefly while I process the data in front of me.'
- 'I am currently digitizing the data so I can proceed, please hold on.'
es-ES:
- 'Analizando entrada visual, por favor espera.'
- 'Estoy escaneando mi entorno para obtener datos, esto no tardará mucho.'
- 'Por favor espera un momento mientras proceso los datos frente a mÃ.'
- 'Actualmente estoy digitalizando los datos para poder proceder, por favor espera.'
get_ideal_strategy:
en-US:
- 'Let me think about that.'
- 'Give me a moment to consider the best approach.'
- 'I\'m considering the options.'
- 'Let me figure out the best way forward.'
es-ES:
- 'Déjame pensar en eso.'
- 'Dame un momento para considerar el mejor enfoque.'
- 'Estoy considerando las opciones.'
- 'Déjame encontrar la mejor manera de proceder.'
YAML is ill-formatted...