Rasa_sdk.endpoint - Failed to extract slot company with action sales_form

Hello how are you?

I’m learning rasa, I’m following the example in the documentation, but when I run them it throws the following error: “rasa_sdk.endpoint - Failed to extract slot company with action sales_form” and can’t figure out why. Can someone help me ??

archives:

Domain.yml

intents:
  - greet
  - bye
  - thank
  - faq
  - contact_sales
  - inform

entities:
  - business_email
  - company
  - budget
  - job_function
  - person_name
  - use_case

responses:
  utter_noworries:
    - text: No worries!
  utter_greet:
    - text: Hi
  utter_bye:
    - text: Bye!
  utter_ask_business_email:
    - text: What's your business email?
  utter_ask_company:
    - text: What company do you work for?
  utter_ask_budget:
    - text: "What's your annual budget for conversational AI?"
  utter_ask_job_function:
    - text: "What's your job?"
  utter_ask_person_name:
    - text: What's your name?
  utter_ask_use_case:
    - text: What's your use case?

actions:
  - respond_faq
 # - sales_form

slots:
  business_email:
    type: unfeaturized
    auto_fill: false
  company:
    type: unfeaturized
    auto_fill: false
  budget:
    type: unfeaturized
    auto_fill: false
  job_function:
    type: unfeaturized
    auto_fill: false
  person_name:
    type: unfeaturized
    auto_fill: false
  use_case:
    type: unfeaturized
    auto_fill: false
  requested_slot:
    type: unfeaturized

#requested_slot:
#    type: categorical
#    values:
#      - business_email
#      - company
#      - person_name
#      - use_case
#      - budget
#      - job_function

forms:
  - sales_form

session_config:
  session_expiration_time: 60
  carry_over_slots_to_new_session: true

nlu.md

## intent:greet

- Hi

- Hey

- Hi bot

- Hey bot

- Hello

- Good morning

- hi again

- hi folks

## intent:bye

- goodbye

- goodnight

- good bye

- good night

- see ya

- toodle-oo

- bye bye

- gotta go

- farewell

## intent:thank

- Thanks

- Thank you

- Thank you so much

- Thanks bot

- Thanks for that

- cheers

## intent: faq/ask_channels

- What channels of communication does rasa support?

- what channels do you support?

- what chat channels does rasa uses

- channels supported by Rasa

- which messaging channels does rasa support?

## intent: faq/ask_languages

- what language does rasa support?

- which language do you support?

- which languages supports rasa

- can I use rasa also for another laguage?

- languages supported

## intent: faq/ask_rasax

- I want information about rasa x

- i want to learn more about Rasa X

- what is rasa x?

- Can you tell me about rasa x?

- Tell me about rasa x

- tell me what is rasa x

## intent:contact_sales

- I wanna talk to your sales people.

- I want to talk to your sales people

- I want to speak with sales

- Sales

- Please schedule a sales call

- Please connect me to someone from sales

- I want to get in touch with your sales guys

- I would like to talk to someone from your sales team

- sales please

## intent:inform

- [100k](budget)

- [100k](budget)

- [240k/year](budget)

- [150,000 USD](budget)

- I work for [Rasa](company)

- The name of the company is [ACME](company)

- company: [Rasa Technologies](company)

- it's a small company from the US, the name is [Hooli](company)

- it's a tech company, [Rasa](company)

- [ACME](company)

- [Rasa Technologies](company)

- [maxmeier@firma.de](business_email)

- [bot-fan@bots.com](business_email)

- [maxmeier@firma.de](business_email)

- [bot-fan@bots.com](business_email)

- [my email is email@rasa.com](business_email)

- [engineer](job_function)

- [brand manager](job_function)

- [marketing](job_function)

- [sales manager](job_function)

- [growth manager](job_function)

- [CTO](job_function)

- [CEO](job_function)

- [COO](job_function)

- [John Doe](person_name)

- [Jane Doe](person_name)

- [Max Mustermann](person_name)

- [Max Meier](person_name)

- We plan to build a [sales bot](use_case) to increase our sales by 500%.

- we plan to build a [sales bot](use_case) to increase our revenue by 100%.

- a [insurance tool](use_case) that consults potential customers on the best life insurance to choose.

- we're building a [conversational assistant](use_case) for our employees to book meeting rooms.

config.yml

# Configuration for Rasa NLU.
# https://rasa.com/docs/rasa/nlu/components/
language: en
pipeline:
  - name: WhitespaceTokenizer
  - name: RegexFeaturizer
  - name: LexicalSyntacticFeaturizer
  - name: CountVectorsFeaturizer
  - name: CountVectorsFeaturizer
    analyzer: "char_wb"
    min_ngram: 1
    max_ngram: 4
  - name: DIETClassifier
    epochs: 100
  - name: EntitySynonymMapper
  - name: ResponseSelector
    epochs: 100

# Configuration for Rasa Core.
# https://rasa.com/docs/rasa/core/policies/
policies:
  - name: MemoizationPolicy
  - name: KerasPolicy
  # - name: TEDPolicy
  # - max_history: 1
  - name: MappingPolicy
  - name: FormPolicy

stories.md

## greet
* greet
  - utter_greet

## thank
* thank
  - utter_noworries

## goodbye
* bye
  - utter_bye

## Some question from FAQ
* faq
    - respond_faq

## sales_form
* contact_sales
    - sales_form                   <!--Run the sales_form action-->
    - form{"name": "sales_form"}   <!--Activate the form-->
    - form{"name": null}           <!--Deactivate the form-->


actions.py

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

from rasa_sdk import Tracker
from rasa_sdk.executor import CollectingDispatcher
from rasa_sdk.forms import FormAction

class SalesForm(FormAction):
    """Collects sales information and adds it to the spreadsheet"""

    def name(self):
        return "sales_form"
    
    @staticmethod
    def required_slots(tracker: Tracker) -> List[Text]:
        return [
            "business_email",
            "company",
            "budget",
            "use_case",
            "job_function",
            "person_name",
        ]
        
    def submit(
        self,
        dispatcher: CollectingDispatcher,
        tracker: Tracker,
        domain: Dict[Text, Any],
    ) -> List[Dict]:

        dispatcher.utter_message("Thanks for getting in touch, we’ll contact you soon")
        return []

Hi @fmelossi, welcome to the forum! Can you start your bot in debug mode and paste the log output here? E.g. rasa run actions --debug and, for example, rasa shell --debug.

Hello Tanja, thank you very much for answering, I show you the execution of debug to see if you can help me thanks

(venv) MacBook-Air-de-Fernando:rasa-assistant fernando$ rasa shell --debug 2020-04-07 14:22:22 DEBUG rasa.model - Extracted model to ‘/var/folders/gs/t9nx6sld5yjb_f7l9hcjj57r0000gn/T/tmpm4nhybl4’. 2020-04-07 14:22:22 DEBUG rasa.cli.utils - Parameter ‘endpoints’ not set. Using default location ‘endpoints.yml’ instead. 2020-04-07 14:22:22 DEBUG rasa.cli.utils - Parameter ‘credentials’ not set. Using default location ‘credentials.yml’ instead. 2020-04-07 14:22:22 DEBUG rasa.model - Extracted model to ‘/var/folders/gs/t9nx6sld5yjb_f7l9hcjj57r0000gn/T/tmp09pzniyy’. 2020-04-07 14:22:23 INFO root - Connecting to channel ‘cmdline’ which was specified by the ‘–connector’ argument. Any other channels will be ignored. To connect to all given channels, omit the ‘–connector’ argument. 2020-04-07 14:22:23 DEBUG sanic.root - CORS: Configuring CORS with resources: {’/’: {‘origins’: [’’], ‘methods’: ‘DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT’, ‘allow_headers’: [’.’], ‘expose_headers’: None, ‘supports_credentials’: True, ‘max_age’: None, ‘send_wildcard’: False, ‘automatic_options’: True, ‘vary_header’: True, ‘resources’: {’/*’: {‘origins’: ‘’}}, ‘intercept_exceptions’: True, ‘always_send’: True}} 2020-04-07 14:22:23 DEBUG rasa.core.utils - Available web server routes: /webhooks/rest GET custom_webhook_CmdlineInput.health /webhooks/rest/webhook POST custom_webhook_CmdlineInput.receive / GET hello 2020-04-07 14:22:23 INFO root - Starting Rasa server on http://localhost:5005 2020-04-07 14:22:23 DEBUG rasa.core.utils - Using the default number of Sanic workers (1). 2020-04-07 14:22:23 INFO root - Enabling coroutine debugging. Loop id 5160046624. 2020-04-07 14:22:24 DEBUG rasa.model - Extracted model to ‘/var/folders/gs/t9nx6sld5yjb_f7l9hcjj57r0000gn/T/tmpk74eyros’. 2020-04-07 14:22:24 DEBUG rasa.utils.tensorflow.models - Loading the model … 2020-04-07 14:22:26 DEBUG rasa.utils.tensorflow.models - Finished loading the model. 2020-04-07 14:22:26 DEBUG rasa.utils.tensorflow.models - Building tensorflow prediction graph… 2020-04-07 14:22:32 DEBUG rasa.utils.tensorflow.models - Finished building tensorflow prediction graph. 2020-04-07 14:22:32 DEBUG rasa.utils.tensorflow.models - Loading the model … 2020-04-07 14:22:33 DEBUG rasa.utils.tensorflow.models - Finished loading the model. 2020-04-07 14:22:33 DEBUG rasa.utils.tensorflow.models - Building tensorflow prediction graph… 2020-04-07 14:22:33 DEBUG rasa.utils.tensorflow.models - Finished building tensorflow prediction graph. 2020-04-07 14:22:33 DEBUG rasa.core.tracker_store - Connected to InMemoryTrackerStore. 2020-04-07 14:22:33 DEBUG rasa.core.lock_store - Connected to lock store ‘InMemoryLockStore’. 2020-04-07 14:22:34 DEBUG rasa.model - Extracted model to ‘/var/folders/gs/t9nx6sld5yjb_f7l9hcjj57r0000gn/T/tmph80blldx’. 2020-04-07 14:22:34 DEBUG pykwalify.compat - Using yaml library: /usr/local/lib/python3.7/site-packages/ruamel/yaml/init.py 2020-04-07 14:22:34 DEBUG rasa.utils.tensorflow.models - Loading the model … 2020-04-07 14:22:34 DEBUG rasa.utils.tensorflow.models - Finished loading the model. 2020-04-07 14:22:34 DEBUG rasa.utils.tensorflow.models - Building tensorflow prediction graph… 2020-04-07 14:22:35 DEBUG rasa.utils.tensorflow.models - Finished building tensorflow prediction graph. 2020-04-07 14:22:35 DEBUG rasa.core.nlg.generator - Instantiated NLG to ‘TemplatedNaturalLanguageGenerator’. Bot loaded. Type a message and press enter (use ‘/stop’ to exit): Your input -> hi
2020-04-07 14:22:39 DEBUG rasa.core.tracker_store - Creating a new tracker for id ‘8aaff16adf7d4e7488e42b5c6f8109ca’. 2020-04-07 14:22:39 DEBUG rasa.core.processor - Starting a new session for conversation ID ‘8aaff16adf7d4e7488e42b5c6f8109ca’. 2020-04-07 14:22:39 DEBUG rasa.core.processor - Action ‘action_session_start’ ended with events ‘[<rasa.core.events.SessionStarted object at 0x1388be290>, <rasa.core.events.ActionExecuted object at 0x13a35f750>]’. 2020-04-07 14:22:39 DEBUG rasa.core.processor - Current slot values: budget: None business_email: None company: None job_function: None person_name: None requested_slot: None use_case: None 2020-04-07 14:22:40 DEBUG rasa.nlu.selectors.response_selector - Adding following selector key to message property: default 2020-04-07 14:22:40 DEBUG rasa.core.processor - Received user message ‘hi’ with intent ‘{‘name’: ‘greet’, ‘confidence’: 0.9868015050888062}’ and entities ‘[]’ 2020-04-07 14:22:40 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 4 events. 2020-04-07 14:22:40 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, None, {}, {‘prev_action_listen’: 1.0, ‘intent_greet’: 1.0}] 2020-04-07 14:22:40 DEBUG rasa.core.policies.memoization - There is no memorised next action 2020-04-07 14:22:40 DEBUG rasa.core.policies.mapping_policy - The predicted intent ‘greet’ is mapped to action ‘action_greet’ in the domain. 2020-04-07 14:22:40 DEBUG rasa.core.policies.form_policy - There is no active form 2020-04-07 14:22:40 DEBUG rasa.core.policies.two_stage_fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). 2020-04-07 14:22:40 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_2_MappingPolicy 2020-04-07 14:22:40 DEBUG rasa.core.processor - Predicted next action ‘action_greet’ with confidence 1.00. 2020-04-07 14:22:40 DEBUG rasa.core.actions.action - Calling action endpoint to run action ‘action_greet’. 2020-04-07 14:22:40 DEBUG rasa.core.processor - Action ‘action_greet’ ended with events ‘[BotUttered(‘Hi’, {“elements”: null, “quick_replies”: null, “buttons”: null, “attachment”: null, “image”: null, “custom”: null}, {}, 1586280160.152938), <rasa.core.events.UserUtteranceReverted object at 0x1388a95d0>]’. 2020-04-07 14:22:40 DEBUG rasa.core.processor - Current slot values: budget: None business_email: None company: None job_function: None person_name: None requested_slot: None use_case: None 2020-04-07 14:22:40 DEBUG rasa.core.processor - Predicted next action ‘action_listen’ with confidence 1.00. 2020-04-07 14:22:40 DEBUG rasa.core.processor - Action ‘action_listen’ ended with events ‘[]’. 2020-04-07 14:22:40 DEBUG rasa.core.lock_store - Deleted lock for conversation ‘8aaff16adf7d4e7488e42b5c6f8109ca’. Hi Your input -> Sales
2020-04-07 14:23:04 DEBUG rasa.core.tracker_store - Recreating tracker for id ‘8aaff16adf7d4e7488e42b5c6f8109ca’ 2020-04-07 14:23:04 DEBUG rasa.nlu.selectors.response_selector - Adding following selector key to message property: default 2020-04-07 14:23:04 DEBUG rasa.core.processor - Received user message ‘Sales’ with intent ‘{‘name’: ‘contact_sales’, ‘confidence’: 0.9939835667610168}’ and entities ‘[]’ 2020-04-07 14:23:04 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 9 events. 2020-04-07 14:23:04 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, None, {}, {‘prev_action_listen’: 1.0, ‘intent_contact_sales’: 1.0}] 2020-04-07 14:23:04 DEBUG rasa.core.policies.memoization - There is a memorised next action ‘sales_form’ 2020-04-07 14:23:04 DEBUG rasa.core.policies.form_policy - There is no active form 2020-04-07 14:23:04 DEBUG rasa.core.policies.two_stage_fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). 2020-04-07 14:23:04 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_0_MemoizationPolicy 2020-04-07 14:23:04 DEBUG rasa.core.processor - Predicted next action ‘sales_form’ with confidence 1.00. 2020-04-07 14:23:04 DEBUG rasa.core.actions.action - Calling action endpoint to run action ‘sales_form’. 2020-04-07 14:23:04 DEBUG rasa.core.processor - Action ‘sales_form’ ended with events ‘[BotUttered(‘What’s your business email?’, {“elements”: null, “quick_replies”: null, “buttons”: null, “attachment”: null, “image”: null, “custom”: null}, {}, 1586280184.488977), <rasa.core.events.Form object at 0x1354a9290>, <rasa.core.events.SlotSet object at 0x1354a9710>]’. 2020-04-07 14:23:04 DEBUG rasa.core.processor - Current slot values: budget: None business_email: None company: None job_function: None person_name: None requested_slot: business_email use_case: None 2020-04-07 14:23:04 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, None, {}, {‘prev_action_listen’: 1.0, ‘intent_contact_sales’: 1.0}] 2020-04-07 14:23:04 DEBUG rasa.core.policies.memoization - There is a memorised next action ‘sales_form’ 2020-04-07 14:23:04 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, ‘contact_sales’. 2020-04-07 14:23:04 DEBUG rasa.core.policies.form_policy - There is an active form ‘sales_form’ 2020-04-07 14:23:04 DEBUG rasa.core.policies.two_stage_fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). 2020-04-07 14:23:04 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_3_FormPolicy 2020-04-07 14:23:04 DEBUG rasa.core.processor - Predicted next action ‘action_listen’ with confidence 1.00. 2020-04-07 14:23:04 DEBUG rasa.core.processor - Action ‘action_listen’ ended with events ‘[]’. 2020-04-07 14:23:04 DEBUG rasa.core.lock_store - Deleted lock for conversation ‘8aaff16adf7d4e7488e42b5c6f8109ca’. What’s your business email? Your input -> fmelossi@gmail.com
2020-04-07 14:23:16 DEBUG rasa.core.tracker_store - Recreating tracker for id ‘8aaff16adf7d4e7488e42b5c6f8109ca’ 2020-04-07 14:23:16 DEBUG rasa.nlu.selectors.response_selector - Adding following selector key to message property: default 2020-04-07 14:23:16 DEBUG rasa.core.processor - Received user message ‘fmelossi@gmail.com’ with intent ‘{‘name’: ‘inform’, ‘confidence’: 0.9999779462814331}’ and entities ‘[{‘entity’: ‘business_email’, ‘start’: 0, ‘end’: 18, ‘extractor’: ‘DIETClassifier’, ‘value’: ‘fmelossi@gmail.com’}]’ 2020-04-07 14:23:16 DEBUG rasa.core.processor - Current slot values: budget: None business_email: None company: None job_function: None person_name: None requested_slot: business_email use_case: None 2020-04-07 14:23:16 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 15 events. 2020-04-07 14:23:16 DEBUG rasa.core.policies.memoization - Current tracker state [None, {}, {‘prev_action_listen’: 1.0, ‘intent_contact_sales’: 1.0}, {‘active_form_sales_form’: 1.0, ‘intent_contact_sales’: 1.0, ‘prev_sales_form’: 1.0}, {‘entity_business_email’: 1.0, ‘active_form_sales_form’: 1.0, ‘prev_action_listen’: 1.0, ‘intent_inform’: 1.0}] 2020-04-07 14:23:16 DEBUG rasa.core.policies.memoization - There is no memorised next action 2020-04-07 14:23:16 DEBUG rasa.core.policies.form_policy - There is an active form ‘sales_form’ 2020-04-07 14:23:16 DEBUG rasa.core.policies.two_stage_fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). 2020-04-07 14:23:16 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_3_FormPolicy 2020-04-07 14:23:16 DEBUG rasa.core.processor - Predicted next action ‘sales_form’ with confidence 1.00. 2020-04-07 14:23:16 DEBUG rasa.core.actions.action - Calling action endpoint to run action ‘sales_form’. 2020-04-07 14:23:16 DEBUG rasa.core.processor - Action ‘sales_form’ ended with events ‘[BotUttered(‘What company do you work for?’, {“elements”: null, “quick_replies”: null, “buttons”: null, “attachment”: null, “image”: null, “custom”: null}, {“business_email”: “fmelossi@gmail.com”, “requested_slot”: “business_email”}, 1586280196.128727), <rasa.core.events.SlotSet object at 0x13aa6e710>, <rasa.core.events.SlotSet object at 0x13aa6ed10>]’. 2020-04-07 14:23:16 DEBUG rasa.core.processor - Current slot values: budget: None business_email: fmelossi@gmail.com company: None job_function: None person_name: None requested_slot: company use_case: None 2020-04-07 14:23:16 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, None, {}, {‘prev_action_listen’: 1.0, ‘intent_contact_sales’: 1.0}] 2020-04-07 14:23:16 DEBUG rasa.core.policies.memoization - There is a memorised next action ‘sales_form’ 2020-04-07 14:23:16 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, ‘inform’. 2020-04-07 14:23:16 DEBUG rasa.core.policies.form_policy - There is an active form ‘sales_form’ 2020-04-07 14:23:16 DEBUG rasa.core.policies.two_stage_fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). 2020-04-07 14:23:16 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_3_FormPolicy 2020-04-07 14:23:16 DEBUG rasa.core.processor - Predicted next action ‘action_listen’ with confidence 1.00. 2020-04-07 14:23:16 DEBUG rasa.core.processor - Action ‘action_listen’ ended with events ‘[]’. 2020-04-07 14:23:16 DEBUG rasa.core.lock_store - Deleted lock for conversation ‘8aaff16adf7d4e7488e42b5c6f8109ca’. What company do you work for? Your input -> cumbre
2020-04-07 14:23:21 DEBUG rasa.core.tracker_store - Recreating tracker for id ‘8aaff16adf7d4e7488e42b5c6f8109ca’ 2020-04-07 14:23:21 DEBUG rasa.nlu.selectors.response_selector - Adding following selector key to message property: default 2020-04-07 14:23:21 DEBUG rasa.core.processor - Received user message ‘cumbre’ with intent ‘{‘name’: ‘inform’, ‘confidence’: 0.9483634829521179}’ and entities ‘[]’ 2020-04-07 14:23:21 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 21 events. 2020-04-07 14:23:21 DEBUG rasa.core.policies.memoization - Current tracker state [None, {}, {‘prev_action_listen’: 1.0, ‘intent_contact_sales’: 1.0}, {‘active_form_sales_form’: 1.0, ‘intent_contact_sales’: 1.0, ‘prev_sales_form’: 1.0}, {‘active_form_sales_form’: 1.0, ‘prev_action_listen’: 1.0, ‘intent_inform’: 1.0}] 2020-04-07 14:23:21 DEBUG rasa.core.policies.memoization - There is no memorised next action 2020-04-07 14:23:21 DEBUG rasa.core.policies.form_policy - There is an active form ‘sales_form’ 2020-04-07 14:23:21 DEBUG rasa.core.policies.two_stage_fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). 2020-04-07 14:23:21 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_3_FormPolicy 2020-04-07 14:23:21 DEBUG rasa.core.processor - Predicted next action ‘sales_form’ with confidence 1.00. 2020-04-07 14:23:21 DEBUG rasa.core.actions.action - Calling action endpoint to run action ‘sales_form’. 2020-04-07 14:23:21 ERROR rasa.core.actions.action - Failed to extract slot company with action sales_form 2020-04-07 14:23:21 DEBUG rasa.core.policies.memoization - Current tracker state [None, {}, {‘prev_action_listen’: 1.0, ‘intent_contact_sales’: 1.0}, {‘active_form_sales_form’: 1.0, ‘intent_contact_sales’: 1.0, ‘prev_sales_form’: 1.0}, {‘active_form_sales_form’: 1.0, ‘prev_action_listen’: 1.0, ‘intent_inform’: 1.0}] 2020-04-07 14:23:21 DEBUG rasa.core.policies.memoization - There is no memorised next action 2020-04-07 14:23:21 DEBUG rasa.core.policies.form_policy - There is an active form ‘sales_form’ 2020-04-07 14:23:21 DEBUG rasa.core.policies.two_stage_fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). 2020-04-07 14:23:21 DEBUG rasa.core.policies.ensemble - Execution of ‘sales_form’ was rejected. Setting its confidence to 0.0 in all predictions. 2020-04-07 14:23:21 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_1_TEDPolicy 2020-04-07 14:23:21 DEBUG rasa.core.processor - Predicted next action ‘utter_explain_why_budget’ with confidence 0.38. 2020-04-07 14:23:21 DEBUG rasa.core.processor - Action ‘utter_explain_why_budget’ ended with events ‘[BotUttered(‘We need to know your budget to recommend a subscription’, {“elements”: null, “quick_replies”: null, “buttons”: null, “attachment”: null, “image”: null, “custom”: null}, {}, 1586280201.597238)]’. 2020-04-07 14:23:21 DEBUG rasa.core.policies.memoization - Current tracker state [{}, {‘prev_action_listen’: 1.0, ‘intent_contact_sales’: 1.0}, {‘active_form_sales_form’: 1.0, ‘intent_contact_sales’: 1.0, ‘prev_sales_form’: 1.0}, {‘active_form_sales_form’: 1.0, ‘prev_action_listen’: 1.0, ‘intent_inform’: 1.0}, {‘prev_utter_explain_why_budget’: 1.0, ‘active_form_sales_form’: 1.0, ‘intent_inform’: 1.0}] 2020-04-07 14:23:21 DEBUG rasa.core.policies.memoization - There is no memorised next action 2020-04-07 14:23:21 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, ‘inform’. 2020-04-07 14:23:21 DEBUG rasa.core.policies.form_policy - There is an active form ‘sales_form’ 2020-04-07 14:23:21 DEBUG rasa.core.policies.two_stage_fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). 2020-04-07 14:23:21 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_1_TEDPolicy 2020-04-07 14:23:21 DEBUG rasa.core.processor - Predicted next action ‘sales_form’ with confidence 0.94. 2020-04-07 14:23:21 DEBUG rasa.core.actions.action - Calling action endpoint to run action ‘sales_form’. We need to know your budget to recommend a subscription 2020-04-07 14:23:21 DEBUG rasa.core.processor - Action ‘sales_form’ ended with events ‘[BotUttered(‘What company do you work for?’, {“elements”: null, “quick_replies”: null, “buttons”: null, “attachment”: null, “image”: null, “custom”: null}, {“business_email”: “fmelossi@gmail.com”, “requested_slot”: “company”}, 1586280201.6154299), <rasa.core.events.SlotSet object at 0x13ab9ded0>]’. 2020-04-07 14:23:21 DEBUG rasa.core.processor - Current slot values: budget: None business_email: fmelossi@gmail.com company: None job_function: None person_name: None requested_slot: company use_case: None 2020-04-07 14:23:21 DEBUG rasa.core.policies.memoization - Current tracker state [{}, {‘prev_action_listen’: 1.0, ‘intent_contact_sales’: 1.0}, {‘active_form_sales_form’: 1.0, ‘intent_contact_sales’: 1.0, ‘prev_sales_form’: 1.0}, {‘active_form_sales_form’: 1.0, ‘prev_action_listen’: 1.0, ‘intent_inform’: 1.0}, {‘prev_utter_explain_why_budget’: 1.0, ‘active_form_sales_form’: 1.0, ‘intent_inform’: 1.0}] 2020-04-07 14:23:21 DEBUG rasa.core.policies.memoization - There is no memorised next action 2020-04-07 14:23:21 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, ‘inform’. 2020-04-07 14:23:21 DEBUG rasa.core.policies.form_policy - There is an active form ‘sales_form’ 2020-04-07 14:23:21 DEBUG rasa.core.policies.two_stage_fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). 2020-04-07 14:23:21 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_3_FormPolicy 2020-04-07 14:23:21 DEBUG rasa.core.processor - Predicted next action ‘action_listen’ with confidence 1.00. 2020-04-07 14:23:21 DEBUG rasa.core.processor - Action ‘action_listen’ ended with events ‘[]’. 2020-04-07 14:23:21 DEBUG rasa.core.lock_store - Deleted lock for conversation ‘8aaff16adf7d4e7488e42b5c6f8109ca’. What company do you work for? Your input ->

With Rasa X

Thanks for the details! Your assistant does not recognize cumbre as a company. Due to that it is not able to fill the slot. You can see that here:

I would recommend the following:

(1) Add a lookup table with company names to your training data (see NLU Training Data).

(2) Add some more examples to your training data that contain a company name. Make sure to use some company names that are in the lookup table itself.

(3) Keep the RegexFeaturizer in your pipeline, so that the lookup table is converted into additional features.

If that is still not working very well, you can also try the following pipeline instead:

language: en
pipeline:
  - name: WhitespaceTokenizer
  - name: RegexFeaturizer
  - name: CRFEntityExtractor
  - name: CountVectorsFeaturizer
  - name: CountVectorsFeaturizer
    analyzer: "char_wb"
    min_ngram: 1
    max_ngram: 4
  - name: DIETClassifier
    epochs: 100
    entity_recognition: False
  - name: EntitySynonymMapper
  - name: ResponseSelector
    epochs: 100