Slot Mapping

Hi All, I am new to rasa. I am trying to create a Rasa Bot to fetch the requested KPI from excel. I am unable to setup my slots mapping in domain.yml file. I get error “not a list”. Please find the domain.yml content below:

version: “3.1”

intents:

  • greet
  • goodbye
  • affirm
  • deny
  • mood_great
  • mood_unhappy
  • get_total_amount

entities:

  • quarter
  • week_number
  • date
  • amount_debit
  • amount_credit
  • category
  • comments

slots: quarter: type: text mappings: type: from_text

week_number: type: text mappings: type: from_text

date: type: text mappings: type: from_text

amount_debit: type: float mappings: type: from_text

amount_credit: type: float mappings: type: from_text

category: type: text mappings: type: from_text

comments: type: text mappings: type: from_text

responses: utter_total_amount:

  • text: “The total amount for {category} is {total_amount}.”

utter_greet:

  • text: “Hey! How are you?”

utter_cheer_up:

utter_did_that_help:

  • text: “Did that help you?”

utter_happy:

  • text: “Great, carry on!”

utter_goodbye:

  • text: “Bye”

utter_iamabot:

  • text: “I am a bot, powered by Rasa.”

actions:

  • CustomActionGetTotalAmount

session_config: session_expiration_time: 240 carry_over_slots_to_new_session: true

Any help is appreciated. Thanks in advance

when exactly do you get the error? when you run rasa train or when you are running the bot? also can you paste the relevant yml’s (nlu, rules, stories, domain) by using the code formatter OR share the link of your repo for better understanding of your problem.