# Reminders with Rasa CALM not trigeering the correct intent

**URL:** <https://forum.rasa.com/t/reminders-with-rasa-calm-not-trigeering-the-correct-intent/61287>\
**Category:** Rasa CALM\
**Created:** [March 9, 2024, 11:24pm UTC](https://forum.rasa.com/t/reminders-with-rasa-calm-not-trigeering-the-correct-intent/61287 "2024-03-09T23:24:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![geeta.m.desai](https://avatars.discourse-cdn.com/v4/letter/g/ea666f/32.png) [@geeta.m.desai](https://forum.rasa.com/u/geeta.m.desai)\
**Post date:** [March 9, 2024, 11:24pm UTC](https://forum.rasa.com/t/reminders-with-rasa-calm-not-trigeering-the-correct-intent/61287/1 "2024-03-09T23:24:36Z")

</div>

I have a functionaity for reminders. I ahve configured as per documentation.But I see warning as (venv) geetadesai@MacBook-Pro rasa-calm % rasa data validate 2024-03-10 04:02:04 INFO rasa\_plus.telemetry - Initialised global config file with Rasa Pro telemetry tracking set to True. 2024-03-10 04:02:06 INFO rasa.validator - Validating intents… /Users/geetadesai/rasa-calm/venv/lib/python3.10/site-packages/rasa/shared/utils/io.py:99: UserWarning: The intent ‘EXTERNAL\_reminder\_callback’ is not used in any story, rule or flow. Though my domain.yml has that entry responses: utter\_time\_for\_medication: - text: “It’s time for your medication.” rules:

- rule: Schedule medication reminder steps:
  - intent: schedule\_medication
  - action: action\_schedule\_medication\_reminder

- rule: reminder callback steps: - intent: EXTERNAL\_reminder\_callback - action: action\_notify\_medication Git URL [GitHub - geeta-m-desai/rasa-calm at new-branch2](https://github.com/geeta-m-desai/rasa-calm/tree/new-branch2) Could you pelase provide some hints on this, I am stuck on this for 2 days.

(venv) geetadesai@MacBook-Pro rasa-calm % rasa --version Rasa Version : 3.7.8 Minimum Compatible Version: 3.7.0 Rasa SDK Version : 3.7.1 Python Version : 3.10.10 Operating System : macOS-14.3.1-x86\_64-i386-64bit Python Path : /Users/geetadesai/rasa-calm/venv/bin/python3 Rasa Plus Version : 3.7.8

It always triggers intentlessPOlicy Your input → reminders 2024-03-10 04:48:11 INFO rasa.utils.log\_utils - [info] llm\_command\_generator.predict\_commands.finished commands=[StartFlowCommand(flow=‘schedule\_reminders’)] I will remind you in 5 seconds. What more can I assist you with? Your input → 2024-03-10 04:49:12 INFO rasa\_plus.ml.intentless\_policy - [info] intentless\_policy.prediction.completed predicted\_action\_name=utter\_boolean\_slot\_rejection score=0.6538142578480671

Action server logs reminder ===\> {‘event’: ‘reminder’, ‘timestamp’: None, ‘intent’: ‘EXTERNAL\_reminder\_callback’, ‘entities’: , ‘date\_time’: ‘2024-03-10T04:49:11.686317’, ‘name’: ‘my\_reminder’, ‘kill\_on\_user\_msg’: False} 2024-03-10 04:48:11 DEBUG rasa\_sdk.executor - Finished running ‘action\_schedule\_medication\_reminder’

Thanks, Geeta

---

<div class="post-metadata">

**Author:** ![Balowen](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/balowen/32/23878_2.png) [@Balowen](https://forum.rasa.com/u/Balowen)\
**Post date:** [April 2, 2024, 12:27pm UTC](https://forum.rasa.com/t/reminders-with-rasa-calm-not-trigeering-the-correct-intent/61287/2 "2024-04-02T12:27:16Z")

</div>

Hi Geeta, [Reminders feature](https://rasa.com/docs/rasa-pro/nlu-based-assistants/reaching-out-to-user/#reminders) was initially designed to work with NLU Based assistants – there may be some issues while trying this with CALM assistants. I see that in your logs a flow `schedule_reminders` and the `action_notify_medication` run properly. Is the only issue the visible warning?

Instead of using a rule (which do not work in CALM assistants), you can add an [intent trigger](https://rasa.com/docs/rasa-pro/concepts/starting-flows#nlu-trigger) to your flows.

---

<div class="post-metadata">

**Author:** ![geeta.m.desai](https://avatars.discourse-cdn.com/v4/letter/g/ea666f/32.png) [@geeta.m.desai](https://forum.rasa.com/u/geeta.m.desai)\
**Post date:** [April 2, 2024, 12:57pm UTC](https://forum.rasa.com/t/reminders-with-rasa-calm-not-trigeering-the-correct-intent/61287/3 "2024-04-02T12:57:35Z")

</div>

Thanks for repsondng. No issue is not only with warning. My External\_Revert reminder intent is never recognized . See below for logs 2024-04-02 18:16:46 DEBUG rasa\_sdk.executor - Received request to run ‘action\_schedule\_medication\_reminder’ reminder ===\> {‘event’: ‘reminder’, ‘timestamp’: 1712062006.452625, ‘intent’: ‘EXTERNAL\_revert’, ‘entities’: None, ‘date\_time’: ‘2024-04-02T18:16:56.452605+05:30’, ‘name’: ‘medication\_reminder’, ‘kill\_on\_user\_msg’: False} 2024-04-02 18:16:46 DEBUG rasa\_sdk.executor - Finished running ‘action\_schedule\_medication\_reminder’

Conversation: USER: reminder AI: I will remind you in 5 seconds. AI: Is there anything else you need assistance with? USER: EXTERNAL: EXTERNAL\_revert

Summary: summarization=The user requested a reminder from the AI, which was set for 5 seconds. The AI then asked if there was anything else the user needed assistance with. 2024-04-02 18:17:01 DEBUG rasa\_plus.ml.contextual\_response\_rephraser - [debug] nlg.rephrase.prompt prompt=The following is a conversation with

I have use DIETCLASSIFIER and NLUCommandAdapter,LLMCommandGenerator

- name: CountVectorsFeaturizer analyzer: “char\_wb” min\_ngram: 1 max\_ngram: 4
- name: DIETClassifier # Adds embeddings epochs: 100 constrain\_similarities: true
- name: EntitySynonymMapper
- name: NLUCommandAdapter mappings: “./nlu\_command\_mappings.yml”
- name: LLMCommandGenerator llm: model\_name: gpt-4 request\_timeout: 7 max\_tokens: 256

policies:

- name: FlowPolicy confidence\_threshold: 0.7
- name: rasa\_plus.ml.IntentlessPolicy number\_of\_samples: 5 nlu\_abstention\_threshold: 0.2 assistant\_id: 20240223-114328-mitram-cares

And set up prooer flows schedule\_reminders: nlu\_trigger: - intent: schedule\_medication confidence\_threshold: 0.2 # optional name: schedule\_medication description: reminder steps: - action: action\_schedule\_medication\_reminder EXTERNAL\_revert: nlu\_trigger: - intent: EXTERNAL\_revert confidence\_threshold: 0.2 # optional name: EXTERNAL\_revert description: EXTERNAL\_revert steps: - action: action\_notify\_medication As earlier John had relied back saying with CALM reminders was never designed and we need to use nlu.

Infact I have tried multiple things on this in alst few days , I could not get it working. Any help is highly appreciated.

---

<div class="post-metadata">

**Author:** ![Balowen](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/balowen/32/23878_2.png) [@Balowen](https://forum.rasa.com/u/Balowen)\
**Post date:** [April 2, 2024, 1:31pm UTC](https://forum.rasa.com/t/reminders-with-rasa-calm-not-trigeering-the-correct-intent/61287/4 "2024-04-02T13:31:19Z")

</div>

I haven’t noticed the other thread, my apologies! What John has said is true, reminders were never designed to work with CALM. For now the old NLU style is the way to go, we will update you if there is a better way to use reminders 🙂

---

<div class="post-metadata">

**Author:** ![geeta.m.desai](https://avatars.discourse-cdn.com/v4/letter/g/ea666f/32.png) [@geeta.m.desai](https://forum.rasa.com/u/geeta.m.desai)\
**Post date:** [April 2, 2024, 1:33pm UTC](https://forum.rasa.com/t/reminders-with-rasa-calm-not-trigeering-the-correct-intent/61287/5 "2024-04-02T13:33:05Z")

</div>

Can you please ellaborate more on using NLU style. I used nlu\_triggers for the same and is not working.

schedule\_reminders: nlu\_trigger: - intent: schedule\_medication confidence\_threshold: 0.2 # optional name: schedule\_medication description: reminder steps: - action: action\_schedule\_medication\_reminder EXTERNAL\_revert: nlu\_trigger: - intent: EXTERNAL\_revert confidence\_threshold: 0.2 # optional name: EXTERNAL\_revert description: EXTERNAL\_revert steps: - action: action\_notify\_medication

---

<div class="post-metadata">

**Author:** ![geeta.m.desai](https://avatars.discourse-cdn.com/v4/letter/g/ea666f/32.png) [@geeta.m.desai](https://forum.rasa.com/u/geeta.m.desai)\
**Post date:** [April 6, 2024, 4:40am UTC](https://forum.rasa.com/t/reminders-with-rasa-calm-not-trigeering-the-correct-intent/61287/6 "2024-04-06T04:40:31Z")

</div>

I solved this problem by invoking callback channel with reminder event programtiaclly from custom action i.e my action of schedule\_reminders. Can this approach bring any challanges later?

---

<div class="post-metadata">

**Author:** ![Balowen](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/balowen/32/23878_2.png) [@Balowen](https://forum.rasa.com/u/Balowen)\
**Post date:** [April 9, 2024, 7:19am UTC](https://forum.rasa.com/t/reminders-with-rasa-calm-not-trigeering-the-correct-intent/61287/7 "2024-04-09T07:19:35Z")

</div>

Glad to hear you got it working! Your method of programmatically invoking a callback channel with a reminder event through a custom action like `schedule_reminders` is quite intriguing. Did you develop this using flows or rules? While your approach seems efficient, it’s valuable to consider any potential challenges, particularly in terms of error handling and scalability for the custom action. It would be incredibly helpful for the community if you could share more details about your implementation. Maybe, would you be willing to share the code? This could allow others to learn from your approach and possibly suggest enhancements or alternatives.

---

<div class="post-metadata">

**Author:** ![geeta.m.desai](https://avatars.discourse-cdn.com/v4/letter/g/ea666f/32.png) [@geeta.m.desai](https://forum.rasa.com/u/geeta.m.desai)\
**Post date:** [April 10, 2024, 10:14am UTC](https://forum.rasa.com/t/reminders-with-rasa-calm-not-trigeering-the-correct-intent/61287/8 "2024-04-10T10:14:24Z")

</div>

Sure. Let me solve the last puzzle of sending that reminder response on socket channel, I will provide code over here.

---

<div class="post-metadata">

**Author:** ![geeta.m.desai](https://avatars.discourse-cdn.com/v4/letter/g/ea666f/32.png) [@geeta.m.desai](https://forum.rasa.com/u/geeta.m.desai)\
**Post date:** [April 13, 2024, 11:43am UTC](https://forum.rasa.com/t/reminders-with-rasa-calm-not-trigeering-the-correct-intent/61287/9 "2024-04-13T11:43:21Z")

</div>

It was not possible to send the reminder message on socket channel with callback handler , faced many issues Hence I took traditional approach of saving reminders in db and a scheduler to send reminders
