• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

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