• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

ChatGPT Rate Limit

kotakeio

Member
What are some ideas on this issue?

Here is my use case. I have a workflow that is triggered once per month to create some ideas for my next month's email marketing plan. Towards the beginning of the workflow, a message is sent to OpenAI, which returns dates and the type of email to be sent each day. I then split that response, which produces about 20 results I can Iterate. After the Iterator I use the Router by Pabbly based on the email type. Each route (6 Total) has another OpenAI message.

When I run this Workflow, it routinely stops because I hit the OpenAI rate limit for my organization. I know that I can set the Auto Re-Execution settings but after 5 manual re-executions for failed and skipped steps. I still have 5 messages that failed due to the rate limit.

What are some ideas out there on how to stagger the messages being sent? I've thought about delay timers, but saw somewhere that a delay timer after an iterator or router sometimes causes problems. But maybe I am wrong.
 

ArshilAhmad

Moderator
Staff member
Hi @kotakeio,

Having an Iterator and a Delay in the same workflow may cause some issues. I recommend that you add a Data Forwarder in each of your routes immediately after the Filter condition. Create six different workflows and forward data from each route to these workflows.

You can then simply add a Delay after the trigger step (the one that will capture data from the Data Forwarder), and place all your other steps after this Delay. This will save you from having an Iterator and a Delay in the same workflow.
 

Himesh

Active member
Hello @kotakeio,
Instead of using pabbly connect's Delay action, you can use code - javascript action like this to have a delay of 20 seconds.

time.png


Here is the code-
await new Promise(resolve => setTimeout(resolve, 20000));
output = [{wait: "20000ms"}];
 
Top