Set language switches the conversation to a specific language from inside a tool. Use it when the tool knows which language the customer should get: from a customer record, a parameter, or a choice the customer made. From then on the agent answers in that language. Later steps in the same run, such as an Ask user question, use it too.
Language
Pick a language from the list, or choose a variable or context value that holds a language code such as nl-NL. The value must be a language HALO supports. If it is empty or not a supported code when the tool runs, the tool stops with an error rather than guessing.
Keep this language
HALO normally detects the language of each customer message and switches when the customer writes in another language. After Set language, detection skips the customer's next message so the new language sticks. What happens after that depends on the switch:
-
Keep this language off: detection is back on from the message after that. The language you set stays the fallback when detection can't tell.
-
Keep this language on: detection stays off for the rest of the conversation. The language only changes when another Set language step runs.
What to expect
-
The step has no output variable.
-
The language is stored as a context value named Language, so it stays in effect for the rest of the conversation.
-
When a run has several Set language steps, the last one wins.
-
If your integration sends a language with each message through the API, that language is used for that message.