# Triggering an intent externally does not work unless user from Telegram actively start sending message

**URL:** <https://forum.rasa.com/t/triggering-an-intent-externally-does-not-work-unless-user-from-telegram-actively-start-sending-message/51498>\
**Category:** Rasa Open Source\
**Created:** [February 22, 2022, 8:07am UTC](https://forum.rasa.com/t/triggering-an-intent-externally-does-not-work-unless-user-from-telegram-actively-start-sending-message/51498 "2022-02-22T08:07:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![throwawayaccount](https://avatars.discourse-cdn.com/v4/letter/t/f6c823/32.png) [@throwawayaccount](https://forum.rasa.com/u/throwawayaccount)\
**Post date:** [February 22, 2022, 8:07am UTC](https://forum.rasa.com/t/triggering-an-intent-externally-does-not-work-unless-user-from-telegram-actively-start-sending-message/51498/1 "2022-02-22T08:07:29Z")

</div>

I’m creating a chatbot to send notifications (using a third-party resource) to a group of registered users on Telegram.

The story goes like this:

```auto
User: (click on Start button) /start
Bot: Hello! Your metadata has been saved. You now will be notified when there's an update.
...
(There's an update. Send to this user of this conversation_id by sending a POST request to /conversations/{conversation_id}/trigger_intent)
Bot: There's an update!

```

Sometimes I need to turn off then turn on the Rasa server for maintenance purposes. Therefore the session of that user is expired. But from the user perspective the bot is still active because they don’t need to click on the “Start” anymore. When I try to send a POST request to `/conversations/{conversation_id}/trigger_intent` again, the message does not show up on Telegram, even though the custom action would still be running normally. I thought this maybe due to issues related to Session.

How do I trigger an intent externally after rerunning Rasa server, without the user having to send a message just to kick off a new session?

---

<div class="post-metadata">

**Author:** ![trainerday](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/trainerday/32/21663_2.png) [@trainerday](https://forum.rasa.com/u/trainerday)\
**Post date:** [October 5, 2022, 2:06pm UTC](https://forum.rasa.com/t/triggering-an-intent-externally-does-not-work-unless-user-from-telegram-actively-start-sending-message/51498/2 "2022-10-05T14:06:49Z")

</div>

I planned on using this triggering intent but this appears to be a show stopper for me. I wanted to send a user a message simplified idea is “Here is todays, workout. Do you like it?” but that would frequently be after new trained models and other restarts. So this outgoing message should trigger the intent to start a story related to today’s workout.

The user responds with an “out of the blue” “yes” with no context i.e. story in progress. It seems as though a solution is to try to trigger a custom action based on this “first response” and that custom action triggers an intent in the desired story.

It sounds possible based on this thread.

> [@Trigger intent from custom action](http://forum.rasa.com/t/trigger-intent-from-custom-action/51727):
>
> I’m trying to trigger a user intent from a custom action through the UserUttered event. I create this event in my custom action and in the debug logs, it appears to be present in the tracker as a valid state (its the last state in the listed states). [state 16] user intent: my\_intent | previous action name: my\_custom\_action | slots: {'slot1': (1.0, 0.0, 0.0), 'slot2': (1.0, 1.0), 'slot3': (1.0, 0.0), 'slot4': (1.0,),...)} I also noticed that get\_intent\_of\_latest\_message returns None after this…
