question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding delays between multiple actions of a story

See original GitHub issue

rasa-core 0.13.7
rasa-core-sdk 0.12.2
rasa-nlu 0.14.6

Python version: 3.6

Operating system (windows, osx, …): osx

Issue: My story has multiple actions and I want to add delay in between the execution of the actions such that my system is not stalled. Adding a delay in the first action could be a solution, but in that case I want to stop sending BOT response if I get a message from the user.

Content of configuration file (config.yml):

import os

policy_model_dir = os.environ.get("POLICY_MODEL_DIR", "models/dialogue/")

rasa_nlu_config = os.environ.get("RASA_NLU_CONFIG", "nlu_config.yml")

account_sid = os.environ.get("ACCOUNT_SID", "")

auth_token = os.environ.get("AUTH_TOKEN", "")

twilio_number = os.environ.get("TWILIO_NUMBER", "")

platform_api = os.environ.get("RASA_API_ENDPOINT_URL", "")

self_port = int(os.environ.get("SELF_PORT", "5001"))

core_model_dir = os.environ.get("CORE_MODEL_DIR", "models/dialogue/")

remote_core_endpoint = os.environ.get("RASA_REMOTE_CORE_ENDPOINT_URL", "")

rasa_core_token = os.environ.get("RASA_CORE_TOKEN", "")

mailchimp_api_key = os.environ.get("MAILCHIMP_API_KEY", "")

mailchimp_list = os.environ.get("MAILCHIMP_LIST", "")

gdrive_credentials = os.environ.get("GDRIVE_CREDENTIALS", "")

access_token = os.environ.get("TELEGRAM_TOKEN", "")

verify = os.environ.get("TELEGRAM_VERIFY", "rasas_bot")

webhook_url = os.environ.get("WEBHOOK_URL",
                             "https://website-demo.rasa.com/webhook")

rasa_platform_token = os.environ.get("RASA_PLATFORM_TOKEN", "")

rasa_nlg_endpoint = os.environ.get("RASA_NLG_ENDPOINT_URL", "")


Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gunaggcommented, May 24, 2019

You have to return the ReminderScheduled event with parameters in your custom action. You can use python libraries to get the current time and increment by x seconds to set the future time.

0reactions
psds01commented, May 25, 2019

@gunagg Thanks! Thanks! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding a delay between two actions in a Story
Hello, I have two cutsom actions running back to back in a story. I want to run the first custom action, then add...
Read more >
How to set up delayed actions in Google Home's Assistant ...
Setting up delays · On that New Routine page, tap Add action. · Scroll to the bottom of the list and tap Delay...
Read more >
Multiple Actions with different delays in one Automation
The delay option in the action blocks seems to have the same restriction as I can only specify one which is applied the...
Read more >
Set a delay between two instructions in R - Stack Overflow
It sounds like you are looking for Sys.sleep . You would do: for (i in 1:N){ instruction 1 Sys.sleep(time_in_seconds) instruction 2 }.
Read more >
Response Time Limits: Article by Jakob Nielsen
How users react to delays in a user interface, whether website or application. ... For reasonably fast operations, taking between 2 and 10...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found