# Action server time latency

**URL:** <https://forum.rasa.com/t/action-server-time-latency/61331>\
**Category:** Rasa Open Source\
**Created:** [March 14, 2024, 1:33pm UTC](https://forum.rasa.com/t/action-server-time-latency/61331 "2024-03-14T13:33:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohamedsaoud7](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mohamedsaoud7/32/23986_2.png) [@mohamedsaoud7](https://forum.rasa.com/u/mohamedsaoud7)\
**Post date:** [March 14, 2024, 1:33pm UTC](https://forum.rasa.com/t/action-server-time-latency/61331/1 "2024-03-14T13:33:51Z")

</div>

I’m using rasa open source , usually my chatbot takes 2 seconds to answer , but since i’m using action server , it takes about 6 seconds to answer , even answers that doesn’t envolve using action server takes also long time , i want to know if there is a solution or best practises to reduce this time .

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [March 17, 2024, 8:50pm UTC](https://forum.rasa.com/t/action-server-time-latency/61331/2 "2024-03-17T20:50:38Z")

</div>

The action server is not called unless a custom action needs to be called so there must be something else that is changed. I would review the debug lot to see where the time is being spent. You could run it thru my [rasalog](https://github.com/rgstephens/rasalog) script to help evaluate the log.

---

<div class="post-metadata">

**Author:** ![mohamedsaoud7](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mohamedsaoud7/32/23986_2.png) [@mohamedsaoud7](https://forum.rasa.com/u/mohamedsaoud7)\
**Post date:** [March 18, 2024, 8:46am UTC](https://forum.rasa.com/t/action-server-time-latency/61331/3 "2024-03-18T08:46:08Z")

</div>

Can you please provide me the steps with more expalanation please ?

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [March 18, 2024, 1:48pm UTC](https://forum.rasa.com/t/action-server-time-latency/61331/4 "2024-03-18T13:48:03Z")

</div>

Run Rasa with the `--debug` option.

---

<div class="post-metadata">

**Author:** ![mohamedsaoud7](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mohamedsaoud7/32/23986_2.png) [@mohamedsaoud7](https://forum.rasa.com/u/mohamedsaoud7)\
**Post date:** [March 19, 2024, 9:04am UTC](https://forum.rasa.com/t/action-server-time-latency/61331/5 "2024-03-19T09:04:09Z")

</div>

After debugging :

```auto
2024-03-19 09:55:14 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 4 events.
2024-03-19 09:55:14 DEBUG rasa.core.actions.action - Calling action endpoint to run action 'action_problem'.
2024-03-19 09:55:16 DEBUG rasa.core.actions.action - Calling action endpoint to run action 'action_city'.
2024-03-19 09:55:18 DEBUG rasa.core.actions.action - Validating extracted slots: 
2024-03-19 09:55:18 DEBUG rasa.core.processor - [debug] processor.extract.slots action_extract_slot=action_extract_slots len_extraction_events=0 rasa_events=[]
, i was just saying hi , and the chatbot try the call all the actions that doesn't need , i want to know if there is a solution for this problem

```

---

<div class="post-metadata">

**Author:** ![mohamedsaoud7](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mohamedsaoud7/32/23986_2.png) [@mohamedsaoud7](https://forum.rasa.com/u/mohamedsaoud7)\
**Post date:** [March 19, 2024, 9:36am UTC](https://forum.rasa.com/t/action-server-time-latency/61331/6 "2024-03-19T09:36:13Z")

</div>

The more actions implemented in an action file, the more time-consuming it becomes to process all intent answers.

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [March 19, 2024, 8:47pm UTC](https://forum.rasa.com/t/action-server-time-latency/61331/7 "2024-03-19T20:47:45Z")

</div>

Can you share your repo in github include the action server source code and rule/story/form related to the above log?
