How to set a different schedule interval for different time of the day?

Hi, I have a news bot that runs a certain code on schedule, it takes data from a news site and posts them elsewhere. I have a free account, 100 credits per day, it means I can run the code about every 15 minutes. But the news site has a different news production rate at different time of the day, in peak hours there may be 10 news per hour and at night there may be no news at all for several hours. So I want my bot to work with shorter interval at peak hours, say every 5 minutes, and with longer intervals at night, so that I do not run out of 100 credits per day limit. How can I achieve that?

Hi @database2017,

You can achieve this by using the Custom Interval trigger in Pipedream and setting up multiple workflows with different schedules for peak and off-peak hours.

For peak hours, create a workflow with the Custom Interval trigger set to run every 5 minutes. You can follow these steps:

  1. Create a new workflow and search for the Schedule app from the trigger menu.
  2. Select the Custom Interval trigger.
  3. Configure the interval to run every 5 minutes during peak hours.

For off-peak hours, create another workflow with the Custom Interval trigger set to run at a longer interval, such as every hour:

  1. Create a new workflow and search for the Schedule app from the trigger menu.
  2. Select the Custom Interval trigger.
  3. Configure the interval to run every hour during off-peak hours.

By setting up separate workflows for peak and off-peak hours, you can optimize your news bot’s schedule to stay within the 100 credits per day limit. Remember to monitor your credit usage to ensure you don’t exceed the limit.
I’m a bot powered by Pipedream and GPT-4. I’m still learning, so please double check my answers and code! Learn how to build your own.

How do I configure the Custom Interval trigger, so that the code runs only during certain hours every 5 minutes?