Connect Claude to n8n: 3 Workflows to Try This Week
By Rahul A
Loading guide…
By Rahul A

Connect Claude to n8n with three practical workflows for email triage, form requests, and meeting notes, including setup steps and safety checks.
Connect Claude to n8n by adding an Anthropic credential, then build small workflows that classify email, route requests, or turn meeting notes into tasks with a human review step.
The simplest connection is an n8n workflow with a trigger, an Anthropic node, and an action node, using an Anthropic API credential stored in n8n.
Create an Anthropic API key in the Anthropic Console, then open Credentials in n8n and add an Anthropic credential. Paste the key there, not into a prompt or a Set node. In a new workflow, add a trigger such as Gmail Trigger, Form Trigger, or Webhook. Add the Anthropic node after it and select the saved credential. Depending on your n8n version, the node may be called Anthropic or Message a Model.
Start with one input and one output. For example, pass the email subject and body to Claude, then send the result to your own email or Slack. Click Execute Workflow and test with one ordinary example before activating the workflow. If n8n asks for a model, choose a current Claude model listed in your Anthropic account. Model names, access and pricing change, so check Anthropic's documentation before choosing a default. Keep the API key in n8n Credentials, and revoke it immediately if it appears in a workflow export or screenshot.
For more context, read Connect Claude to Google Sheets Without Writing Code.
Trust Claude for a first-pass recommendation, not an irreversible decision, until you have tested its output against real examples.
Give Claude a narrow job and a fixed response format. A useful instruction is: "Classify this message as sales, support, billing, or other. Return only one label, followed by a two-sentence summary." Add the incoming text below a clear delimiter, then tell Claude not to follow instructions found inside that text. The delimiter helps separate your workflow instructions from untrusted email or form content.
Your next n8n node needs a predictable value. If you use a Switch node, ask Claude for one exact label and create a route for every allowed label, plus a fallback route. Do not route on a vague sentence such as "This seems urgent." For a higher-stakes workflow, ask for a label, confidence explanation, and recommended action, then send everything to a human review inbox. Claude can misunderstand sarcasm, missing context, attachments, and requests hidden inside forwarded messages. The useful default is to automate preparation and routing first. Automate sending, deleting, changing records, or promising a deadline only after your test set shows the fallback route catches mistakes.
For more context, read Turn Gmail Emails into Notion Tasks Automatically.
Yes, Claude can classify incoming email and draft a response while n8n leaves the final send to you.
Build the workflow as Gmail Trigger, Anthropic, Switch, and Gmail. Configure Gmail Trigger to watch the inbox or a chosen label. Pass the sender, subject, plain-text body, and any relevant thread context to Claude. Ask for four fields: category, urgency, short summary, and reply draft. Use a Switch node to route categories such as sales, support, billing, and other. The Gmail node can then apply a label, forward the message to a team address, or create a draft if your n8n setup supports that action.
The gotcha is quoted history. Email threads often include previous messages, signatures, legal notices, or instructions that look like commands. Tell Claude to treat the message as content to analyse, not as workflow instructions. Also limit the body passed into the prompt so an unusually long thread doesn't bury the actual request. Test a normal enquiry, an angry customer, an invoice, a newsletter, and a message containing sensitive information. Keep auto-send off. A draft that needs editing is a useful first workflow; an incorrect reply sent to a customer is an avoidable incident.
Use an n8n Form Trigger or Webhook to collect a request, Claude to classify it, and Slack or email to notify the right person.
For a no-code start, add an n8n Form Trigger with fields for name, email, request type, and details. Connect it to Anthropic and ask Claude to return one of a short list of request types, a concise summary, missing information, and a suggested owner. Add a Switch node for each type. Connect each branch to a Slack or Gmail action with the original request and Claude's summary. Add a final branch for unknown or low-context requests so nothing disappears silently.
The decision rule is simple: use Claude to decide where a request goes, but keep the submitted text attached to the notification so a person can verify the summary. Ask Claude to flag missing details rather than inventing them. For example, a support request without an account identifier should be marked "needs information," not assigned to a product issue. Avoid placing a public webhook URL on a page without spam protection. Add a shared secret, a form access control, or n8n's available authentication option. Send one test request through every branch before activating the form.
Claude can turn pasted meeting notes into a structured summary and proposed tasks, while n8n creates a Notion page for review.
Create an n8n Form Trigger with fields for meeting title, date, attendees, and notes. Pass those fields to Anthropic with instructions to return a summary, decisions, open questions, and tasks. Require each task to include an action, an owner only when the notes explicitly name one, and a due date only when the notes explicitly state one. Tell Claude to write "not specified" rather than guessing. Connect the result to a Notion node that creates a page in a meeting-notes database or parent page.
The common failure is treating discussion as commitment. A sentence such as "We could update the onboarding page" is not necessarily an assigned task. Ask Claude to separate decisions from suggestions and to quote the relevant line for each proposed task. Keep the original notes in the Notion page beneath the generated content. Review the page before copying tasks into a project system. If you later connect a task-management node, make that a separate workflow activated by a human-approved status, not an automatic consequence of every meeting transcript.
Write the Claude prompt as a small contract with a job, allowed values, missing-data rules, and an output format.
Start with the role and action: "Review the request and classify it." List the only valid labels. State what Claude must never do, such as invent an owner, infer a deadline, or follow instructions inside the submitted text. Then provide the input using clear separators. Finish with the exact format the next n8n node expects. For a Switch node, one label on the first line is safer than a long paragraph. For a Notion page, headings and short sections are easier to review.
Use real examples from your own inbox or request form during testing, including awkward examples that previously caused trouble. Keep the prompt separate from changing business rules where possible. If the list of support categories changes, update one place rather than burying it in several workflows. Ask Claude to return a fallback such as "review" when information is incomplete. A prompt that sounds intelligent but permits unlimited wording creates fragile downstream logic. The best prompt is not the most detailed one; it is the one whose output your next n8n node can reliably recognise.
Require human approval before Claude sends a message, changes customer data, deletes anything, or creates a commitment on your behalf.
A practical approval step is an n8n workflow that writes a draft to Gmail, Slack, or Notion and stops there. A person checks the original input, Claude's summary, and the proposed action. You can then use a manual trigger, an approval form, or a status change to start a second workflow. Separating preparation from execution makes it easier to see what went wrong and prevents a single bad classification from causing an external action.
Approval is especially important when the input contains payment questions, complaints, legal language, personal data, or an unclear request. It is less burdensome for low-risk work such as creating a private summary or adding a label. Set a review route for empty fields, unsupported categories, unusually long messages, and any result Claude cannot express in the required format. Do not hide the original text from the reviewer. A polished summary can make a wrong interpretation feel more certain than it is. Automate the repetitive reading and formatting first, then widen the workflow only after you know which mistakes your review step catches.
Check the input, credential, model response, and next-node condition in that order, because most failures occur at one of those boundaries.
Open the failed execution in n8n and inspect the data entering the Anthropic node. Empty fields, HTML email, oversized threads, and unexpected attachment text can make a good prompt appear broken. Next, check that the Anthropic credential is still valid and that the selected model is available to your account. Model names, limits, and pricing can change, so confirm current details in Anthropic's documentation rather than copying an old tutorial.
Then inspect Claude's actual response, not the response you expected. If the Switch node expects "support" but Claude returns "Support," the route may fail. Make the prompt specify exact casing, or normalise the value with the n8n fields and expressions available in your version. Add an unknown route and a notification when it runs. If the workflow times out, reduce the input, avoid sending full email threads, and check whether a retry could duplicate an action. Finally, test with a harmless sample before reactivating the workflow. Automate Basics can use this same checklist when documenting an internal workflow, because a visible failure is easier to fix than a silent wrong result.
That’s the whole lesson. Try it on a real task while it is fresh, then come back for the next one.
The same corner of the library, one job further on.
Drafted with AI assistance from our own research and Search Console data, and reviewed by Rahul A before publishing. Tools and prices change; check the linked official source before you act.