{
  "openruna_format": "flow-graph-v1",
  "title": "1653_Code_Webhook_Send_Webhook",
  "slug": "1653-code-webhook-send-webhook",
  "source_filename": "1653_Code_Webhook_Send_Webhook.json",
  "nodes": [
    {
      "id": "Generate reply",
      "name": "Generate reply",
      "integration": "openAi",
      "kind": "action"
    },
    {
      "id": "On email received",
      "name": "On email received",
      "integration": "gmail",
      "kind": "trigger"
    },
    {
      "id": "Only continue for specific emails",
      "name": "Only continue for specific emails",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Configure",
      "name": "Configure",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Send reply to recipient",
      "name": "Send reply to recipient",
      "integration": "gmail",
      "kind": "action"
    },
    {
      "id": "Generate UUID",
      "name": "Generate UUID",
      "integration": "crypto",
      "kind": "action"
    },
    {
      "id": "Thanks for your response!",
      "name": "Thanks for your response!",
      "integration": "html",
      "kind": "action"
    },
    {
      "id": "Extract message content (advanced)",
      "name": "Extract message content (advanced)",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "If spreadsheet doesn't exist",
      "name": "If spreadsheet doesn't exist",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Successfully created or updated row",
      "name": "Successfully created or updated row",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Create spreadsheet",
      "name": "Create spreadsheet",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Store spreadsheet ID",
      "name": "Store spreadsheet ID",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Paste data",
      "name": "Paste data",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "If no sheet IDs",
      "name": "If no sheet IDs",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Create or update rows",
      "name": "Create or update rows",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Get data from `Format data`",
      "name": "Get data from `Format data`",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Get data from `Format data` node",
      "name": "Get data from `Format data` node",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Format data",
      "name": "Format data",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Send email reply",
      "name": "Send email reply",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "On feedback given",
      "name": "On feedback given",
      "integration": "webhook",
      "kind": "trigger"
    },
    {
      "id": "Send feedback for fine-tuned data",
      "name": "Send feedback for fine-tuned data",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Show HTML page",
      "name": "Show HTML page",
      "integration": "respondToWebhook",
      "kind": "action"
    },
    {
      "id": "Get sheet IDs #1",
      "name": "Get sheet IDs #1",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "If no spreadsheet in configuration #2",
      "name": "If no spreadsheet in configuration #2",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Store specific sheet IDs #2",
      "name": "Store specific sheet IDs #2",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Get sheet IDs #2",
      "name": "Get sheet IDs #2",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "If no spreadsheet in configuration #1",
      "name": "If no spreadsheet in configuration #1",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Store specific sheet IDs #1",
      "name": "Store specific sheet IDs #1",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Email template",
      "name": "Email template",
      "integration": "html",
      "kind": "action"
    },
    {
      "id": "Record feedback",
      "name": "Record feedback",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Fallback route",
      "name": "Fallback route",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Identify trigger #2",
      "name": "Identify trigger #2",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Identify trigger #1",
      "name": "Identify trigger #1",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Do not send unfinished email reply",
      "name": "Do not send unfinished email reply",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "If reply is complete",
      "name": "If reply is complete",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Do not send email to this recipient",
      "name": "Do not send email to this recipient",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Send reply to database",
      "name": "Send reply to database",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Determine which trigger ran",
      "name": "Determine which trigger ran",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Is text within token limit?",
      "name": "Is text within token limit?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Do nothing",
      "name": "Do nothing",
      "integration": "noOp",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Configure",
      "to": "Determine which trigger ran"
    },
    {
      "from": "Format data",
      "to": "If no spreadsheet in configuration #1"
    },
    {
      "from": "Generate UUID",
      "to": "Extract message content (advanced)"
    },
    {
      "from": "Email template",
      "to": "Send reply to recipient"
    },
    {
      "from": "Generate reply",
      "to": "Send reply to database"
    },
    {
      "from": "Generate reply",
      "to": "If reply is complete"
    },
    {
      "from": "Show HTML page",
      "to": "If no spreadsheet in configuration #2"
    },
    {
      "from": "If no sheet IDs",
      "to": "Create spreadsheet"
    },
    {
      "from": "If no sheet IDs",
      "to": "Get data from `Format data`"
    },
    {
      "from": "Record feedback",
      "to": "Thanks for your response!"
    },
    {
      "from": "Get sheet IDs #1",
      "to": "If no sheet IDs"
    },
    {
      "from": "Get sheet IDs #2",
      "to": "Send feedback for fine-tuned data"
    },
    {
      "from": "Send email reply",
      "to": "Email template"
    },
    {
      "from": "On email received",
      "to": "Identify trigger #1"
    },
    {
      "from": "On feedback given",
      "to": "Identify trigger #2"
    },
    {
      "from": "Create spreadsheet",
      "to": "Store spreadsheet ID"
    },
    {
      "from": "Identify trigger #1",
      "to": "Configure"
    },
    {
      "from": "Identify trigger #2",
      "to": "Configure"
    },
    {
      "from": "If reply is complete",
      "to": "Send email reply"
    },
    {
      "from": "If reply is complete",
      "to": "Do not send unfinished email reply"
    },
    {
      "from": "Store spreadsheet ID",
      "to": "Get data from `Format data` node"
    },
    {
      "from": "Create or update rows",
      "to": "If spreadsheet doesn't exist"
    },
    {
      "from": "Send reply to database",
      "to": "Format data"
    },
    {
      "from": "Thanks for your response!",
      "to": "Show HTML page"
    },
    {
      "from": "Determine which trigger ran",
      "to": "Only continue for specific emails",
      "label": "gmail"
    },
    {
      "from": "Determine which trigger ran",
      "to": "Record feedback",
      "label": "webhook"
    },
    {
      "from": "Determine which trigger ran",
      "to": "Fallback route"
    },
    {
      "from": "Get data from `Format data`",
      "to": "Create or update rows"
    },
    {
      "from": "Is text within token limit?",
      "to": "Generate reply"
    },
    {
      "from": "Is text within token limit?",
      "to": "Do nothing"
    },
    {
      "from": "Store specific sheet IDs #1",
      "to": "If no sheet IDs"
    },
    {
      "from": "Store specific sheet IDs #2",
      "to": "Send feedback for fine-tuned data"
    },
    {
      "from": "If spreadsheet doesn't exist",
      "to": "Create spreadsheet"
    },
    {
      "from": "If spreadsheet doesn't exist",
      "to": "Successfully created or updated row"
    },
    {
      "from": "Get data from `Format data` node",
      "to": "Paste data"
    },
    {
      "from": "Only continue for specific emails",
      "to": "Generate UUID"
    },
    {
      "from": "Only continue for specific emails",
      "to": "Do not send email to this recipient"
    },
    {
      "from": "Extract message content (advanced)",
      "to": "Is text within token limit?"
    },
    {
      "from": "If no spreadsheet in configuration #1",
      "to": "Get sheet IDs #1"
    },
    {
      "from": "If no spreadsheet in configuration #1",
      "to": "Store specific sheet IDs #1"
    },
    {
      "from": "If no spreadsheet in configuration #2",
      "to": "Get sheet IDs #2"
    },
    {
      "from": "If no spreadsheet in configuration #2",
      "to": "Store specific sheet IDs #2"
    }
  ]
}