Can we put the delay task in seconds instead minutes, hours, days or weeks ?

clem

Member
Your Task History ID
IjU3NjUwNTZjMDYzZTA0MzU1MjZiNTUzNTUxM2E1MTY0NTQzODBmMzQi_pc
I'm trying to build the open ai assistant for Telegram, and in the workflow it necessite a delay to reply the answer from open ai assistant to the telegram user. But the delay task is only in minutes, hours, days and weeks. But the better parameter will be in seconds because customer cant wait one minute to get the answer. I'll try a 0.1 minute, or 0,1 minute (with coma insttead point) but it isn't accepted by the task. Only round number like 1 or 2.
Is there a way to fiw this problem or should we wait for an entire minute to get the answer in Telegram ?
Thank you for your help
 

Preeti Paryani

Well-known member
Staff member
Hello @clem,

You can use "Code by Pabbly" to add a delay in your workflow. Refer to the attached image for guidance.

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

1734434943809.png



Alternatively, you can use the action available in Pabbly Connect, as shown in the attached screenshot.


image (38).png
 
Top