Claude 3.7 Sonnet AI エージェント(ウェブ検索とサイエンス機能付き)
中級
これはBuilding Blocks, AI分野の自動化ワークフローで、7個のノードを含みます。主にAgent, HttpRequestTool, ToolThink, ChatTrigger, LmChatAnthropicなどのノードを使用、AI技術を活用したスマート自動化を実現。 Anthropicのweb検索と考え機能付きClaude 3.7 Sonnet AIチャットボットエージェント
前提条件
- •ターゲットAPIの認証情報が必要な場合あり
- •Anthropic API Key
カテゴリー
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "tnR20GpQTEWVMayy",
"meta": {
"instanceId": "a4bfc93e975ca233ac45ed7c9227d84cf5a2329310525917adaf3312e10d5462",
"templateCredsSetupCompleted": true
},
"name": "Claude 3.7 Sonnet AI Agent with web search and Think functions",
"tags": [],
"nodes": [
{
"id": "28388e6f-3dfc-4e2b-a367-81104c4ef8af",
"name": "チャットメッセージ受信時",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-220,
-140
],
"webhookId": "095537c6-b21a-4cb2-8312-13b1bf1699dc",
"parameters": {
"options": {}
},
"typeVersion": 1.1
},
{
"id": "abd6690f-cbf7-4b47-bba9-6856da348d33",
"name": "AIエージェント",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
0,
-140
],
"parameters": {
"options": {
"systemMessage": "=You are an AI-powered chatbot assistant for a website. Your primary function is to assist users by answering their queries and providing relevant information. You have access to a web_search tool that allows you to browse the internet for up-to-date information. Here's how you should operate:\n\n1. Website Information:\nFamiliarize yourself with this information about the website you're assisting. Use this as context for user interactions.\n\n2. Web Search Tool:\nYou have access to a web_search tool that can browse the internet. To use it, write the variable {web_search_question}. The tool will return relevant search results.\n\n3. Handling User Queries:\nWhen a user asks a question, follow these steps:\na) Analyze the query to determine if it's related to the website or requires external information.\nb) If the query is about the website, use the provided website information to answer.\nc) If external information is needed, use the web_search tool to find relevant data.\n\n4. Using web_search:\n- Use web_search for factual, current information that isn't provided in the website info.\n- Formulate clear, concise search queries.\n- If the first search doesn't yield useful results, refine your query and search again.\n- Limit searches to a maximum of three per user query to maintain efficiency.\n\n5. Using Think:\n- Using Think tool to think about something. It will not obtain new information or change the database, but just append the thought to the log. Use it when complex reasoning or some cache memory is needed.\n\n6. Formulating Responses:\n- Begin with information from the website if relevant.\n- Incorporate web search results to provide up-to-date, accurate information.\n- Summarize findings concisely and coherently.\n- If you're unsure or can't find reliable information, be honest about limitations.\n\n7. Ethical Considerations:\n- Respect user privacy. Don't ask for or store personal information.\n- Provide factual information. Avoid speculation or unverified claims.\n- If asked about controversial topics, strive for a balanced, neutral response.\n- Don't engage in or encourage illegal activities.\n\n8. Output Format:\nDo not include your thought process, web searches, or any other tags in the final output.\n"
}
},
"typeVersion": 1.9
},
{
"id": "f862db48-2498-4e8d-8eab-0ecb3d06e5a8",
"name": "Anthropic チャットモデル",
"type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
"position": [
-80,
80
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "claude-3-7-sonnet-20250219",
"cachedResultName": "Claude 3.7 Sonnet"
},
"options": {
"maxTokensToSample": 1024
}
},
"credentials": {
"anthropicApi": {
"id": "NNTZAD0Gmf7lcniq",
"name": "Anthropic account"
}
},
"typeVersion": 1.3
},
{
"id": "ced144d4-465c-4a8f-8822-97a93111077e",
"name": "シンプルメモリ",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
80,
80
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "93e6bfb3-6a95-4ecf-af39-aad3ca6019a0",
"name": "web_search",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
200,
80
],
"parameters": {
"url": "https://api.anthropic.com/v1/messages",
"method": "POST",
"options": {},
"jsonBody": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('JSON', `{\n \"model\": \"claude-3-7-sonnet-latest\",\n \"max_tokens\": 1024,\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"{web_search_question}\"\n }\n ],\n \"tools\": [\n {\n \"type\": \"web_search_20250305\",\n \"name\": \"web_search\",\n \"max_uses\": 5\n }\n ]\n}\n`, 'json') }}",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"authentication": "predefinedCredentialType",
"toolDescription": "Use this tool to search on the web",
"headerParameters": {
"parameters": [
{
"name": "anthropic-version",
"value": "2023-06-01"
},
{
"name": "content-type",
"value": "application/jso"
}
]
},
"nodeCredentialType": "anthropicApi"
},
"credentials": {
"anthropicApi": {
"id": "NNTZAD0Gmf7lcniq",
"name": "Anthropic account"
},
"httpHeaderAuth": {
"id": "2CfPPhYGH4peDClc",
"name": "Header Auth Anthropic API"
}
},
"typeVersion": 4.2
},
{
"id": "00335b1e-03b2-4c6c-993a-b452e265cdeb",
"name": "Think",
"type": "@n8n/n8n-nodes-langchain.toolThink",
"position": [
320,
80
],
"parameters": {},
"typeVersion": 1
},
{
"id": "0c493a57-65fa-48b4-a3b3-944b052a4dd5",
"name": "付箋メモ",
"type": "n8n-nodes-base.stickyNote",
"position": [
-220,
-340
],
"parameters": {
"width": 620,
"content": "## Claude 3.7 Sonnet AI Agent with web search and Think functions\nThis workflow builds a conversational AI chatbot agent using **Claude 3.7 Sonnet** model with the new . It enhances standard LLM capabilities with Anthropic’s features: **Web Search** and **Think**."
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "0e13b1bb-4231-4d18-80ac-fa155f084a6d",
"connections": {
"00335b1e-03b2-4c6c-993a-b452e265cdeb": {
"ai_tool": [
[
{
"node": "abd6690f-cbf7-4b47-bba9-6856da348d33",
"type": "ai_tool",
"index": 0
}
]
]
},
"93e6bfb3-6a95-4ecf-af39-aad3ca6019a0": {
"ai_tool": [
[
{
"node": "abd6690f-cbf7-4b47-bba9-6856da348d33",
"type": "ai_tool",
"index": 0
}
]
]
},
"ced144d4-465c-4a8f-8822-97a93111077e": {
"ai_memory": [
[
{
"node": "abd6690f-cbf7-4b47-bba9-6856da348d33",
"type": "ai_memory",
"index": 0
}
]
]
},
"f862db48-2498-4e8d-8eab-0ecb3d06e5a8": {
"ai_languageModel": [
[
{
"node": "abd6690f-cbf7-4b47-bba9-6856da348d33",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"28388e6f-3dfc-4e2b-a367-81104c4ef8af": {
"main": [
[
{
"node": "abd6690f-cbf7-4b47-bba9-6856da348d33",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - ビルディングブロック, 人工知能
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
エージェント AI Anthropic Opus4 および Sonnet4
Anthropic AIエージェント:Claude Sonnet 4 と Opus 4、思考機能と web 検索ツール付き
Agent
Http Request Tool
Tool Think
+
Agent
Http Request Tool
Tool Think
11 ノードDavide
エンジニアリング
Google Drive統合のOpenAIアシスタントを構築
Google Driveと統合されたOpenAIアシスタントを構築
Google Drive
Manual Trigger
Open Ai
+
Google Drive
Manual Trigger
Open Ai
12 ノードDavide
ビルディングブロック
OpenRouterを使用した自動AIルーティング
OpenRouterを活用した動のAIモデルルーティングによるクエリ最適化
Agent
Chat Trigger
Lm Chat Open Router
+
Agent
Chat Trigger
Lm Chat Open Router
7 ノードDavide
エンジニアリング
高度なAIディスプレイ(AI開発者第14回集での発表)
高度なAIデモ(AI開発者第14回聚会で展示)
If
Code
Gmail
+
If
Code
Gmail
39 ノードMax Tkacz
ビルディングブロック
非常に簡単な人間が介入する AI メールと IMAP
非常にシンプルな「人間が介入する巡回」型メール返信システム――AI と IMAP プロトコルを活用
If
Set
Markdown
+
If
Set
Markdown
16 ノードDavide
ビルディングブロック
ElevenLabsとOpenAIを活用した音声RAGチャットボット
ElevenLabsとOpenAIを基盤としたAI音声チャットボット - カスタマーサービスや飲食業界向け
Webhook
Google Drive
Http Request
+
Webhook
Google Drive
Http Request
23 ノードDavide
人工知能
ワークフロー情報
難易度
中級
ノード数7
カテゴリー2
ノードタイプ7
作成者
Davide
@n3witaliaFull-stack Web Developer based in Italy specialising in Marketing & AI-powered automations. For business enquiries, send me an email at info@n3w.it or add me on Linkedin.com/in/davideboizza
外部リンク
n8n.ioで表示 →
このワークフローを共有