# Chitchat is not working during form custom slot mapping

**URL:** <https://forum.rasa.com/t/chitchat-is-not-working-during-form-custom-slot-mapping/47232>\
**Category:** Rasa Open Source\
**Created:** [August 26, 2021, 9:40am UTC](https://forum.rasa.com/t/chitchat-is-not-working-during-form-custom-slot-mapping/47232 "2021-08-26T09:40:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![actorkrishna](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@actorkrishna](https://forum.rasa.com/u/actorkrishna)\
**Post date:** [August 26, 2021, 10:59am UTC](https://forum.rasa.com/t/chitchat-is-not-working-during-form-custom-slot-mapping/47232/2 "2021-08-26T10:59:17Z")

</div>

To intentionally reject the form execution, you can also return an ActionExecutionRejected event as part of your custom validations or slot mappings.

To handle situations that might cause a form’s execution to be rejected, you can write rules or stories that include the expected interruptions. For example, if you expect your users to chitchat with your bot, you could add a rule to handle this:

rules:

- rule: Example of an unhappy path condition:
# Condition that form is active.

  - active\_loop: restaurant\_form steps:

# This unhappy path handles the case of an intent `chitchat`.

  - intent: chitchat
  - action: utter\_chitchat

# Return to form after handling the `chitchat` intent

  - action: restaurant\_form
  - active\_loop: restaurant\_form In some situations, users may change their mind in the middle of the form action and decide not to go forward with their initial request. In cases like this, the assistant should stop asking for the requested slots.

You can handle such situations gracefully using a default action action\_deactivate\_loop which will deactivate the form and reset the requested slot. An example story of such conversation could look as follows:

stories:

- story: User interrupts the form and doesn’t want to continue steps:
  - intent: request\_restaurant
  - action: restaurant\_form
  - active\_loop: restaurant\_form
  - intent: stop
  - action: utter\_ask\_continue
  - intent: stop
  - action: action\_deactivate\_loop
  - active\_loop: null

> **[Forms](https://rasa.com/docs/rasa/forms)**
>
> Follow a rule-based process of information gathering using forms in open source bot framework Rasa.

---

_[View the full topic](https://forum.rasa.com/t/chitchat-is-not-working-during-form-custom-slot-mapping/47232)._
