{
  "id": "tyNhfZniBI7ZcpQ8",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Voicenotes To Slack And Nuclino",
  "tags": [
    {
      "id": "4223SvVX6wz9nuSf",
      "name": "For Public Sharing",
      "createdAt": "2025-07-29T16:47:02.871Z",
      "updatedAt": "2025-07-29T16:47:02.871Z"
    },
    {
      "id": "1L7YdbJxHwcmVOqD",
      "name": "Nuclino",
      "createdAt": "2025-07-29T16:47:11.199Z",
      "updatedAt": "2025-07-29T16:47:11.199Z"
    }
  ],
  "nodes": [
    {
      "id": "fa7ac259-a269-4960-8767-fc1c45352440",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -48,
        -368
      ],
      "parameters": {
        "path": "23eefb69-ae58-46e6-9fcc-a53f6175845e",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 2
    },
    {
      "id": "cc06c5ca-cd5c-4755-8e0e-375f159e8874",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        224,
        -64
      ],
      "parameters": {
        "text": "={{ $json.prompt }}",
        "options": {
          "systemMessage": "You are a helpful assistant to the user.\n\nYou will receive prompts via a workflow system and must respond with a detailed, accurate, and well-structured answer following a **single-turn format**.\n\nYour response **must be in standard Markdown** and follow **this exact structure**:\n\n```\n**SUMMARY**  \n{One-line plain-English summary of the final response}\n\n**PROMPT**  \n{A concise, human-readable summary of the original prompt or request}\n\n**RESPONSE**  \n{A detailed, structured answer. Use clear headings, bullet points, and paragraphs. If applicable, include:\n- Tables comparing tools, products, or approaches\n- An executive summary section at the start\n- A \u201cSources\u201d section at the end with relevant URLs or references}\n```\n\n---\n\n### Content Guidelines\n\n* Prioritize **clarity**, **depth**, and **accuracy**.\n* When comparing options, include both:\n\n  * A **summary comparison table**\n  * A **brief executive summary**\n* Include **direct URLs for all tools, documentation, and sources** in a separate `Sources` section.\n* Ensure the Markdown renders correctly on Slack, GitHub, Obsidian, Notion, and other common markdown renderers.\n\n---\n\n### Voice and Style\n\n* Use a **direct, factual, analytical** tone.\n* Structure long responses with `##` section headers, bullet points, numbered lists, and tables.\n* Avoid vague or generic advice.\n* Assume the reader is technically literate and wants **actionable insights** and **verifiable sources**.\n\n---\n\n**Always include all three sections: `SUMMARY`, `PROMPT`, and `RESPONSE`. Never respond with HTML, JSON, or any other format.**\n"
        },
        "promptType": "define"
      },
      "typeVersion": 2
    },
    {
      "id": "19765382-5c21-4152-afe3-4e9a9ed904db",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        0,
        160
      ],
      "parameters": {
        "model": "anthropic/claude-sonnet-4",
        "options": {}
      },
      "credentials": {
        "openRouterApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "d6cf3a0b-033a-4627-8929-6f326a45a013",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        272,
        -288
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "e825ab7e-cc54-4695-a825-a3d1553510e5",
              "name": "note_title",
              "type": "string",
              "value": "={{ $json.body.data.title }}"
            },
            {
              "id": "4225bf89-fa21-4491-8b8a-4df7bbf2e819",
              "name": "prompt",
              "type": "string",
              "value": "={{ $json.body.data.transcript }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "e7c9fc3c-e3ef-4c49-988b-62e96dcb6f96",
      "name": "Edit Fields1",
      "type": "n8n-nodes-base.set",
      "position": [
        896,
        -304
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "7b71ef88-32ed-4cea-a291-b314ac19505b",
              "name": "note_title",
              "type": "string",
              "value": "={{ $('Edit Fields').item.json.note_title }}"
            },
            {
              "id": "fd4bd3e4-702b-49a4-83c7-bb1ef316c106",
              "name": "prompt",
              "type": "string",
              "value": "={{ $('Edit Fields').item.json.prompt }}"
            },
            {
              "id": "fc6e2202-d7f7-4e2c-9539-88eaf0a5dac4",
              "name": "output",
              "type": "string",
              "value": "={{ $json.output }}"
            },
            {
              "id": "f2e05227-be85-45b5-a4f9-bd6e483b48bf",
              "name": "created",
              "type": "string",
              "value": "={{ $('Webhook').item.json.body.timestamp }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "8fc4497f-aa4e-4d00-bfc5-efe85fdbaf1b",
      "name": "Save Prompt",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        1136,
        -432
      ],
      "parameters": {
        "table": "mg36i2thdctcg5b",
        "fieldsUi": {
          "fieldValues": [
            {
              "fieldName": "c76za9u4d0lhiyx",
              "fieldValue": "={{ $json.prompt }}"
            }
          ]
        },
        "operation": "create",
        "projectId": "p624vvyd3bqxgi8",
        "authentication": "nocoDbApiToken"
      },
      "credentials": {
        "nocoDbApiToken": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "c559778f-c3cd-4005-84b0-ea2a1bfe65f4",
      "name": "Save Output",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        1456,
        -400
      ],
      "parameters": {
        "table": "mn2ttgi7atggy1t",
        "fieldsUi": {
          "fieldValues": [
            {
              "fieldName": "cafb7x2p0a3cstt",
              "fieldValue": "={{ $('AI Agent').item.json.output }}"
            },
            {
              "fieldName": "cu62cluoip9v7v5",
              "fieldValue": "={{ $('Edit Fields1').item.json.prompt }}"
            },
            {
              "fieldName": "c4megtoozksi8kk",
              "fieldValue": "Voicenotes.com Automation (N8N)"
            }
          ]
        },
        "operation": "create",
        "projectId": "p624vvyd3bqxgi8",
        "authentication": "nocoDbApiToken"
      },
      "credentials": {
        "nocoDbApiToken": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "8d03d732-60a2-4624-9d5d-4dcf0062370a",
      "name": "Send a message",
      "type": "n8n-nodes-base.slack",
      "position": [
        1216,
        96
      ],
      "parameters": {
        "text": "=*New AI Response - {{ $json.data.title }}*\n\n*PROMPT*\n\n{{ $('Merge').item.json.prompt }}\n\n*RESPONSE:*\n\n{{ $('Merge').item.json.output }}\n\n*NUCLINO NOTE URL:*\n\n{{ $json.data.url }}",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "list",
          "value": "C097VFQFB1U",
          "cachedResultName": "daniel-prompt-outputs"
        },
        "otherOptions": {
          "mrkdwn": true,
          "unfurl_links": true,
          "unfurl_media": true
        },
        "authentication": "oAuth2"
      },
      "credentials": {
        "slackOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.3
    },
    {
      "id": "da293418-9893-40e3-805d-f23751383e2b",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        656,
        -112
      ],
      "parameters": {
        "mode": "combine",
        "options": {},
        "combineBy": "combineByPosition"
      },
      "typeVersion": 3.2
    },
    {
      "id": "650182fa-48dd-4c38-aa2c-61f28179c1e5",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        928,
        64
      ],
      "parameters": {
        "url": "https://api.nuclino.com/v0/items",
        "method": "POST",
        "options": {
          "batching": {
            "batch": {}
          }
        },
        "sendBody": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "workspaceId",
              "value": "your-workspace-id"
            },
            {
              "name": "title",
              "value": "={{ $json.note_title }}"
            },
            {
              "name": "collectionID",
              "value": "your-collection-id"
            },
            {
              "name": "=content",
              "value": "=## {{ $json.note_title }}\n\n### Created\n\n{{ $json.created }}\n\n## Prompt\n\n{{ $json.prompt }}\n\n## AI Response\n\n{{ $json.output }}"
            }
          ]
        },
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "4ff911de-3724-46e6-aa42-486ad49e3118",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        -496
      ],
      "parameters": {
        "width": 224,
        "height": 128,
        "content": "## Voicenotes voice note tagged as prompt\n"
      },
      "typeVersion": 1
    },
    {
      "id": "2d5944c2-d29e-48f0-8e56-9dabd2c2c042",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        224,
        160
      ],
      "parameters": {
        "width": 224,
        "height": 112,
        "content": "## Gets sent to an AI agent"
      },
      "typeVersion": 1
    },
    {
      "id": "71a9c891-e223-44b0-9237-434bff494fe4",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        544,
        -288
      ],
      "parameters": {
        "width": 224,
        "content": "## Concatenating prompt + response"
      },
      "typeVersion": 1
    },
    {
      "id": "6a39c1b4-15b3-49cb-80c3-52be751b47da",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        784,
        -480
      ],
      "parameters": {
        "content": "## Saving to NocoDB for archive"
      },
      "typeVersion": 1
    },
    {
      "id": "331b03e4-d678-4a34-a290-0285af14d7fe",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        896,
        -112
      ],
      "parameters": {
        "width": 208,
        "height": 112,
        "content": "## Create a doc in Nuclino"
      },
      "typeVersion": 1
    },
    {
      "id": "db3a2bb4-6140-4efc-bf7c-7cd366cc9904",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1200,
        -80
      ],
      "parameters": {
        "width": 208,
        "height": 112,
        "content": "## Notify Via Slack"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "e59f3122-f648-436d-beb6-1a2805c723ae",
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          },
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Save Output": {
      "main": [
        []
      ]
    },
    "Save Prompt": {
      "main": [
        [
          {
            "node": "Save Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "Save Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}