lappis-unb/rasa-ptbr-boilerplate

View on GitHub
bot/data/rules.yml

Summary

Maintainability
Test Coverage
version: "3.1"
rules:
  # Response selectors
  - rule: explica
    steps:
      - intent: explica
      - action: utter_explica
  # Fallback
  - rule: Pedir para reformular a mensagem caso NLU não entenda
    steps:
      - intent: nlu_fallback
      - action: utter_nlu_fallback
  # Forms
  - rule: Ativa formulário
    steps:
      - intent: exemplo_forms
      - action: utter_exemplo_forms
      - action: exemplo_forms
      - active_loop: exemplo_forms
  - rule: Envia formulário
    condition:
    - active_loop: exemplo_forms
    steps:
      - action: exemplo_forms
      - active_loop: null
      - action: utter_submit_exemplo_forms
      - action: utter_slots_exemplo_forms