# \[SOLVED\] How to specify action\_endpoints

**URL:** <https://forum.rasa.com/t/solved-how-to-specify-action-endpoints/1145>\
**Category:** Rasa Open Source\
**Created:** [September 17, 2018, 4:58am UTC](https://forum.rasa.com/t/solved-how-to-specify-action-endpoints/1145 "2018-09-17T04:58:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fade2black](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fade2black/32/1922_2.png) [@fade2black](https://forum.rasa.com/u/fade2black)\
**Post date:** [September 17, 2018, 4:58am UTC](https://forum.rasa.com/t/solved-how-to-specify-action-endpoints/1145/1 "2018-09-17T04:58:22Z")

</div>

I have created a simple bot. I also have a simple HTTP server working on another host and a couple of custom actions on that server. I specified the action endpoint in my `enpoints.yml` file as following

```auto
action_endpoint:
  url: "http://172.17.0.3:8080/" 

```

My `talk.py` file is

```auto
def talk_with_nlu():
    agent = Agent.load('models/dialogue', interpreter='./models/nlu/default/simplebotnlu/', action_endpoint='./endpoints.yml')
    print("Your bot is ready to talk! Type your messages here or send 'stop'")
    while True:
        a = input()
        if a == 'stop':
            break
        responses = agent.handle_message(a)
        for response in responses:
            print(response["text"])

talk_with_nlu()

```

When I run this script I don’t see any request post to my HTTP server. I also tried to run by

```auto
python -m rasa_core.run -d models/dialogue -u models/nlu/default/simplebotnlu --endpoints ./endpoints.yml

```

but it also does not post anything to my remote server.

Any idea?

References:

1. [https://rasa.com/docs/core/api/agent/](https://rasa.com/docs/core/api/agent/)
2. [https://rasa.com/docs/core/customactions/](https://rasa.com/docs/core/customactions/)

---

<div class="post-metadata">

**Author:** ![fade2black](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fade2black/32/1922_2.png) [@fade2black](https://forum.rasa.com/u/fade2black)\
**Post date:** [September 17, 2018, 6:37am UTC](https://forum.rasa.com/t/solved-how-to-specify-action-endpoints/1145/2 "2018-09-17T06:37:50Z")

</div>

Never mind, worked. I simply need to specify an action which is not defined in stories.

---

<div class="post-metadata">

**Author:** ![Abir](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/abir/32/771_2.png) [@Abir](https://forum.rasa.com/u/Abir)\
**Post date:** [September 22, 2018, 2:21pm UTC](https://forum.rasa.com/t/solved-how-to-specify-action-endpoints/1145/3 "2018-09-22T14:21:48Z")

</div>

[Solved]hey could you explain how you did that , it seems i am stuck creating custom actions in 0.11.3 ☹

---

<div class="post-metadata">

**Author:** ![fade2black](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fade2black/32/1922_2.png) [@fade2black](https://forum.rasa.com/u/fade2black)\
**Post date:** [September 23, 2018, 10:28am UTC](https://forum.rasa.com/t/solved-how-to-specify-action-endpoints/1145/4 "2018-09-23T10:28:19Z")

</div>

You simply run a (simple) HTTP server, say, on `172.17.0.3:8080`, which would process incoming requests, in particular POST requests since RASA sends POST requests (see documentation). The body of the requests is in JSON format and so your response should also be in JSON format.

Define an intent in your domain file, for example `custom.intent`. Do not type anything related to the `custom.intent` in your stories file. When RASA detects this intent and finds nothing related to this intent in your stories file it automatically sends a requests to your remote action server with all necessary information packed in JSON format. The rest is up to you how to process it and what to response.

Also do not forget to specify the endpoint in your python file when you create an agent, e.g.,

```auto
from rasa_core.utils import EndpointConfig
...
agent = Agent.load('./models/dialogue',
        interpreter=RasaNLUInterpreter('./models/nlu/default/my_bot/'),
        action_endpoint=EndpointConfig(url="http://172.17.0.3:8080/"))
...

```

---

<div class="post-metadata">

**Author:** ![Abir](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/abir/32/771_2.png) [@Abir](https://forum.rasa.com/u/Abir)\
**Post date:** [September 25, 2018, 1:09pm UTC](https://forum.rasa.com/t/solved-how-to-specify-action-endpoints/1145/5 "2018-09-25T13:09:19Z")

</div>

Endpointconfig was what i needed . Thanks , my problem is solved

---

<div class="post-metadata">

**Author:** ![rohitnairtech](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rohitnairtech/32/2100_2.png) [@rohitnairtech](https://forum.rasa.com/u/rohitnairtech)\
**Post date:** [May 26, 2019, 4:33am UTC](https://forum.rasa.com/t/solved-how-to-specify-action-endpoints/1145/6 "2019-05-26T04:33:15Z")

</div>

Hey, how do I specify NLG server in agent.load()?
