# Is there a guide on how to use http api to complete a dialogue?

**URL:** <https://forum.rasa.com/t/is-there-a-guide-on-how-to-use-http-api-to-complete-a-dialogue/15418>\
**Category:** Rasa Open Source\
**Created:** [September 9, 2019, 11:25am UTC](https://forum.rasa.com/t/is-there-a-guide-on-how-to-use-http-api-to-complete-a-dialogue/15418 "2019-09-09T11:25:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wegamekinglc](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/wegamekinglc/32/4748_2.png) [@wegamekinglc](https://forum.rasa.com/u/wegamekinglc)\
**Post date:** [September 9, 2019, 11:25am UTC](https://forum.rasa.com/t/is-there-a-guide-on-how-to-use-http-api-to-complete-a-dialogue/15418/1 "2019-09-09T11:25:59Z")

</div>

As the title says, I already know how to call http api. But I still don’t know how to use the api to finish the dialogue. The offical doc only show how to use each api seperately but do not contain a full example on how to use them all together to finish a chat between the bot and the client.

e.g.: IMO, I think I should add a message first, then predict the next action, then execute the action, and then predict the next next action and then then execute it unitl I encountered the “action\_listen”.

However after I execute one action, the api keep predicting the same action and won’t end… So I don’t know how should I let the tracker update its status after `execute` some action

---

<div class="post-metadata">

**Author:** ![Tanja](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tanja/32/4696_2.png) [@Tanja](https://forum.rasa.com/u/Tanja)\
**Post date:** [September 10, 2019, 7:39am UTC](https://forum.rasa.com/t/is-there-a-guide-on-how-to-use-http-api-to-complete-a-dialogue/15418/2 "2019-09-10T07:39:00Z")

</div>

You cannot easily do it with the HTTP API. The API was not designed to do that. However, you can use a [RestInput](https://rasa.com/docs/rasa/user-guide/connectors/your-own-website/#restinput). This will give you a webhook endpoint that does exactly what you want. You just need to add `rest` to your `credentials.yml` file. Check the [documentation](https://rasa.com/docs/rasa/user-guide/connectors/your-own-website/#restinput) for more details.

---

<div class="post-metadata">

**Author:** ![wegamekinglc](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/wegamekinglc/32/4748_2.png) [@wegamekinglc](https://forum.rasa.com/u/wegamekinglc)\
**Post date:** [September 10, 2019, 7:56am UTC](https://forum.rasa.com/t/is-there-a-guide-on-how-to-use-http-api-to-complete-a-dialogue/15418/3 "2019-09-10T07:56:13Z")

</div>

Thank you Tanja, I’ll have a try~
