モデルのトークン数とツールを取得
中級
これはBuilding Blocks, AI分野の自動化ワークフローで、11個のノードを含みます。主にN8n, Set, Code, HttpRequest, GoogleSheetsなどのノードを使用、AI技術を活用したスマート自動化を実現。 🥇 トークン推定器 - JinaAIでAIモデルのトークン使用量とコストを追跡するサブワークフロー
前提条件
- •ターゲットAPIの認証情報が必要な場合あり
- •Google Sheets API認証情報
カテゴリー
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "L7ExYkeKvBYwWbc3",
"meta": {
"instanceId": "ba3fa76a571c35110ef5f67e5099c9a5c1768ef125c2f3b804ba20de75248c0b",
"templateCredsSetupCompleted": false
},
"name": "Get Model Token Count and Tools",
"tags": [],
"nodes": [
{
"id": "c920594a-980b-4f41-997a-78768984df6f",
"name": "「ワークフローをテスト」クリック時",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-1100,
580
],
"parameters": {},
"typeVersion": 1
},
{
"id": "a6f21ab6-219a-49fa-b7ee-f59db8a49da6",
"name": "n8n 実行データ取得",
"type": "n8n-nodes-base.n8n",
"position": [
-800,
340
],
"parameters": {},
"typeVersion": 1
},
{
"id": "2aad0913-9c3c-413b-8a99-61acb7833f1d",
"name": "AI使用データ取得",
"type": "n8n-nodes-base.code",
"position": [
-480,
340
],
"parameters": {},
"typeVersion": 2
},
{
"id": "4983f61e-b7b6-4607-b255-6bea04d9fcda",
"name": "Ai_Run_Data設定",
"type": "n8n-nodes-base.set",
"position": [
-200,
340
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "3ea6794e-25d6-432b-905c-3207f87fb048",
"name": "AI価格取得",
"type": "n8n-nodes-base.httpRequest",
"onError": "continueRegularOutput",
"position": [
80,
340
],
"parameters": {},
"retryOnFail": true,
"typeVersion": 4.2
},
{
"id": "e384a724-1f4f-4677-b15e-ddba8e693ecc",
"name": "モデル価格取得とサマリー追加",
"type": "n8n-nodes-base.code",
"position": [
360,
340
],
"parameters": {},
"typeVersion": 2
},
{
"id": "6db7b4f5-b932-44d8-8311-2250aeee2502",
"name": "Google シーツ",
"type": "n8n-nodes-base.googleSheets",
"position": [
660,
340
],
"parameters": {},
"typeVersion": 4.5
},
{
"id": "7f2a88b7-16b5-4ce4-89a4-68c477a08fba",
"name": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1860,
140
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "d0606f04-8d97-4aa7-a2db-bbb748c0e714",
"name": "他ワークフロー実行時",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
-1100,
160
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "d53e218d-5f2a-461b-9e22-e515362d05e8",
"name": "付箋6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-500,
560
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "3c88feea-0dc4-480d-a3a5-236ee269b79b",
"name": "付箋1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1860,
-240
],
"parameters": {
"content": ""
},
"typeVersion": 1
}
],
"active": true,
"pinData": {
"When clicking ‘Test workflow’": [
{
"json": {
"executionId": 44762
}
}
]
},
"settings": {
"executionOrder": "v1"
},
"versionId": "95e5afe5-706f-460b-bf58-f20c7ffe4151",
"connections": {
"3ea6794e-25d6-432b-905c-3207f87fb048": {
"main": [
[
{
"node": "e384a724-1f4f-4677-b15e-ddba8e693ecc",
"type": "main",
"index": 0
}
]
]
},
"4983f61e-b7b6-4607-b255-6bea04d9fcda": {
"main": [
[
{
"node": "3ea6794e-25d6-432b-905c-3207f87fb048",
"type": "main",
"index": 0
}
]
]
},
"2aad0913-9c3c-413b-8a99-61acb7833f1d": {
"main": [
[
{
"node": "4983f61e-b7b6-4607-b255-6bea04d9fcda",
"type": "main",
"index": 0
}
]
]
},
"a6f21ab6-219a-49fa-b7ee-f59db8a49da6": {
"main": [
[
{
"node": "2aad0913-9c3c-413b-8a99-61acb7833f1d",
"type": "main",
"index": 0
}
]
]
},
"e384a724-1f4f-4677-b15e-ddba8e693ecc": {
"main": [
[
{
"node": "6db7b4f5-b932-44d8-8311-2250aeee2502",
"type": "main",
"index": 0
}
]
]
},
"d0606f04-8d97-4aa7-a2db-bbb748c0e714": {
"main": [
[
{
"node": "a6f21ab6-219a-49fa-b7ee-f59db8a49da6",
"type": "main",
"index": 0
}
]
]
},
"c920594a-980b-4f41-997a-78768984df6f": {
"main": [
[
{
"node": "a6f21ab6-219a-49fa-b7ee-f59db8a49da6",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - ビルディングブロック, 人工知能
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
以下は、入力された中国語テキストを日本語に正確に翻訳し、元の専門用語は変更せず、1 行に 1 つの翻訳を加えた結果です。
DeepGramとGPT-4oによる音声対話分析・可視化
Set
Code
Html
+
Set
Code
Html
54 ノードRealSimple Solutions
人工知能
Anthropic Claude API を使用したバッチプロンプト処理
Anthropic Claude API を使ってプロンプトをバッチ処理
If
Set
Code
+
If
Set
Code
39 ノードGreg Evseev
ビルディングブロック
カスタムQdrantベクタース토アMCPサーバーを構築
カスタムQdrantベクターストアMCPサーバーを構築する
If
Set
Code
+
If
Set
Code
44 ノードJimleuk
ビルディングブロック
ideogGener8r ✨ - ideogram専用の究極のn8Nユーザーインターフェース
✨ ideoGener8r – 完全なIdeogram AI画像ジェネレーターUI、Googleサービスと統合
Set
Html
Switch
+
Set
Html
Switch
47 ノードRealSimple Solutions
人工知能
n8n プラットフォームデザインチーム
AIデザインチーム - IdeogramとOpenAIを使用してAI画像を生成・評価
Set
Gmail
Switch
+
Set
Gmail
Switch
37 ノードRealSimple Solutions
デザイン
転写評価ツール V2
🔊 ブラウザ音声録音の音声文字起こしとAI分析(DeepgramとGPT-4oを使用)
Set
Code
Html
+
Set
Code
Html
54 ノードRealSimple Solutions
人工知能