Add Claude 3.7 Sonnet model support to n8n AI nodes

The idea is:

Add support for Anthropic’s Claude 3.7 Sonnet model to n8n’s AI node capabilities. This would include the ability to interact with the latest Claude model (model string: ‘claude-3-7-sonnet-20250219’) via Anthropic’s API within n8n workflows.

My use case:

I need to create automated workflows that leverage Claude 3.7 Sonnet’s advanced reasoning capabilities. Specifically:

  • Processing and analyzing complex data from SQL databases
  • Creating domain models from textual descriptions
  • Summarizing and extracting key information from large documents
  • Building conversational workflows that require advanced reasoning

I think it would be beneficial to add this because:

  1. Claude 3.7 Sonnet represents the latest advancement in Anthropic’s AI models, providing improved reasoning capabilities compared to previous models
  2. Having access to multiple AI providers (not just OpenAI) gives n8n users more flexibility and options
  3. Some users may already have Anthropic API access but not OpenAI
  4. Claude 3.7 Sonnet has specific strengths that complement other AI offerings
  5. Supporting the latest AI models keeps n8n competitive as an automation platform for AI-powered workflows

Any resources to support this?

Are you willing to work on this?

I could potentially contribute to testing.

2 Likes

Please consider adding prompt caching when doing this!

2 Likes

Up! It would be nice

Yes! The best model out now, especially with API access! I need this for prompt chains for editing work. Only o1 Pro is as good as editing as Sonnet 3.7 Extended Thinking and it takes forever in ChatGPT. The Extended Thinking mode is vital!

1 Like

:heavy_plus_sign: This would be fantastic to have access to!

It’s worth noting that in order to support this model cross-region inference would need to be supported. That would unlock the ability to use other models such as Llama 3.3 70B Instruct as well, but is a slightly different implementation than just “enabling” Sonnet 3.7.

I’ve been troubleshooting tirelessly, trying to figure out why the returned response from Anthropic is being cut off, and just realized I’m hitting the Sonnet 3.5 token limit. N8N’s lack of support for 3.7 is currently blocking development of my enterprise app.

You can just use the HTTP request node to access 3.7 at the moment👍

Its also much better as it gives you control over many parameters such as enabling thinking than the in built AI nodes they have in n8n.

Check the anthropic API docs youll have it figured out in no time.

They’ve added support now - upgrade to version 1.84.1 (beta) to get it

I confirm this was released in version 1.82.0

2 Likes