I’d appreciate some help with creating a loop in my flow that uses new Google Sheets data each time it restarts.
It’s a flow for the Telegram bot which suppose to guide the user through a series of steps.
The idea is: the user gets an image and a button underneath that photo (created through the custom keyboard option in Telegram messages). When the User taps the button, the message on the button changes and a new image is sent, also with the button underneath, and then the process repeats. Data for this process are stored in Google Sheets, each row contains data on the image, original button text and button text after tapping (17 rows).
As the same step is repeated 17 times, I don’t want to build it manually. Instead, I would like to turn it into a loop that will pick up data from the next Google Sheet row each time it goes back. Tapping the button under the picture should trigger sending a new image from the sequence using the same 3 actions:
- Send a Photo (Telegram Actions)
- Wait for the Response
- Edit Message Keyboard (Telegram Actions)
And here is the problem: I can’t figure out how to make it pick up a new row each time and consequently go through all the data. Label and Go to Label only repeat the same loop over and over.
Can someone please tell me what I miss here? Should I add something else to this cycle?