Skip to main content

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.

NameTypeDefaultDescription
internal_fillersOptionalobject-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.

NameTypeDescription
hangupOptionalobjectFiller phrases played when the AI Agent is hanging up the call.
check_timeOptionalobjectFiller phrases played when the AI Agent is checking the time.
wait_for_userOptionalobjectFiller phrases played when the AI Agent is waiting for user input.
wait_secondsOptionalobjectFiller phrases played during deliberate pauses or wait periods.
adjust_response_latencyOptionalobjectFiller phrases played when the AI Agent is adjusting response timing.
next_stepOptionalobjectFiller phrases played when transitioning between conversation steps when utilizing prompt.context.
change_contextOptionalobjectFiller phrases played when switching between conversation contexts when utilizing prompt.context.
get_visual_inputOptionalobjectFiller 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_strategyOptionalobjectFiller 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 CodeTypeDescription
[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:

CodeDescription
defaultDefault language set by the user in the ai.languages property
bgBulgarian
caCatalan
csCzech
daDanish
da-DKDanish (Denmark)
deGerman
de-CHGerman (Switzerland)
elGreek
enEnglish
en-AUEnglish (Australia)
en-GBEnglish (United Kingdom)
en-INEnglish (India)
en-NZEnglish (New Zealand)
en-USEnglish (United States)
esSpanish
es-419Spanish (Latin America)
etEstonian
fiFinnish
frFrench
fr-CAFrench (Canada)
hiHindi
huHungarian
idIndonesian
itItalian
jaJapanese
koKorean
ko-KRKorean (South Korea)
ltLithuanian
lvLatvian
msMalay
multiMultilingual (Spanish + English)
nlDutch
nl-BEFlemish (Belgian Dutch)
noNorwegian
plPolish
ptPortuguese
pt-BRPortuguese (Brazil)
pt-PTPortuguese (Portugal)
roRomanian
ruRussian
skSlovak
svSwedish
sv-SESwedish (Sweden)
thThai
th-THThai (Thailand)
trTurkish
ukUkrainian
viVietnamese
zhChinese (Simplified)
zh-CNChinese (Simplified, China)
zh-HansChinese (Simplified Han)
zh-HantChinese (Traditional Han)
zh-HKChinese (Traditional, Hong Kong)
zh-TWChinese (Traditional, Taiwan)

Examples​

Basic Usage​

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​

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.'