{"action":"created","issue":{"url":"https://api.github.com/repos/RasaHQ/rasa_core/issues/637","repository_url":"https://api.github.com/repos/RasaHQ/rasa_core","labels_url":"https://api.github.com/repos/RasaHQ/rasa_core/issues/637/labels{/name}","comments_url":"https://api.github.com/repos/RasaHQ/rasa_core/issues/637/comments","events_url":"https://api.github.com/repos/RasaHQ/rasa_core/issues/637/events","html_url":"https://github.com/RasaHQ/rasa_core/issues/637","id":333690333,"node_id":"MDU6SXNzdWUzMzM2OTAzMzM=","number":637,"title":"Check if slot is filled and control the flow in stories","user":{"login":"saivisal1","id":40386184,"node_id":"MDQ6VXNlcjQwMzg2MTg0","avatar_url":"https://avatars2.githubusercontent.com/u/40386184?v=4","gravatar_id":"","url":"https://api.github.com/users/saivisal1","html_url":"https://github.com/saivisal1","followers_url":"https://api.github.com/users/saivisal1/followers","following_url":"https://api.github.com/users/saivisal1/following{/other_user}","gists_url":"https://api.github.com/users/saivisal1/gists{/gist_id}","starred_url":"https://api.github.com/users/saivisal1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saivisal1/subscriptions","organizations_url":"https://api.github.com/users/saivisal1/orgs","repos_url":"https://api.github.com/users/saivisal1/repos","events_url":"https://api.github.com/users/saivisal1/events{/privacy}","received_events_url":"https://api.github.com/users/saivisal1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-19T14:12:08Z","updated_at":"2018-06-20T04:10:29Z","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.6\r\n\r\n**Python version**: 3.7\r\n\r\n**Operating system** (windows, osx, ...): OS X\r\n\r\n**Issue**: \r\n\r\nI have a slot city which is used for 2 custom actions weather check and petrol price check. If slot is not set before the custom action call for weather or price check it should do action utter_ask_city. if slot is filled with city name it should do the action requested. How can I handle this situation?\r\n\r\nCan i call another custom action from a custom action?\r\nor can have a checkpoint that checks if the slot is filled?\r\n\r\n\r\n\r\n\r\n\r\n**Content of domain file** (if used & relevant):\r\n```\r\nslots:\r\n    fuel:\r\n        type: text\r\n    city:\r\n        type: text\r\n\r\n    \r\nintents:\r\n    - greet\r\n    - confirm\r\n    - deny\r\n    - goodbye\r\n    - price_check\r\n    - thankyou\r\n    - restaurant_search\r\n    - video_search\r\n    - weather_check\r\n\r\nentities:\r\n    - fuel\r\n    - city\r\n\r\ntemplates:\r\n    utter_greet:\r\n        - 'Hello! How can I help?'\r\n        - 'Hi! How can I help?'\r\n        - 'Welcome, how may I assist you?'\r\n    utter_goodbye:\r\n        - 'Talk to you later.'\r\n        - 'Bye bye'\r\n    utter_thankyou:\r\n        - 'Cool!!'\r\n        - 'You are welcome!'\r\n        - 'Its my pleasure'\r\n    utter_deny:\r\n        - 'Sorry!!'\r\n    utter_affirm:\r\n        - 'Ok'\r\n        - 'Yes'\r\n    utter_default:\r\n        - 'I am not very sure what you said.'\r\n        - \"Maybe I didn't understand you properly. Could you please reword your question or type your complete query?\"\r\n        - \"I didn't get what you said. Can you please rephrase the query?\"\r\n        - \"A little lost. Apologies. Could you rephrase?\"\r\n        - \"I've dropped the ball. Could you rephrase?\"\r\n        - \"Oops. Signal fuzzy. Could you rephrase?\"\r\n        - \"That request lies outside my powers, although I'm always learning. I can tell you about the fuel prices, suggest good restarants, updates on weather updates, and answer questions. And I'm always learning.\"\r\n    \r\nactions:\r\n    - utter_greet\r\n    - utter_goodbye\r\n    - utter_thankyou\r\n    - utter_deny\r\n    - utter_default\r\n    - utter_affirm\r\n    - actions.AllSlotsReset\r\n    - actions.ActionPriceCheck\r\n    - actions.ActionAskCity\r\n    - actions.ActionAskFuel\r\n    - actions.ActionRestaurantSearch\r\n    - actions.ActionVideoSearch\r\n    - actions.ActionWeatherCheck\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/RasaHQ/rasa_core/issues/comments/398618450","html_url":"https://github.com/RasaHQ/rasa_core/issues/637#issuecomment-398618450","issue_url":"https://api.github.com/repos/RasaHQ/rasa_core/issues/637","id":398618450,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODYxODQ1MA==","user":{"login":"saivisal1","id":40386184,"node_id":"MDQ6VXNlcjQwMzg2MTg0","avatar_url":"https://avatars2.githubusercontent.com/u/40386184?v=4","gravatar_id":"","url":"https://api.github.com/users/saivisal1","html_url":"https://github.com/saivisal1","followers_url":"https://api.github.com/users/saivisal1/followers","following_url":"https://api.github.com/users/saivisal1/following{/other_user}","gists_url":"https://api.github.com/users/saivisal1/gists{/gist_id}","starred_url":"https://api.github.com/users/saivisal1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saivisal1/subscriptions","organizations_url":"https://api.github.com/users/saivisal1/orgs","repos_url":"https://api.github.com/users/saivisal1/repos","events_url":"https://api.github.com/users/saivisal1/events{/privacy}","received_events_url":"https://api.github.com/users/saivisal1/received_events","type":"User","site_admin":false},"created_at":"2018-06-20T04:10:29Z","updated_at":"2018-06-20T04:10:29Z","author_association":"NONE","body":"@tmbo \r\n\r\nHere is the stories which I wrote.\r\n\r\n`## Story 1\r\n* greet\r\n    - utter_greet\r\n\r\n## Story 2\r\n* price_check{\"city\": \"delhi\",\"fuel\": \"petrol\"}\r\n    - slot{\"city\": \"delhi\"}\r\n    - slot{\"fuel\": \"petrol\"}\r\n    - price_api\r\n    \r\n## Story 3\r\n* price_check{\"city\": \"delhi\"}\r\n    - slot{\"city\": \"delhi\"}\r\n    - utter_ask_fuel\r\n* price_check{\"fuel\": \"petrol\"}\r\n    - slot{\"fuel\": \"petrol\"}\r\n    - price_api\r\n    \r\n## Story 4\r\n* price_check{\"fuel\": \"petrol\"}\r\n    - slot{\"fuel\": \"petrol\"}\r\n    - action_ask_city\r\n* price_check{\"city\": \"delhi\"}\r\n    - slot{\"city\": \"delhi\"}\r\n    - price_api\r\n\r\n## Story 4.1\r\n* price_check{\"city\": \"delhi\"}\r\n    - slot{\"city\": \"delhi\"}\r\n    - price_api\r\n\r\n## Story 5\r\n* thankyou\r\n    - utter_thankyou\r\n\r\n## Story 6\r\n* goodbye\r\n    - utter_goodbye\r\n    - action_slot_reset\r\n\r\n## Story 7\r\n* restaurant_search\r\n    - action_restaurant\r\n\r\n## Story 8\r\n* video_search\r\n    - action_video\r\n\r\n## Story 9\r\n* weather_check{\"city\": \"Bengaluru\"}\r\n    - slot{\"city\": \"Bengaluru\"}\r\n    - action_weather\r\n\r\n## Story 10\r\n* weather_check\r\n    - action_ask_city\r\n* weather_check{\"city\": \"Chennai\"}\r\n    - slot{\"city\": \"Chennai\"}\r\n    - action_weather`"}}
{"actor":{"display_login":"saivisal1"}}