Challenge: Language Routing Using Chains
Test your knowledge of using router chains by implementing a chatbot that responds to queries in multiple languages.
We'll cover the following
Create your language-routing chatbot
In this challenge, create a chatbot that identifies the language of the user queries and answers them accordingly using the router chain.
Tasks
You have to accomplish the following tasks in this exercise:
Create destination chains for each of the following languages: French, Spanish, Dutch, and Italian.
Create a default chain when no language mentioned in task 1 is identified.
Create the router chain.
Code playground
You can write your code below the comments in the terminal below.
If you’re unsure how to do this, click the “Show Hint” button.
Get hands-on with 1400+ tech skills courses.