What are you trying to achieve?
I’m setting up a workflow with a webhook, and I’d like to have my bot increment a counter each time the webhook receives an event. For example, the bot message should update like this:
Total Sales: 1
(1+) Total Sales: 2
Each event received by the webhook should add 1 to the total sales count in the bot’s message.
Steps taken so far
Integrated the webhook and the Telegram Bot
Screenshots: scenario setup, module configuration, errors
There is a built in increment tool in MAKE. Make sure to use never reset a value for your use case.
1 Like
Ok!
Is there a way to include the total increment in the bot’s message?
Yes you can just include the increment in the the bot.
Just select i from the increment and use it before the bot.
1 Like
Thank you so much “Mr.Make”!
Now i’m tryting to make a timer to reset the count at the end of the day , i din’t find a timer on it
That is harder to do you will need to use a datastore
Create one with two columns date and count.
You will then need use a search record module and make sure to check continue when nothing found
Route 1. Key does not exist this is when there is no count for the day yet so we need to create it.
Now set the count for the day to one. Since it is the first of the day:
Route 2:
Count exists for the day already:
Update the record with the old count +1 then you can use this in you bot message
Tip use a set date variable make it easier:
4 Likes