Multi language bot

Hello ChrisRahme First: thanks for your fast respond. Second: i have seen your bot, i know it’s speaking 4 different language but it depends on the user selection at the first of the conversation. Third: right now i am creating POC (Proof of concept) for the chat bot but i dont have the ability right now to get the language from the frontend.

the idea now i am trying to implement is to have custom slot which takes any user input and check whether it English or Arabic (but i dont know how i am going to do this).

what i am doing now

 class ActionSetArabic(Action):

    def name(self):
        return "action_set_language"

    def run(self, dispatcher, tracker, domain):
        slot_value = tracker.get_slot('language')
        dispatcher.utter_message(slot_value)
        if slot_value == 'good afternoon':
            lang = 'English'
            return [SlotSet("language", lang)]`
language:
    type: text
    influence_conversation: false
    mappings:
      - type: custom
        action: action_set_language

at first i am trying to prove if i got detect to certain word it going to change the language, but mainly i want to get user input since i cant make entity: language for every example i am going to have.