Stories

Hi everyone! Can anyone help me out to understand stories. I have very small flow.

user : hi bot : hello, what i can do for you.

user: can you book for me. bot: first show me your card in front of camera. Are you agree?

user: yes bot: thanks for your card verification. now it’s time for your face you have to look at camera. Are you ready?

user:yes bot: thanks haneef for verification steps. now tell me date on when you want to book a room.

user: tomorrow bot: Thanks your room is booked for tomorrow.

So for this i implement stories.

Story path for book

  • greet
    • utter_greet
  • room_booking
    • utter_room_booking
  • affirm
    • utter_ask_face
  • affirm
    • utter_ask_date
  • book_date
    • utter_booked

But in this when i am running my bot. then 1st interaction is working well as above. but after end if i said hello again or hi again then my bot is not replaying. Please tell me anyone why?

And my domain file is:-

Configuration for Rasa NLU.

Components

language: en

pipeline:

  • name: “SpacyNLP”

  • name: “SpacyTokenizer”

  • name: “SpacyFeaturizer”

  • name: “SklearnIntentClassifier”

  • name: “CountVectorsFeaturizer”

  • name: “EmbeddingIntentClassifier”

  • name: “CRFEntityExtractor”

    features: [[“low”, “title”], [“bias”, “suffix3”], [“upper”, “pos”, “pos2”]]

    BILOU_flag: true

    max_iterations: 50

    L1_c: 0.1

    L2_c: 0.1

  • name: “EntitySynonymMapper”

  • name: “DucklingHTTPExtractor”

    url: “http://localhost:8000

    dimensions to extract

    dimensions: [“time”, “number”, “amount-of-money”, “distance”]

    docker run -p 8000:8000 rasa/duckling

Configuration for Rasa Core.

Policies

policies:

  • name: MemoizationPolicy

  • name: KerasPolicy

  • name: MappingPolicy

Do you restart your session when you try the second time?

how to restart session in second time? i just run “rasa run -m model --enable-api --cors “*”” command and start testing.

Check the policy page here (Max history/Augmentation) Policies

can we have small conversation on stories topic. i have to clear some logic?