# Unable to trigger an intent (External Events)

**URL:** <https://forum.rasa.com/t/unable-to-trigger-an-intent-external-events/38912>\
**Category:** Rasa Open Source\
**Created:** [January 12, 2021, 12:08pm UTC](https://forum.rasa.com/t/unable-to-trigger-an-intent-external-events/38912 "2021-01-12T12:08:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![s.grzybowski](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@s.grzybowski](https://forum.rasa.com/u/s.grzybowski)\
**Post date:** [January 12, 2021, 12:08pm UTC](https://forum.rasa.com/t/unable-to-trigger-an-intent-external-events/38912/1 "2021-01-12T12:08:03Z")

</div>

This topic is a continuation to [Question about running External Events in Rasa X/Callback Input](http://forum.rasa.com/t/question-about-running-external-events-in-rasa-x-callback-input/38599)

Spec:

- OS: Win 10
- Python version: 3.8
- Rasa version: 2.0.3

Hi, I was trying to make External Events work in my chatbot. I was doing everything as it was shown in [https://rasa.com/docs/rasa/reaching-out-to-user/#external-events](https://rasa.com/docs/rasa/reaching-out-to-user/#external-events) and [https://github.com/RasaHQ/rasa/blob/master/examples/reminderbot/README.md](https://github.com/RasaHQ/rasa/blob/master/examples/reminderbot/README.md). I think the problem must be with point 1 & 2 from this tutorial. I am not able to trigger an intent.

Here is how I was doing it:

1. I’ve added to my chatbot NLU training data from the tutorial and updated `domain.yml`.
2. I trained the model with `rasa train`.
3. From reminderbot’s [README.md](https://github.com/RasaHQ/rasa/blob/master/examples/reminderbot/README.md): I ran `rasa run actions` and `rasa x` (I use Rasa X in local mode & I was also trying to open this with `callback input` as it was shown in the tutorial but it didn’t work too).
4. After opening Rasa X I went into Talk to your bot and I copied ID conversation from there, then I opened another terminal to make post request. I was trying to 1) do this [post request](https://rasa.com/docs/rasa/reaching-out-to-user/#try-it-out) from the tutorial and 2) with post request from [README](https://github.com/RasaHQ/rasa/blob/master/examples/reminderbot/README.md).

In the first case, I got:

```
(env) PS E:\dev\project007\pro007> curl -H "Content-Type: application/json" -X POST -d \
Invoke-WebRequest : Cannot bind parameter 'Headers'. Cannot convert the "Content-Type: application/json" value of type "System.String" to type "System.Collecti 
ons.IDictionary".
At line:1 char:9
+ curl -H "Content-Type: application/json" -X POST -d \
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
 
(env) PS E:\dev\project007\pro007> '{"name": "EXTERNAL_dry_plant", "entities": {"plant": "Orchid"}}' \
At line:1 char:67
+ '{"name": "EXTERNAL_dry_plant", "entities": {"plant": "Orchid"}}' \
+ ~
Unexpected token '\' in expression or statement.
    + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnexpectedToken
 
(env) PS E:\dev\project007\pro007> "http://localhost:5005/conversations/f220f0964bb1467d830c0f048cdec31c/trigger_intent?output_channel=latest"
http://localhost:5005/conversations/f220f0964bb1467d830c0f048cdec31c/trigger_intent?output_channel=latest

```

After clicking on the above link I saw:

 ![error405](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/6/6a0c9c6d2509cbbd2bb102242be6b1b720e3837e.png)

In the second case I got:

```
(env) PS E:\dev\project007\pro007> curl -X POST http://localhost:5005/webhooks/callback/webhook \
Invoke-WebRequest : A parameter cannot be found that matches parameter name 'X'.
At line:1 char:6
+ curl -X POST http://localhost:5005/webhooks/callback/webhook \
+ ~~
    + CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
(env) PS E:\dev\project007\pro007> -d '{"sender": "tester", "message": "hello"}' \
-d : The term '-d' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was incl 
uded, verify that the path is correct and try again.
At line:1 char:4
+ -d '{"sender": "tester", "message": "hello"}' \
+ ~~
    + CategoryInfo : ObjectNotFound: (-d:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
(env) PS E:\dev\project007\pro007> -H "Content-type: application/json"
-H : The term '-H' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was incl
uded, verify that the path is correct and try again.
At line:1 char:4
+ -H "Content-type: application/json"
+ ~~
    + CategoryInfo : ObjectNotFound: (-H:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

```

I will be grateful for help.

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [January 13, 2021, 2:24pm UTC](https://forum.rasa.com/t/unable-to-trigger-an-intent-external-events/38912/2 "2021-01-13T14:24:52Z")

</div>

Hi, these error messages look like an issue with the commands themselves. Are you sure that these commands work on the Windows environment? Might be that curl requests look slightly different on that platform.

---

<div class="post-metadata">

**Author:** ![s.grzybowski](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@s.grzybowski](https://forum.rasa.com/u/s.grzybowski)\
**Post date:** [January 13, 2021, 9:54pm UTC](https://forum.rasa.com/t/unable-to-trigger-an-intent-external-events/38912/3 "2021-01-13T21:54:57Z")

</div>

Thanks to @akelad

I run the post request from the [tutorial](https://rasa.com/docs/rasa/reaching-out-to-user/#external-events) via **Git Bash** instead of cmd or command prompt in VSC.
