# Add new endpoint

**URL:** <https://forum.rasa.com/t/add-new-endpoint/24472>\
**Category:** Rasa Open Source\
**Created:** [February 6, 2020, 6:55pm UTC](https://forum.rasa.com/t/add-new-endpoint/24472 "2020-02-06T18:55:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicolas](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@nicolas](https://forum.rasa.com/u/nicolas)\
**Post date:** [February 6, 2020, 6:55pm UTC](https://forum.rasa.com/t/add-new-endpoint/24472/1 "2020-02-06T18:55:03Z")

</div>

How and where add this change

> Blockquote \* [#4964](https://github.com/rasahq/rasa/issues/4964): External events and reminders now trigger intents (and entities) instead of actions.Add new endpoint `/conversations/<conversation_id>/trigger_intent` , which lets the user specify an intent and a list of entities that is injected into the conversation in place of a user message. The bot then predicts and executes a response action. Blockquote

because i use interactive learning and rasa print this warning

"FutureWarning: Triggering actions via the execute endpoint is deprecated. Trigger an intent via the `/conversations/<conversation_id>/trigger_intent` endpoint instead. result = await result "

---

<div class="post-metadata">

**Author:** ![j.mosig](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/j.mosig/32/3588_2.png) [@j.mosig](https://forum.rasa.com/u/j.mosig)\
**Post date:** [February 10, 2020, 9:41am UTC](https://forum.rasa.com/t/add-new-endpoint/24472/2 "2020-02-10T09:41:05Z")

</div>

Hi @nicolas

The warning appears because triggering actions at random turns (i.e. actions not caused by user) in the conversation will mess up your stories if you save them for training, as such random actions cannot be predicted. You can get around this with an `ActionReverted` event, but we now recommend a new way of handling external events:

- Instead of the `trigger_action` endpoint, send your external messages to the `trigger_intent` endpoint
- Use the mapping policy to map the triggered intent to the action you wish to execute

We are currently working on a tutorial for this, but it is not merged yet. You can have a look here: [Implement reminderbot demo and add user guide by JEM-Mosig · Pull Request #5189 · RasaHQ/rasa · GitHub](https://github.com/RasaHQ/rasa/pull/5189)

Also, check out the other part of the docs, here: [Responses](https://rasa.com/docs/rasa/core/responses/#external-events)

---

<div class="post-metadata">

**Author:** ![ganeshv](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ganeshv/32/4644_2.png) [@ganeshv](https://forum.rasa.com/u/ganeshv)\
**Post date:** [February 10, 2020, 11:46am UTC](https://forum.rasa.com/t/add-new-endpoint/24472/3 "2020-02-10T11:46:04Z")

</div>

Hello @j.mosig, I’m getting this warning even when the bot is responding through a custom action to a user utterance. I introduced a custom action that has a basic delay (just to test this) before going to subsequent actions. This delay is the first action for all user utterances.

Here’s the warning again -

```auto
? The bot wants to run 'r_basic_delay', correct? Yes
/build/lib/python3.6/site-packages/rasa/server.py:178: FutureWarning: Triggering actions via the execute endpoint is deprecated. Trigger an intent via the `/conversations/<conversation_id>/trigger_intent` endpoint instead.
  result = await result

```

Maybe I should wait till the change is merged and a documentation is provided. 🙂
