Is it possible to use an "OR" statement to map the correo_electronico slot in Rasa?

Hello everyone,

I’m working on a chatbot using Rasa, and I have encountered a situation where I want to map the correo_electronico slot, but this slot needs to be filled in different forms. My goal is to have the slot filled if the active form is either registro_form or login_form, regardless of which one is active at that moment.

Is it possible to achieve this using an “OR” statement in the configuration of the correo_electronico slot? If so, how can I set it up properly to work in this way?

something like this

forms:
  registro_form:
    required_slots:
    - nombre
    - correo_electronico
    - telefono
    - direccion_entrega
    - contrasena
  login_form:
    required_slots:
    - correo_electronico
    - contrasena
slots:
  correo_electronico:
  type: text
  influence_conversation: true
  mappings:
    - type: from_text
      conditions:
        - or:
          - active_loop: registro_form
            requested_slot: correo_electronico #email
          - active_loop: login_form
            requested_slot: correo_electronico

I appreciate any advice or examples you can provide. Thank you in advance for your help!

You do not need "or’ in there. Just remove it, change the identation of the next lines and it will work.

Thanks, now it works