# Getting no registered action found for form action

**URL:** https://forum.rasa.com/t/getting-no-registered-action-found-for-form-action/3666
**Category:** Rasa Open Source
**Created:** [December 18, 2018, 11:01am UTC](https://forum.rasa.com/t/getting-no-registered-action-found-for-form-action/3666 "2018-12-18T11:01:36Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![harshpv07](https://avatars.discourse-cdn.com/v4/letter/h/ecae2f/32.png) [@harshpv07](https://forum.rasa.com/u/harshpv07)
#### Post date: [June 3, 2019, 4:28am UTC](https://forum.rasa.com/t/getting-no-registered-action-found-for-form-action/3666/8 "2019-06-03T04:28:55Z")

</div>

## hi everyone, i am getting the same error, in rasa x. i have done all the above steps. please help me. my domain.yml %YAML 1.1

actions:

- ActionHelloWorld
- action\_check\_restaurants
- restaurant\_form
- utter\_build
- utter\_cheer\_up
- utter\_consultance
- utter\_did\_that\_help
- utter\_domain
- utter\_goodbye
- utter\_greet
- utter\_happy
- utter\_joke
- utter\_name
- utter\_thanks
- utter\_send

entities:

- name
- project\_name
- program\_use
- idea
- application
- money
- contact

intents:

- affirm
- deny
- goodbye
- greet
- joke
- mood\_great
- mood\_unhappy
- name
- restaurant
- requestquote

slots: name: type: text project\_name: type: unfeaturized auto\_fill: false program\_use: type: unfeaturized auto\_fill: false idea: type: unfeaturized auto\_fill: false application: type: unfeaturized auto\_fill: false money: type: unfeaturized auto\_fill: false contact: type: unfeaturized auto\_fill: false

templates: utter\_build:

- text: We can build any sort of IT solutions like Web or Product Development utter\_cheer\_up:
- image: [https://i.imgur.com/nGF1K8f.jpg](https://i.imgur.com/nGF1K8f.jpg) text: ‘Here is something to cheer you up:’ utter\_consultance:
- text: We are experts in consultance. We can get you in touch with our experts to develop your idea. utter\_did\_that\_help:
- text: Did that help you? utter\_domain:
- buttons:
  - payload: ‘/choose{“service”: “consultance”}’ title: Consultance
  - payload: ‘/choose{“service”: “build”}’ title: build text: what service would you like? utter\_goodbye:

- text: Bye utter\_greet:
- text: Hi {name} ! How are you ? utter\_happy:
- text: Great carry on! utter\_joke:
- text: why is 9 afraid of 7 cuz 789 utter\_name:
- text: Tell me your name? utter\_thanks:
- text: Thank you utter\_send:
- text: I will send these details and get back to you shortly.

forms:

- quote\_form

policies:

- name: “FormPolicy”

actions.py

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

# custom Python code.

# 

# See this guide on how to implement these action:

# [Actions](https://rasa.com/docs/rasa/core/actions/#custom-actions/)

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

# from typing import Any, Text, Dict, List

# from rasa\_sdk import Action, Tracker

# from rasa\_sdk.executor import CollectingDispatcherfrom typing import Any, Text, Dict, List

# from rasa\_sdk import Action, Tracker

# from rasa\_sdk.executor import CollectingDispatcher

# class ActionHelloWorld(Action):

# def name(self) -\> Text:

# return “action\_hello\_world”

# def run(self, dispatcher: CollectingDispatcher,tracker: Tracker,domain: Dict[Text, Any]) -\> List[Dict[Text, Any]]:

# dispatcher.utter\_message(“Hello World!”)

# return []

# class ActionHelloWorld(Action):

# def name(self) -\> Text:

# return “action\_hello\_world”

# def run(self, dispatcher: CollectingDispatcher,tracker: Tracker,domain: Dict[Text, Any]) -\> List[Dict[Text, Any]]:

# dispatcher.utter\_message(“Hello World!”)

# return []

from rasa\_core\_sdk import Action from rasa\_core\_sdk.events import SlotSet from typing import Dict, Text, Any, List, Union, Optional

from rasa\_core\_sdk import ActionExecutionRejection from rasa\_core\_sdk import Tracker from rasa\_core\_sdk.executor import CollectingDispatcher from rasa\_core\_sdk.forms import FormAction, REQUESTED\_SLOT

# class ActionCheckRestaurants(Action):

# def name(self):

# # type: () -\> Text

# return “action\_check\_restaurants”

# def run(self, dispatcher, tracker, domain):

# # type: (CollectingDispatcher, Tracker, Dict[Text, Any]) -\> List[Dict[Text, Any]]

# #cuisine = tracker.get\_slot(‘name’)

# #q = “select \* from restaurants where cuisine=’{0}’ limit 1”.format(cuisine)

# #result = db.query(q)

# result = “Let me show you some restaurents”

# return [SlotSet(“matches”, result)]

class Quoteform(FormAction): def name(self): return “quote\_form”

```
@staticmethod
def required_slot(tracker:Tracker)->List[Text]:
    return (["project_name","program_use","idea","application","money","contact"])

def slot_mappings(self):
    # type: () -> 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 {"project_name": [self.from_text()],
            "program_use": [self.from_text()],
            "idea": [self.from_text()],
            "application": [self.from_text()],
            "money": [self.from_text()],
            "contact": [self.from_text()]}

def submit(self,dispatcher : CollectingDispatcher,tracker:Tracker,domain :Dict[Text,Any]) -> List[Dict]:
    dispatcher.utter_template('utter_send',tracker)
    return []

```

my story

## New Story

- greet
  - utter\_name

- name{“name”:“harsh”}
  - utter\_greet

- mood\_great
- requestquote
  - quote\_form

pls help me !!!

---

_[View the full topic](https://forum.rasa.com/t/getting-no-registered-action-found-for-form-action/3666)._
