# Change Context path - RASA

**URL:** <https://forum.rasa.com/t/change-context-path-rasa/33054>\
**Category:** Rasa Open Source\
**Created:** [August 27, 2020, 1:52am UTC](https://forum.rasa.com/t/change-context-path-rasa/33054 "2020-08-27T01:52:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Navin](https://avatars.discourse-cdn.com/v4/letter/n/e5b9ba/32.png) [@Navin](https://forum.rasa.com/u/Navin)\
**Post date:** [August 27, 2020, 1:52am UTC](https://forum.rasa.com/t/change-context-path-rasa/33054/1 "2020-08-27T01:52:31Z")

</div>

Hi, I would like to change the default context path (webhooks/slack/webhook )in the RASA framework to something like webhooks/XYZ/webhook. This is required as this is conflicting the context path with other team that use RASA framework. Please let me know if it is possible. If so where we need to change in the RASA script?

---

<div class="post-metadata">

**Author:** ![Navin](https://avatars.discourse-cdn.com/v4/letter/n/e5b9ba/32.png) [@Navin](https://forum.rasa.com/u/Navin)\
**Post date:** [August 31, 2020, 5:28pm UTC](https://forum.rasa.com/t/change-context-path-rasa/33054/2 "2020-08-31T17:28:45Z")

</div>

Any thoughts?

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [September 1, 2020, 7:35am UTC](https://forum.rasa.com/t/change-context-path-rasa/33054/3 "2020-09-01T07:35:02Z")

</div>

@Navin The prefix is currently determined [based on the channel “name”](https://github.com/RasaHQ/rasa/blob/c313a5d3bf48694c3621cf7f0d0575fd38f65a86/rasa/core/channels/slack.py#L122) . A workaround would be to subclass the `Slack` channel and overwrite `def name()`. The other option would be to [create a feature request](https://github.com/RasaHQ/rasa/issues/new?assignees=&labels=area%3Arasa-oss+%3Aferris_wheel%3A%2Ctype%3Aenhancement+%3Asparkles%3A&template=feature_request.md&title=) to make the used name configurable 🤔

---

<div class="post-metadata">

**Author:** ![Navin](https://avatars.discourse-cdn.com/v4/letter/n/e5b9ba/32.png) [@Navin](https://forum.rasa.com/u/Navin)\
**Post date:** [September 1, 2020, 9:34pm UTC](https://forum.rasa.com/t/change-context-path-rasa/33054/4 "2020-09-01T21:34:02Z")

</div>

Hi @Tobias_Wochinger,

Thanks for the update. At present the default context path for Rasa is webhooks/slack/webhook We need the context path to webhooks/XYZ/webhook

So do we need to change the return “slack” to return “XYZ” in the slack.py at the line numbers 21 and 122 to fix this? Any other changes required?

Navin

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [September 2, 2020, 7:35am UTC](https://forum.rasa.com/t/change-context-path-rasa/33054/5 "2020-09-02T07:35:38Z")

</div>

Yes, that should work 👍 Happy to review a PR to make this more flexible 🙏

---

<div class="post-metadata">

**Author:** ![Navin](https://avatars.discourse-cdn.com/v4/letter/n/e5b9ba/32.png) [@Navin](https://forum.rasa.com/u/Navin)\
**Post date:** [September 2, 2020, 4:04pm UTC](https://forum.rasa.com/t/change-context-path-rasa/33054/6 "2020-09-02T16:04:59Z")

</div>

Thanks @Tobias_Wochinger. Will modify this script accordingly and update. I have raised feature request for this as well.

Navin

---

<div class="post-metadata">

**Author:** ![Navin](https://avatars.discourse-cdn.com/v4/letter/n/e5b9ba/32.png) [@Navin](https://forum.rasa.com/u/Navin)\
**Post date:** [October 12, 2020, 3:08am UTC](https://forum.rasa.com/t/change-context-path-rasa/33054/7 "2020-10-12T03:08:06Z")

</div>

Hey @Tobias_Wochinger, Apologies for the delayed reply. Changed run.py to change the context path.ie added /XYX/webhooks.It worked. But didn’t work if we change the context path to the one below webhooks/XYX/webhook in slack.py. So we are going ahead with changes in run.py. It would be better if we can get this configured somewhere in rasa by means of some command instead of changing the source code.

Navin
