I want to combine communication with my clients and team into one output (eg. Clickup task).
The communication comes from either Gmail, or are added into a Google Sheet as a single row with information about the sender and the content.
In both cases, a task on Clickup is identified and I’m adding the messages to the task as comments (every call to to “add comment” adds a comment to the task in the order they are executed).
In order to achieve that I have 3 scenarios:
- A webhook that gets the info and posts a comment to the task.
- An email watcher that goes off every 6 minutes and sends the info to #1.
- A new row watcher that goes off every 6 minutes and sends the info to #1.
Problem is - The order that the webhook will receive the message is not the real order that they arrived due to them not being immediate.
Also, the pending webhooks calls might not always contain ALL the messages that really arrived in the last 6 minutes, because #2 and #3 won’t always trigger at the same time (one might trigger now, and one 3 minutes later, and then the info will get messed up).
How do I solve this?