How do Pipedream credits work for workflows monitoring idle chats for extended periods?

This topic was automatically generated from Slack. You can find the original thread here.

Hi
As per the Landbot article here: Trigger Event if User Abandons Chat (For Non Developers) - Landbot Help
I have set up a workflow to monitor idle chats.

“Pipedream charges one credit per 30 seconds of compute time at 256 megabytes of memory (the default) per workflow execution.”
Most workflow executions use a single credit, regardless of the number of steps (unlike some other platforms, Pipedream does not charge for usage based on the number of steps).”

I assume that the workflow starts when the webhook request is received, but if I only want to send a message after a chat is idle for 4 hours, how do the credits work?
So the workflow starts when a chat starts but then if the user doesn’t respond for 4 hours then the node module runs to send a reminder message to the user asking if they would like to continue or close the chat.
During the delay time, I assume the workflow pauses for 4 hours, then checks if the chat is still open.
I am just not sure how credits work in this situation.

, when every there’s a event in your workflow (.i.e landbot fires a request to Pipedream HTTP Webhook), your workflow will be executed and cost credit

So it really depends on how often you configure landbot to send request to Pipedream

A request is sent once. There is a delay of 4 hours (for example), then the node runs to check if the chat variable has changed. So I assume receiving the request is one credit and running the node will be another?

yep you’re correct, receiving the event, then pausing it will cost 1 credit. When the workflow become active, it will cost at least another credit

Great, thanks