# Can you please help on this

**URL:** <https://forum.rasa.com/t/can-you-please-help-on-this/43184>\
**Category:** Rasa Open Source\
**Created:** [May 4, 2021, 9:55am UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184 "2021-05-04T09:55:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![darpant-289](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/darpant-289/32/14353_2.png) [@darpant-289](https://forum.rasa.com/u/darpant-289)\
**Post date:** [May 4, 2021, 9:55am UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184/1 "2021-05-04T09:55:08Z")

</div>

ActionNotFoundException: Cannot access action ‘lead\_form\_p1’, as that name is not a registered action for this domain. Available actions are: \* - action\_listen

- 

```
     - action_restart

```

- 

```
     - action_session_start

```

- 

```
     - action_default_fallback

```

- 

```
     - action_deactivate_loop

```

- 

```
     - action_revert_fallback_events

```

- 

```
     - action_default_ask_affirmation

```

- 

```
     - action_default_ask_rephrase

```

- 

```
     - action_two_stage_fallback

```

- 

```
     - action_back

```

- 

```
     - ...

```

- 

```
     - utter_greet

```

- 

```
     - utter_menu

```

- 

```
     - utter_urlAvailable

```

- 

```
     - utter_lead_q1

```

- 

```
     - utter_lead_q2

```

- 

```
     - utter_lead_q3

```

- 

```
     - utter_lead_q4

```

- 

```
     - utter_lead_q5

```

- 

```
     - utter_goodbye

```

- 

```
     - utter_bot_challenge

```

- 

```
     - utter_ask_budget

```

- 

```
     - utter_ask_email

```

- 

```
     - utter_ask_mockup

```

- 

```
     - utter_ask_name

```

- 

```
     - utter_ask_phone

```

- 

```
     - utter_ask_requirement

```

- 

```
     - utter_ask_timeline

```

- 

```
     - utter_ask_url
```

---

<div class="post-metadata">

**Author:** ![siriusraja](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/siriusraja/32/22306_2.png) [@siriusraja](https://forum.rasa.com/u/siriusraja)\
**Post date:** [May 4, 2021, 2:26pm UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184/2 "2021-05-04T14:26:44Z")

</div>

Hi @darpant-289

Is lead\_form\_p1 , a form action ?

If so, ensure it is mentioned under `forms:` section in your domain.yml.

---

<div class="post-metadata">

**Author:** ![darpant-289](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/darpant-289/32/14353_2.png) [@darpant-289](https://forum.rasa.com/u/darpant-289)\
**Post date:** [May 4, 2021, 3:04pm UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184/3 "2021-05-04T15:04:32Z")

</div>

yes but still shows the error:

---

<div class="post-metadata">

**Author:** ![siriusraja](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/siriusraja/32/22306_2.png) [@siriusraja](https://forum.rasa.com/u/siriusraja)\
**Post date:** [May 5, 2021, 1:56am UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184/4 "2021-05-05T01:56:29Z")

</div>

@darpant-289

Which version of rasa are you using ? Also share me your domain & actions file to have a deeper look.

---

<div class="post-metadata">

**Author:** ![darpant-289](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/darpant-289/32/14353_2.png) [@darpant-289](https://forum.rasa.com/u/darpant-289)\
**Post date:** [May 5, 2021, 3:52am UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184/5 "2021-05-05T03:52:23Z")

</div>

yes domain file:

version: “2.0”

intents:

- greet

- goodbye

- reject

- begin\_lead

- accept

- bot\_challenge

slots:

requirement:

```
type: text

influence_conversation: false

```

mockup:

```
type: text

influence_conversation: false

```

url:

```
type: text

influence_conversation: false

```

timeline:

```
type: text

influence_conversation: false

```

budget:

```
type: text

influence_conversation: false

```

name:

```
type: text

influence_conversation: false

```

email:

```
type: text

influence_conversation: false

```

phone:

```
type: text  

influence_conversation: false

```

responses:

utter\_greet:

- text: “Hi! I am John from Cedex Technologies LLP. We provide high quality and cost-effective Web, Mobile, Chatbot and Voicebot solutions.”

utter\_menu:

- text: “What are you looking for today?”

utter\_lead\_q1:

- text: “Great. We have developed more than 100+ web applications till date!”

utter\_ask\_requirement:

- text: “Can you share some brief description of your requirements?”

utter\_ask\_mockup:

- text: “Alright! \n\nDo you have any of the following ready?”

utter\_urlAvailable:

- text: “Is there any URL that you would like to share for our reference?”

utter\_ask\_url:

- text: “Could you please share the URL with us?”

utter\_ask\_timeline:

- text: “When do you plan to enter development with this project?”

utter\_ask\_budget:

- text: “Great!\n\nWhat is your earmarked budget for this project?”

utter\_ask\_name:

- text: “Great. May I know your name please?”

utter\_ask\_email:

- text: “Can you please share your email ID? Trust us, we will never spam!”

utter\_ask\_phone:

- text: “Can I have your phone number”

utter\_lead\_q2:

- text: “Thanks for answering all our questions and being this patient. We appreciate it!”

utter\_lead\_q3:

- text: "Here is your data: \n

utter\_lead\_q4:

- text: “I will have our Business Experts get in touch with you soon, to make your project a reality!”

utter\_lead\_q5:

- text: “In the meanwhile for anything, you can contact us at [sales@cedextech.com](mailto:sales@cedextech.com) or +91 888 999 9999”

utter\_goodbye:

- text: “Thank you. Have a nice day.”

utter\_bot\_challenge:

- text: “Sorry can’t understand it.”

session\_config:

session\_expiration\_time: 60

carry\_over\_slots\_to\_new\_session: true

actions:

- utter\_greet

- utter\_menu

- utter\_urlAvailable

- utter\_lead\_q1

- utter\_lead\_q2

- utter\_lead\_q3

- utter\_lead\_q4

- utter\_lead\_q5

- utter\_goodbye

- utter\_bot\_challenge

FormAction:

lead\_form\_p1:

```
requirement:

  - type: from_entity 

  - entity: requirement

mockup:

  - type: from_entity

  - entity: mockup

```

lead\_form\_p2:

```
url:

  - type: from_entity

  - entity: url

```

lead\_form\_p3:

```
timeline:

 - type: from_entity

 - entity: timeline

budget:

 - type: from_entity

 - entity: budget

name:

 - type: from_entity

 - entity: name

email:

 - type: from_entity

 - entity: email

phone:

 - type: from_entity

 - entity: phoneversion: "2.0"

```

intents:

- greet
- goodbye
- reject
- begin\_lead
- accept
- bot\_challenge

slots: requirement: type: text influence\_conversation: false mockup: type: text influence\_conversation: false url: type: text influence\_conversation: false timeline: type: text influence\_conversation: false budget: type: text influence\_conversation: false name: type: text influence\_conversation: false email: type: text influence\_conversation: false phone: type: text  
influence\_conversation: false

responses: utter\_greet:

- text: “Hi! I am John from Cedex Technologies LLP. We provide high quality and cost-effective Web, Mobile, Chatbot and Voicebot solutions.”

utter\_menu:

- text: “What are you looking for today?” buttons:
  - title: “Web Application Development” payload: “/begin\_lead”
  - title: “Mobile App Development” payload: “/begin\_lead”
  - title: “Chatbot Development” payload: “/begin\_lead”
  - title: “Frontend Development” payload: “/begin\_lead”
  - title: “Progessive Web App Development” payload: “/begin\_lead”
  - title: “AI & Machine Learning” payload: “/begin\_lead”

utter\_lead\_q1:

- text: “Great. We have developed more than 100+ web applications till date!”

utter\_ask\_requirement:

- text: “Can you share some brief description of your requirements?”

utter\_ask\_mockup:

- text: “Alright! \n\nDo you have any of the following ready?” buttons:
  - title: “Wireframes” payload: “Wireframes”
  - title: “Designs” payload: “Designs”
  - title: “RFP or any Document” payload: “RFP or any Document”
  - title: “None” payload: “None”

utter\_urlAvailable:

- text: “Is there any URL that you would like to share for our reference?” buttons:
  - title: “Yes” payload: “yes”
  - title: “No” payload: “no”

utter\_ask\_url:

- text: “Could you please share the URL with us?”

utter\_ask\_timeline:

- text: “When do you plan to enter development with this project?” buttons:
  - title: “Immediately” payload: “Immediately”
  - title: “within a month” payload: “within a month”
  - title: “within the next 3 months” payload: “within the next 3 months”
  - title: “after 3 months” payload: “after 3 months”

utter\_ask\_budget:

- text: “Great!\n\nWhat is your earmarked budget for this project?” buttons:
  - title: “Below $5000” payload: “Below $5000”
  - title: “$5000 - $15000” payload: “$5000 - $15000”
  - title: “$15000 - $25000” payload: “$15000 - $25000”
  - title: “$25000 and above” payload: “$25000 and above”

utter\_ask\_name:

- text: “Great. May I know your name please?”

utter\_ask\_email:

- text: “Can you please share your email ID? Trust us, we will never spam!”

utter\_ask\_phone:

- text: “Can I have your phone number”

utter\_lead\_q2:

- text: “Thanks for answering all our questions and being this patient. We appreciate it!”

utter\_lead\_q3:

- text: “Here is your data: \n - requirement: {requirement}\n - mockup: {mockup}\n - url: {url}\n - timeline: {timeline}\n - budget: {budget}\n - name: {name}\n - email: {email}\n - phone: {phone}”

utter\_lead\_q4:

- text: “I will have our Business Experts get in touch with you soon, to make your project a reality!”

utter\_lead\_q5:

- text: “In the meanwhile for anything, you can contact us at [sales@cedextech.com](mailto:sales@cedextech.com) or +91 888 999 9999”

utter\_goodbye:

- text: “Thank you. Have a nice day.”

utter\_bot\_challenge:

- text: “Sorry can’t understand it.”

session\_config: session\_expiration\_time: 60 carry\_over\_slots\_to\_new\_session: true

actions:

- utter\_greet
- utter\_menu
- utter\_urlAvailable
- utter\_lead\_q1
- utter\_lead\_q2
- utter\_lead\_q3
- utter\_lead\_q4
- utter\_lead\_q5
- utter\_goodbye
- utter\_bot\_challenge

FormAction: lead\_form\_p1: requirement: - type: from\_entity - entity: requirement mockup: - type: from\_entity - entity: mockup

lead\_form\_p2: url: - type: from\_entity - entity: url

lead\_form\_p3: timeline: - type: from\_entity - entity: timeline budget: - type: from\_entity - entity: budget name: - type: from\_entity - entity: name email: - type: from\_entity - entity: email phone: - type: from\_entity - entity: phone

---

<div class="post-metadata">

**Author:** ![darpant-289](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/darpant-289/32/14353_2.png) [@darpant-289](https://forum.rasa.com/u/darpant-289)\
**Post date:** [May 5, 2021, 3:53am UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184/6 "2021-05-05T03:53:04Z")

</div>

action file:

# This files contains your custom actions which can be used to run

# custom Python code.

# 

# See this guide on how to implement these action:

# [Writing Custom Actions | Rasa Documentation](https://rasa.com/docs/rasa/custom-actions)

# This is a simple example for a custom action which utters “Hello World!”

from typing import Any, Text, Dict, List,Union,Optional

from rasa\_sdk import Action, Tracker

from rasa\_sdk.executor import CollectingDispatcher

from rasa\_sdk.forms import FormAction

class LeadFormFirstPart(FormAction):

```
"""Example of a custom form action"""

def name(self) -> Text:

    """Unique identifier of the form"""

    return "lead_form_p1"

@staticmethod

def required_slots(tracker: Tracker) -> List[Text]:

    """A list of required slots that the form has to fill"""

    return ["requirement", "mockup"]

def slot_mappings(self) -> Dict[Text, Union[Dict, List[Dict]]]:

    """A dictionary to map required slots to

        - an extracted entity

        - intent: value pairs

        - a whole message

        or a list of them, where a first match will be picked"""

    return {

        "requirement": [

            self.from_text(),

        ],

        "mockup": [

            self.from_text(),

        ],

    }

def submit(

    self,

    dispatcher: CollectingDispatcher,

    tracker: Tracker,

    domain: Dict[Text, Any],

) -> List[Dict]:

    """Define what the form has to do

        after all required slots are filled"""

    # utter submit template

    dispatcher.utter_template("utter_urlAvailable", tracker)

    return []

```

class LeadFormSecondPart(FormAction):

```
"""Example of a custom form action"""

def name(self) -> Text:

    """Unique identifier of the form"""

    return "lead_form_p2"

@staticmethod

def required_slots(tracker: Tracker) -> List[Text]:

    """A list of required slots that the form has to fill"""

    return ["url"]

def slot_mappings(self) -> Dict[Text, Union[Dict, List[Dict]]]:

    """A dictionary to map required slots to

        - an extracted entity

        - intent: value pairs

        - a whole message

        or a list of them, where a first match will be picked"""

    return {

        "url": [

            self.from_text(),

        ],

    }

def submit(

    self,

    dispatcher: CollectingDispatcher,

    tracker: Tracker,

    domain: Dict[Text, Any],

) -> List[Dict]:

    """Define what the form has to do

        after all required slots are filled"""

        

    return []

```

class LeadFormThirdPart(FormAction):

```
"""Example of a custom form action"""

def name(self) -> Text:

    """Unique identifier of the form"""

    return "lead_form_p3"

@staticmethod

def required_slots(tracker: Tracker) -> List[Text]:

    """A list of required slots that the form has to fill"""

    return ["timeline", "budget", "name", "email", "phone"]

def slot_mappings(self) -> Dict[Text, Union[Dict, List[Dict]]]:

    """A dictionary to map required slots to

        - an extracted entity

        - intent: value pairs

        - a whole message

        or a list of them, where a first match will be picked"""

    return {

        "timeline": [

            self.from_text(),

        ],

        "budget": [

            self.from_text(),

        ],

        "name": [

            self.from_text(),

        ],

        "email": [

            self.from_text(),

        ],

        "phone": [

            self.from_text(),

        ],

    }

def submit(

    self,

    dispatcher: CollectingDispatcher,

    tracker: Tracker,

    domain: Dict[Text, Any],

) -> List[Dict]:

    """Define what the form has to do

        after all required slots are filled"""

    # utter submit template

    dispatcher.utter_template("utter_lead_q2", tracker)

    return []

```

---

<div class="post-metadata">

**Author:** ![darpant-289](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/darpant-289/32/14353_2.png) [@darpant-289](https://forum.rasa.com/u/darpant-289)\
**Post date:** [May 5, 2021, 3:53am UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184/7 "2021-05-05T03:53:55Z")

</div>

Rasa Version : 2.5.1 Minimum Compatible Version: 2.2.0a1 Rasa SDK Version : 2.5.0 Rasa X Version : 0.39.1 Python Version : 3.6.10

---

<div class="post-metadata">

**Author:** ![siriusraja](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/siriusraja/32/22306_2.png) [@siriusraja](https://forum.rasa.com/u/siriusraja)\
**Post date:** [May 5, 2021, 6:03am UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184/8 "2021-05-05T06:03:27Z")

</div>

@darpant-289

In domain.yml, the section name is `forms:` and not `FormAction:` Please change this, train it again and let me know.

---

<div class="post-metadata">

**Author:** ![darpant-289](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/darpant-289/32/14353_2.png) [@darpant-289](https://forum.rasa.com/u/darpant-289)\
**Post date:** [May 5, 2021, 6:03am UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184/9 "2021-05-05T06:03:53Z")

</div>

okay sure

---

<div class="post-metadata">

**Author:** ![darpant-289](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/darpant-289/32/14353_2.png) [@darpant-289](https://forum.rasa.com/u/darpant-289)\
**Post date:** [May 5, 2021, 6:08am UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184/10 "2021-05-05T06:08:00Z")

</div>

NLU model training completed. Your Rasa model is trained and saved at ‘D:\Rasa\models\nlu-20210505-113734.tar.gz’. Core training was skipped because no valid domain file was found. Only an NLU-model was created. Please specify a valid domain using the ‘–domain’ argument or check if the provided domain file exists.

---

<div class="post-metadata">

**Author:** ![siriusraja](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/siriusraja/32/22306_2.png) [@siriusraja](https://forum.rasa.com/u/siriusraja)\
**Post date:** [May 5, 2021, 6:15am UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184/11 "2021-05-05T06:15:15Z")

</div>

Looks like your domain file is not picked up. Can you share me a screenshot of your project directory and upload your domain file.

---

<div class="post-metadata">

**Author:** ![darpant-289](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/darpant-289/32/14353_2.png) [@darpant-289](https://forum.rasa.com/u/darpant-289)\
**Post date:** [May 5, 2021, 6:18am UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184/12 "2021-05-05T06:18:36Z")

</div>

![Screenshot (20)](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/6/6cdfa329710b3d68a89bc253c082b2d5ba2ac492.png)

---

<div class="post-metadata">

**Author:** ![darpant-289](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/darpant-289/32/14353_2.png) [@darpant-289](https://forum.rasa.com/u/darpant-289)\
**Post date:** [May 5, 2021, 6:19am UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184/13 "2021-05-05T06:19:04Z")

</div>

[domain.yml](https://forum.rasa.com/uploads/short-url/bx2y71CoSts0Ej2vO04iatPzTQF.yml) (4.5 KB)

---

<div class="post-metadata">

**Author:** ![siriusraja](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/siriusraja/32/22306_2.png) [@siriusraja](https://forum.rasa.com/u/siriusraja)\
**Post date:** [May 5, 2021, 6:22am UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184/14 "2021-05-05T06:22:57Z")

</div>

> [@darpant-289](#):
>
> –domain

Domain file looks good. But your domain file is residing inside test dir. In that case, you need to point the path via --domain when you run rasa train.

---

<div class="post-metadata">

**Author:** ![darpant-289](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/darpant-289/32/14353_2.png) [@darpant-289](https://forum.rasa.com/u/darpant-289)\
**Post date:** [May 5, 2021, 6:24am UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184/15 "2021-05-05T06:24:34Z")

</div>

Domain file is not in test dir. It is in main dir.

---

<div class="post-metadata">

**Author:** ![siriusraja](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/siriusraja/32/22306_2.png) [@siriusraja](https://forum.rasa.com/u/siriusraja)\
**Post date:** [May 5, 2021, 6:55am UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184/16 "2021-05-05T06:55:35Z")

</div>

@darpant-289

Yep. I misread it. Can you try this domain file ?[domain.yml](https://forum.rasa.com/uploads/short-url/tlkNAx2snX1A7uryHldNFPwQ2qr.yml) (4.5 KB)

---

<div class="post-metadata">

**Author:** ![darpant-289](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/darpant-289/32/14353_2.png) [@darpant-289](https://forum.rasa.com/u/darpant-289)\
**Post date:** [May 5, 2021, 6:57am UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184/17 "2021-05-05T06:57:58Z")

</div>

okay thanks let me try

---

<div class="post-metadata">

**Author:** ![darpant-289](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/darpant-289/32/14353_2.png) [@darpant-289](https://forum.rasa.com/u/darpant-289)\
**Post date:** [May 5, 2021, 7:00am UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184/18 "2021-05-05T07:00:11Z")

</div>

same issue: NLU model training completed. Your Rasa model is trained and saved at ‘D:\Rasa\models\nlu-20210505-122934.tar.gz’. Core training was skipped because no valid domain file was found. Only an NLU-model was created. Please specify a valid domain using the ‘–domain’ argument or check if the provided domain file exists.

---

<div class="post-metadata">

**Author:** ![siriusraja](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/siriusraja/32/22306_2.png) [@siriusraja](https://forum.rasa.com/u/siriusraja)\
**Post date:** [May 5, 2021, 8:59am UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184/19 "2021-05-05T08:59:23Z")

</div>

@darpant-289May i know what is the command your are using to train ?

---

<div class="post-metadata">

**Author:** ![darpant-289](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/darpant-289/32/14353_2.png) [@darpant-289](https://forum.rasa.com/u/darpant-289)\
**Post date:** [May 5, 2021, 9:05am UTC](https://forum.rasa.com/t/can-you-please-help-on-this/43184/21 "2021-05-05T09:05:53Z")

</div>

rasa train

[Next page](https://forum.rasa.com/t/can-you-please-help-on-this/43184.md?page=2)
