Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Email Automation

Email Automation

Reply to Emails with ChatGPT and Log to Sheets

When a matching email arrives, OpenAI writes a reply, sends it to the sender and records the response in Google Sheets.

What it does

## Send a ChatGPT email reply when email received and save responses to Google Sheets This workflow sends a OpenAI GPT reply when an email is received from specific email recipients. It then saves the initial email and the GPT response to an automatically generated Google spreadsheet. Subsequent GPT responses will be added to the same spreadsheet. Additionally, when feedback is given for any of the GPT responses, it will be recorded to the spreasheet, which can then be used later to fine-tune the GPT model. ### How it works This workflow is essentially a two-in-one workflow. It triggers off from two different nodes and have very different functionality from each trigger. On email received: 1. Triggers off on the On email received node. 2. Extract the email body from the email. 3. Generate a response from the email body using the OpenAI node. 4. Reply to the email sender using the Send reply to recipient node. A feedback link is also included in the email body which will trigger the On feedback given node. This is used to fine-tune the GPT model. 5. Save the email body and OpenAI response to a Google Sheet. If a sheet does not exist, it will be created. On feedback given: 1. Triggers off when a feedback link is clicked in the emailed GPT response. 2. The feedback, either positive or negative, for that specific GPT response is then recorded to the Google Sheet.

The steps

  1. Generate reply
  2. On email received
  3. Only continue for specific emails
  4. Configure
  5. Send reply to recipient
  6. Generate UUID
  7. Thanks for your response!
  8. Extract message content (advanced)
  9. If spreadsheet doesn't exist
  10. Successfully created or updated row
  11. Create spreadsheet
  12. Store spreadsheet ID
  13. Paste data
  14. If no sheet IDs

64 steps in total.

Similar automations