# Run an action in a conversation HTTP API not displayed in web chat

**URL:** <https://forum.rasa.com/t/run-an-action-in-a-conversation-http-api-not-displayed-in-web-chat/14106>\
**Category:** Rasa Open Source\
**Created:** [August 8, 2019, 2:51pm UTC](https://forum.rasa.com/t/run-an-action-in-a-conversation-http-api-not-displayed-in-web-chat/14106 "2019-08-08T14:51:16Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![mohocp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mohocp/32/4522_2.png) [@mohocp](https://forum.rasa.com/u/mohocp)\
**Post date:** [August 15, 2019, 2:33pm UTC](https://forum.rasa.com/t/run-an-action-in-a-conversation-http-api-not-displayed-in-web-chat/14106/23 "2019-08-15T14:33:32Z")

</div>

Dear @Tobias_Wochinger, I checked it many times but the documentations is very limited and I don’t know from where I can start.

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [August 19, 2019, 2:02pm UTC](https://forum.rasa.com/t/run-an-action-in-a-conversation-http-api-not-displayed-in-web-chat/14106/24 "2019-08-19T14:02:26Z")

</div>

@mohocp What parts don’t you understand so that I can explain them?

---

<div class="post-metadata">

**Author:** ![mohocp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mohocp/32/4522_2.png) [@mohocp](https://forum.rasa.com/u/mohocp)\
**Post date:** [August 19, 2019, 2:29pm UTC](https://forum.rasa.com/t/run-an-action-in-a-conversation-http-api-not-displayed-in-web-chat/14106/25 "2019-08-19T14:29:24Z")

</div>

Thanks for your reply, Here

> you need to supply a credentials.yml with the following content:
> 
> callback: url: “[http://localhost:5034/bot](http://localhost:5034/bot)”

The callback url; The url should refer to what ? and how this url should connect to socket channel ?

Thanks.

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [August 20, 2019, 11:48am UTC](https://forum.rasa.com/t/run-an-action-in-a-conversation-http-api-not-displayed-in-web-chat/14106/26 "2019-08-20T11:48:31Z")

</div>

The callback url is the url which is called by Rasa to sent the latest messages to. So this should be another server which can accept requests to this endpoint and then can forward them to the user.

---

<div class="post-metadata">

**Author:** ![mohocp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mohocp/32/4522_2.png) [@mohocp](https://forum.rasa.com/u/mohocp)\
**Post date:** [August 20, 2019, 11:53am UTC](https://forum.rasa.com/t/run-an-action-in-a-conversation-http-api-not-displayed-in-web-chat/14106/27 "2019-08-20T11:53:43Z")

</div>

> [@Tobias\_Wochinger](#):
>
> So this should be another server which can accept requests to this endpoint

Is Accept request of REST Type ? if yes and I forward the messages to the user using socketio. the run actions using HTTP API should working on this case Yes ?

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [August 23, 2019, 11:28am UTC](https://forum.rasa.com/t/run-an-action-in-a-conversation-http-api-not-displayed-in-web-chat/14106/28 "2019-08-23T11:28:13Z")

</div>

> Is Accept request of REST Type ?

The `CallbackInput` does a REST request yes.

> if yes and I forward the messages to the user using socketio. the run actions using HTTP API should working on this case Yes ?

Mhm, I’m not sure. I guess you can’t tap into the existing socket connection, do you?

---

<div class="post-metadata">

**Author:** ![yhdrytjd](https://avatars.discourse-cdn.com/v4/letter/y/e480ec/32.png) [@yhdrytjd](https://forum.rasa.com/u/yhdrytjd)\
**Post date:** [December 4, 2019, 6:53am UTC](https://forum.rasa.com/t/run-an-action-in-a-conversation-http-api-not-displayed-in-web-chat/14106/29 "2019-12-04T06:53:10Z")

</div>

Hello, may I ask which channels are supported?

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [December 4, 2019, 8:34am UTC](https://forum.rasa.com/t/run-an-action-in-a-conversation-http-api-not-displayed-in-web-chat/14106/30 "2019-12-04T08:34:31Z")

</div>

@yhdrytjd This lists all the supported channels: [HTTP API](https://rasa.com/docs/rasa/api/http-api/#operation/executeConversationAction)

---

<div class="post-metadata">

**Author:** ![maland](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@maland](https://forum.rasa.com/u/maland)\
**Post date:** [January 27, 2020, 4:52pm UTC](https://forum.rasa.com/t/run-an-action-in-a-conversation-http-api-not-displayed-in-web-chat/14106/31 "2020-01-27T16:52:57Z")

</div>

Hi @Tobias_Wochinger

thanks for your answers! I read your comments above and have one question. We created our own channel (Viber) and want to send proactively notifications to users. What options do you have in RASA for usage a custom channels in /conversations/{conversation\_id}/execute?

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [January 28, 2020, 9:03am UTC](https://forum.rasa.com/t/run-an-action-in-a-conversation-http-api-not-displayed-in-web-chat/14106/32 "2020-01-28T09:03:58Z")

</div>

You can use all custom channels as long as the `InputChannel` implements `get_output_channel`

---

<div class="post-metadata">

**Author:** ![mohocp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mohocp/32/4522_2.png) [@mohocp](https://forum.rasa.com/u/mohocp)\
**Post date:** [January 28, 2020, 4:02pm UTC](https://forum.rasa.com/t/run-an-action-in-a-conversation-http-api-not-displayed-in-web-chat/14106/33 "2020-01-28T16:02:56Z")

</div>

If we implement it on socketio.py, we can tap into the socket connection.

Thanks

---

<div class="post-metadata">

**Author:** ![maland](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@maland](https://forum.rasa.com/u/maland)\
**Post date:** [January 29, 2020, 2:10pm UTC](https://forum.rasa.com/t/run-an-action-in-a-conversation-http-api-not-displayed-in-web-chat/14106/34 "2020-01-29T14:10:13Z")

</div>

Dear @Tobias_Wochinger

It works now! thanks a lot!

---

<div class="post-metadata">

**Author:** ![Paula](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@Paula](https://forum.rasa.com/u/Paula)\
**Post date:** [June 15, 2022, 3:59pm UTC](https://forum.rasa.com/t/run-an-action-in-a-conversation-http-api-not-displayed-in-web-chat/14106/36 "2022-06-15T15:59:21Z")

</div>

Hi I have followed your recomendations about CallbackInput and I have also read your suggested example

> **[rasa/examples/reminderbot at main · RasaHQ/rasa](https://github.com/RasaHQ/rasa/tree/main/examples/reminderbot)**
>
> main/examples/reminderbot

I use the following widget ([GitHub - JiteshGaikwad/Chatbot-Widget](https://github.com/JiteshGaikwad/Chatbot-Widget))

Steps to test your example… 1- ngrok http 5005… [http://XXXXXXX.ngrok.io/](http://XXXXXXX.ngrok.io/) 2- in static/js/constants.js (widget)… rasa\_server\_url = '‘[http://XXXXXXX.ngrok.io/webhooks/rest/webhook](http://XXXXXXX.ngrok.io/webhooks/rest/webhook)’ 3- ngrok http 8000 4- python -m http.server 8000 5- rasa run actions 6- python3 callback\_server.py 7- rasa run -m models --enable-api --cors “\*”

curl -XPOST [http://XXXXXXX.ngrok.io/webhooks/callback/webhook](http://XXXXXXX.ngrok.io/webhooks/callback/webhook) -d ‘{“sender”: “tester”, “message”: “remind me to call John”}’ -H “Content-type: application/json”

In console, I can see … I will remind you in 5 seconds. Remember to call John!

But in the Webchat… no text appears.

What I am missing?

[Previous page](https://forum.rasa.com/t/run-an-action-in-a-conversation-http-api-not-displayed-in-web-chat/14106.md?page=1)
