{"action":"created","issue":{"url":"https://api.github.com/repos/RasaHQ/rasa_core/issues/805","repository_url":"https://api.github.com/repos/RasaHQ/rasa_core","labels_url":"https://api.github.com/repos/RasaHQ/rasa_core/issues/805/labels{/name}","comments_url":"https://api.github.com/repos/RasaHQ/rasa_core/issues/805/comments","events_url":"https://api.github.com/repos/RasaHQ/rasa_core/issues/805/events","html_url":"https://github.com/RasaHQ/rasa_core/issues/805","id":345369117,"node_id":"MDU6SXNzdWUzNDUzNjkxMTc=","number":805,"title":"Incorrect dialogue order","user":{"login":"nahidalam","id":2341472,"node_id":"MDQ6VXNlcjIzNDE0NzI=","avatar_url":"https://avatars0.githubusercontent.com/u/2341472?v=4","gravatar_id":"","url":"https://api.github.com/users/nahidalam","html_url":"https://github.com/nahidalam","followers_url":"https://api.github.com/users/nahidalam/followers","following_url":"https://api.github.com/users/nahidalam/following{/other_user}","gists_url":"https://api.github.com/users/nahidalam/gists{/gist_id}","starred_url":"https://api.github.com/users/nahidalam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nahidalam/subscriptions","organizations_url":"https://api.github.com/users/nahidalam/orgs","repos_url":"https://api.github.com/users/nahidalam/repos","events_url":"https://api.github.com/users/nahidalam/events{/privacy}","received_events_url":"https://api.github.com/users/nahidalam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-27T21:17:45Z","updated_at":"2018-07-28T07:14:08Z","closed_at":null,"author_association":"NONE","body":"<!-- THIS INFORMATION IS MANDATORY - YOUR ISSUE WILL BE CLOSED IF IT IS MISSING. If you don't know your Rasa Core version, use `pip list | grep rasa_core`. Removing the below information is allowed for FEATURE REQUESTS. --> \r\n\r\n**Rasa Core version**: 0.9.8\r\n\r\n**Python version**:  3.6\r\n\r\n**Operating system** (windows, osx, ...): OSx\r\n\r\n**Issue**:\r\n\r\nI have trained NLU and Dialogue model for a customer service bot. The NLU is working fine but when I run the bot, the conversation order changes. If you look at below `domain` file and `stories.md `file, if I have `offer_services` intent, then it should return the contents of `utter_calculate_price`. But instead it returns the content of `utter_negotiate`. \r\n\r\nPlease suggest.\r\n\r\nThis is how I train the dialogue model:\r\n\r\n```\r\ndef train_dialogue(domain_file, model_path,training_data_file):\r\n\r\n\tagent = Agent(domain_file, policies=[AugmentedMemoizationPolicy(max_history=3), KerasPolicy()])\r\n\r\n\tagent.train(\r\n\t\t\t\ttraining_data_file,\r\n\t\t\t\tepochs = 300,\r\n\t\t\t\tbatch_size = 50,\r\n\t\t\t\tvalidation_split = 0.2)\r\n\r\n\tagent.persist(model_path)\r\n\treturn agent\r\n```\r\n\r\n**Content of domain file** (if used & relevant):\r\n```\r\nintents:\r\n - start_process\r\n - offer_services\r\n - generate_proposal\r\n - submit_for_approval\r\n - negotiate\r\n\r\n\r\ntemplates:\r\n  utter_recommend:\r\n    - 'Great, Let me discover customer priority...... Do you want to offer those services in the renewed contract?'\r\n  utter_calculate_price:\r\n    - 'Sure, based on the pricing, we can offer a 2 year contract for 2MM USD. Do you want to generate a proposal?'\r\n  utter_generate_proposal:\r\n    - 'Thanks, please see the proposal attached. Do you want to submit the proposal for approval?'\r\n  utter_submit_for_approval:\r\n    - 'Okay, the proposal is submitted to xyz@abc.com for review'\r\n  utter_negotiate:\r\n    - \"Your proposal is approved by xyz@abc.com. Your customer IT contact person for the service is Tom Jones. Do you want to reach out for negotiation?\"\r\n\r\n\r\nactions:\r\n - utter_recommend\r\n - utter_calculate_price\r\n - utter_generate_proposal\r\n - utter_submit_for_approval\r\n - utter_negotiate\r\n```\r\n\r\n\r\n**Content of stories.md file**\r\n\r\n```\r\n## story_001\r\n* start_process\r\n   - utter_recommend\r\n* offer_services\r\n   - utter_calculate_price\r\n* generate_proposal\r\n   - utter_generate_proposal\r\n* submit_for_approval\r\n   - utter_submit_for_approval\r\n* negotiate\r\n   - utter_negotiate\r\n```"},"comment":{"url":"https://api.github.com/repos/RasaHQ/rasa_core/issues/comments/408588504","html_url":"https://github.com/RasaHQ/rasa_core/issues/805#issuecomment-408588504","issue_url":"https://api.github.com/repos/RasaHQ/rasa_core/issues/805","id":408588504,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODU4ODUwNA==","user":{"login":"arcontechnologies","id":17960609,"node_id":"MDQ6VXNlcjE3OTYwNjA5","avatar_url":"https://avatars3.githubusercontent.com/u/17960609?v=4","gravatar_id":"","url":"https://api.github.com/users/arcontechnologies","html_url":"https://github.com/arcontechnologies","followers_url":"https://api.github.com/users/arcontechnologies/followers","following_url":"https://api.github.com/users/arcontechnologies/following{/other_user}","gists_url":"https://api.github.com/users/arcontechnologies/gists{/gist_id}","starred_url":"https://api.github.com/users/arcontechnologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arcontechnologies/subscriptions","organizations_url":"https://api.github.com/users/arcontechnologies/orgs","repos_url":"https://api.github.com/users/arcontechnologies/repos","events_url":"https://api.github.com/users/arcontechnologies/events{/privacy}","received_events_url":"https://api.github.com/users/arcontechnologies/received_events","type":"User","site_admin":false},"created_at":"2018-07-28T07:14:08Z","updated_at":"2018-07-28T07:14:08Z","author_association":"NONE","body":"What happened is that your prediction went wrong because your model couldn't make the right choice (what next action to trigger). if you were using the interactive training (train_online.py can be found in examples) you were be able to see it.\r\nWhy ? because there is pieces of information missing here : entities and slots\r\nin your case you need to declare for intents entities \"services\" and \"price\" and I assume you need also to retain this information along the conversation : slots\r\nby adding such objects your prediction will influenced by them and therefore being able to pick up the right next action."}}
{"actor":{"display_login":"arcontechnologies"}}