Configure how your agent detects and responds to user requests for changing languages during a conversation.
Practice | Recommendation |
---|---|
Prompt Matching | Always ensure the languages listed in the prompt match the ones added to the agent’s system prompt. |
Script Awareness | Include detection patterns in local scripts (e.g., Hindi, Kannada) if relevant. |
Clear Output | Always return a clean one-word output. Avoid additional logs, quotes, or structures. |
Prompt Maintenance | Revisit and update the prompt whenever you add, remove, or rename any supported languages. |
Sample Inputs | Use actual transcriptions from user speech; avoid manually translated phrases for accuracy. |