WorkflowChatGPTOpen

Openai Workflow: ChatGPT, Code and Condition

Triggered by a webhook. Connects Code, Condition, Crypto, Gmail, Google Sheets, Html, OpenAI, Respond To Webhook. Configuration If you decide to use your own spreadsheet, it is up to you to ensure all columns are present before running this workflow. A good way to do this is to run this workflow once with empty spreadsheetid and worksheetId variables (see the Configure node). Then map the output f

Front matter
name: Openai Workflow
description: Triggered by a webhook. Connects Code, Condition, Crypto, Gmail, Google Sheets, Html, OpenAI, Respond To Webhook. ### Configuration If you decide to use your own spreadsheet, it is up to you to ensure all columns are present before running this workflow. A good way to do this is to run this workflow once with **empty** `spreadsheetid` and `worksheetId` variables (see the `Configure` node). Then map the output from `Store spreadsheet ID` to this node. It is recommended that you specify the `spreadsheetId` and `worksheetId`, since relying solely on a workflow's static data is considered bad practice.
category: Automation
kind: Workflow
software: Code|Condition|Crypto|Gmail|Google Sheets|Html|OpenAI|Respond To Webhook|Switch|Webhook

Openai Workflow

Triggered by a webhook. Connects Code, Condition, Crypto, Gmail, Google Sheets, Html, OpenAI, Respond To Webhook. ### Configuration If you decide to use your own spreadsheet, it is up to you to ensure all columns are present before running this workflow. A good way to do this is to run this workflow once with empty spreadsheetid and worksheetId variables (see the Configure node). Then map the output from Store spreadsheet ID to this node.

It is recommended that you specify the spreadsheetId and worksheetId, since relying solely on a workflow's static data is considered bad practice.

Steps

  • Generate reply (openAi)
  • On email received (gmailTrigger)
  • Only continue for specific emails (if)
  • Configure (set)
  • Note5 (stickyNote)
  • Send reply to recipient (gmail)
  • Generate UUID (crypto)
  • Thanks for your response! (html)
  • Extract message content (advanced) (code)
  • If spreadsheet doesn't exist (if)
  • Successfully created or updated row (noOp)
  • Note1 (stickyNote)
  • Note2 (stickyNote)
  • Note3 (stickyNote)
  • Create spreadsheet (googleSheets)
  • Store spreadsheet ID (code)
  • Paste data (googleSheets)
  • If no sheet IDs (if)
  • Create or update rows (googleSheets)
  • Get data from Format data (code)
  • Get data from Format data node (code)
  • Format data (set)
  • Send email reply (noOp)
  • On feedback given (webhook)
  • Send feedback for fine-tuned data (googleSheets)
  • Show HTML page (respondToWebhook)
  • Get sheet IDs #1 (code)
  • Note (stickyNote)
  • If no spreadsheet in configuration #2 (if)
  • Store specific sheet IDs #2 (code)
  • Get sheet IDs #2 (code)
  • If no spreadsheet in configuration #1 (if)
  • Store specific sheet IDs #1 (code)
  • Email template (html)
  • Record feedback (noOp)
  • Fallback route (noOp)
  • Identify trigger #2 (set)
  • Identify trigger #1 (set)
  • Do not send unfinished email reply (noOp)
  • If reply is complete (if)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source: https://github.com/Zie619/n8n-workflows/blob/main/Code/0299_Code_Webhook_Create_Webhook.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.