Describe the question
-
I have a flow with information originating from a web form. (ok)
-
That information is appended to an Airtable dataset. (ok)
-
Once the information is written to Airtable, I want to send relevant details via Telegram and prompt the receiver to respond using inline buttons. (ok)
-
Subsequently, the reply must be captured by a Telegram Trigger (callback_query) to initiate the next stage of the flow.
The challenge is that I need to receive, along with the callback_query in step 3 (the trigger), the Airtable information that was utilized in the Telegram origin node.
Is this feasible?
Please share the workflow
Hi, I'm afraid this isn't possible out of the box. The reason for this is that each execution would be independent of the previous one.
So, when your trigger node receives the request from Telegram, this would start a new execution with no data from previous executions being present. You would therefore need to persist the relevant data from previous executions in a database (like Airtable) and then look it up again when the trigger node runs.
Thanks for your time in replying.
So, every time I have an end node of Telegram, I need to write the information to be transferred to a database.
After the trigger starts, one node must go to the database and retrieve the information. The field to use for searching the database could be the chatid that is present in both the reply node and the trigger node.
Do you think this approach is okay?
Instead of using Airtable, would it be possible to generate a JSON, save it to Drive, and then have the trigger node retrieve the information from that JSON?