On receipt of a slack message, name, email and comments are extracted from a channel.
the email in the now populated row is extracted.
AI agent node that drafts an email and sends to the Gmail tool
Gmail tool sends the mail to a client.
If there’s a response before 3 days, a message is sent to a Slack channel saying that the client has responded. Simultaneously, the ‘Status’ column of the row where the email was fetched from in a google sheet is updated from ‘awaiting reply’ to ‘replied’.
if there’s no response after 3 days, a follow-up mail is sent.
if there’s still no response after another 3 days, a slack channel is prompted
If sending email to user. Log the data to a google sheet to record which user receive the email.
Run daily trigger to check from the google sheet. Check if those user respond
If yes → send to slnd update the status
If no → send follow-up email and put the status to followup
Same trigger to detect the status : if followup more than 3 days → change to other status and notify slack.