# Stopping the conversation

**URL:** <https://forum.rasa.com/t/stopping-the-conversation/1187>\
**Category:** Rasa Open Source\
**Created:** [September 18, 2018, 6:18am UTC](https://forum.rasa.com/t/stopping-the-conversation/1187 "2018-09-18T06:18:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikalp26](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/vikalp26/32/375_2.png) [@Vikalp26](https://forum.rasa.com/u/Vikalp26)\
**Post date:** [September 18, 2018, 6:18am UTC](https://forum.rasa.com/t/stopping-the-conversation/1187/1 "2018-09-18T06:18:09Z")

</div>

I want to stop the conversation after a particular intent provided by the user. Can I create a custom action that does the same?

---

<div class="post-metadata">

**Author:** ![souvikg10](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/souvikg10/32/93_2.png) [@souvikg10](https://forum.rasa.com/u/souvikg10)\
**Post date:** [September 18, 2018, 7:08am UTC](https://forum.rasa.com/t/stopping-the-conversation/1187/2 "2018-09-18T07:08:21Z")

</div>

What do you mean by stop? like the customer can’t ask any more questions or do you just want the bot to forget everything about the user?

You can restart the conversation so the bot forgets all contextual information [https://rasa.com/docs/core/api/events/#restart-a-conversation](https://rasa.com/docs/core/api/events/#restart-a-conversation)

---

<div class="post-metadata">

**Author:** ![Vikalp26](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/vikalp26/32/375_2.png) [@Vikalp26](https://forum.rasa.com/u/Vikalp26)\
**Post date:** [September 18, 2018, 7:20am UTC](https://forum.rasa.com/t/stopping-the-conversation/1187/3 "2018-09-18T07:20:55Z")

</div>

I mean whatever the customer types, bot should not respond. I wanna know if there is a custom action for that?

---

<div class="post-metadata">

**Author:** ![souvikg10](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/souvikg10/32/93_2.png) [@souvikg10](https://forum.rasa.com/u/souvikg10)\
**Post date:** [September 18, 2018, 8:26am UTC](https://forum.rasa.com/t/stopping-the-conversation/1187/4 "2018-09-18T08:26:23Z")

</div>

[https://rasa.com/docs/core/api/events/#pause-a-conversation](https://rasa.com/docs/core/api/events/#pause-a-conversation)

You can pause it, every message to the bot will be ignored

---

<div class="post-metadata">

**Author:** ![Vikalp26](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/vikalp26/32/375_2.png) [@Vikalp26](https://forum.rasa.com/u/Vikalp26)\
**Post date:** [September 18, 2018, 8:48am UTC](https://forum.rasa.com/t/stopping-the-conversation/1187/5 "2018-09-18T08:48:01Z")

</div>

ok thanks man. I have another question. Do you know how to send shortened links through the bot as replies? The frontend is capable of handling links.

---

<div class="post-metadata">

**Author:** ![souvikg10](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/souvikg10/32/93_2.png) [@souvikg10](https://forum.rasa.com/u/souvikg10)\
**Post date:** [September 18, 2018, 9:13am UTC](https://forum.rasa.com/t/stopping-the-conversation/1187/6 "2018-09-18T09:13:36Z")

</div>

You want the links to be programmatically shortened ? use a custom action and use some library to shorted your links and send it back to the user

---

<div class="post-metadata">

**Author:** ![Vikalp26](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/vikalp26/32/375_2.png) [@Vikalp26](https://forum.rasa.com/u/Vikalp26)\
**Post date:** [September 18, 2018, 9:21am UTC](https://forum.rasa.com/t/stopping-the-conversation/1187/7 "2018-09-18T09:21:41Z")

</div>

I am storing responses as custom actions in a dictionary. I’ll give you an example.

payroll\_dict = { ‘block payroll’: ‘To block the payroll of an employee, click on Payroll and choose Block Employee Payroll.’, ‘block the payroll’: ‘To block the payroll of an employee, click on Payroll and choose Block Employee Payroll.’, ‘payroll blocking’: ‘To block the payroll of an employee, click on Payroll and choose Block Employee Payroll.’, }

class ActionRollpay(Action): def name(self): return ‘Action\_Rollpay’

```
def run(self, dispatcher, tracker, domain):
	pa_yroll = tracker.get_slot('pay_roll')
	
	if pa_yroll in payroll_dict:
		reply = payroll_dict[pa_yroll]
	else:
		reply = "It is so odd that I don't have this info on vE. I'm afraid you have to contact the user account manager."
	
	dispatcher.utter_message(reply)
	return [SlotSet('pay_roll', pa_yroll)]

```

And there is an additional requirement that the link should have the name i desire. Like [click here](https://www.exmaple.com)

Do you have any idea of how to do it?

---

<div class="post-metadata">

**Author:** ![lamnguyendnvncn](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lamnguyendnvncn/32/20881_2.png) [@lamnguyendnvncn](https://forum.rasa.com/u/lamnguyendnvncn)\
**Post date:** [July 8, 2022, 10:32am UTC](https://forum.rasa.com/t/stopping-the-conversation/1187/8 "2022-07-08T10:32:46Z")

</div>

Hi, I think what he think is after the user provide a particular intent, the bot will stop the conversation without letting the user enter /stop I am also looking for way to do this but the documents that you tagged is not available anymore.
