How To Store Hidden Values With Buttons And Use Them For Bots - Button Payloads ?
Last updated
Last updated
Powered By Automations
Taking an example of task management system to understand the use of button payloads:
Create a Google Sheet to track tasks. Include columns for Task ID, Employee Contact Number, Task Description, and Status which can be taken from a bot.
Assign custom row numbers as Task IDs for each new task.
Send a button template message to the employee's contact number. The message should include the Task Description and a "Done" button for them to report task completion.
When an employee clicks the "Done" button, trigger a new flow in your application. This flow should capture the payload, which contains the Task ID.
Use Google Sheets to search for the Task ID in your sheet and update the Task Status to "Done".
Implementing these steps will allow for efficient task management and status tracking using Google Sheets.