Amplitude(分析ツール)のグラフを、自然な日本語の説明文から自動で作成します。イベント(測定対象となるアクション)の選択、データの絞り込み、グループ分け、グラフの形式など、必要な設定をすべて処理します。 次のような場合に使用: 何を計測したいかは決まっているけれど、グラフを手作業で組み立てるのは避けたい場合。
Creates Amplitude charts from natural language descriptions, handling event selection, filters, groupings, and visualization choices. Use when you know what you want to measure but prefer not to build the chart manually.
自然言語からチャートを作成します。イベント(データのアクション)を探索し、チャート定義を構築し、結果を検証します。
ツールを使う前に、リクエストを分解します:
1. チャートの構成要素を特定
2. イベント検索を計画
3. 並行処理でツール呼び出し
重要:範囲を絞る前に、広くいろいろ調べる
ユーザーのリクエストが曖昧で複数のイベントに該当する可能性がある場合:
イベントを検索:
Amplitude:search with entity_types=['EVENT', 'CUSTOM_EVENT']
情報に基づいた判断を下してから説明:
判断基準:
例:
使う前に検証:
プロパティ(データの属性)を取得:
接続されたカタログの分類法プロパティリーダーで正確な名前とスコープを確認
コホート(特定条件のユーザーグループ)を検索:
Amplitude:search with entity_types=['COHORT']
Amplitude:get_cohorts で完全な定義を取得
| チャートタイプ | 次のような場合に使用 |
|---|---|
eventsSegmentation |
イベント・ユーザーのカウント、時系列トレンド、比較、KPI、分布、プロパティ分析 |
funnels |
既知のステップを持つ多段階変換分析、ドロップオフ分析、特定イベント間の時間、変換までの時間 |
retention |
ユーザーの再利用行動、コホート保持曲線、チャーン分析 |
dataTableV2 |
表形式の比較、ランキング、多次元内訳 |
customerJourney |
パス(ユーザーの行動経路)の探索、未知のパスの発見、変換済みユーザーと離脱ユーザーのパス比較 |
sessions |
セッション継続時間、セッション頻度、ユーザーあたりの時間使用量、セッション長分布 |
eventsSegmentation — 最も用途が広い。以下に使用:
uniques メトリクス集計の対象範囲(eventsSegmentation):
PROPSUM(A) / metric: "sums" = すべてのイベント全体の合計metric: "frequency" = ユーザーあたりのイベント数の分布(1回実施したユーザー数、2回のユーザー数など)metric: "frequency" を使用、またはユーザー ID でグループ化した dataTableV2 に PROPSUM を使い、外部分析用にエクスポートfunnels — 定義済みステップの変換分析。以下に使用:
customerJourney を使用retention — 再利用行動。以下に使用:
dataTableV2 — 表形式データ。以下に使用:
customerJourney — パス探索と発見。以下に使用:
sessions — セッションベースのエンゲージメントメトリクス。以下に使用:
特別なメトリクス:
metric: "uniques"metric: "totals"metric: "sums"(group_by にプロパティを指定)メタイベント:
_active:任意のアクティブイベント(DAU、MAU)_new:新規ユーザー(初回イベント)_any_revenue_event:売上イベントすべてのチャートタイプの共通パラメータ:
{
"name": "わかりやすいチャートタイトル",
"projectId": "12345",
"definition": {
"app": "12345",
"type": "eventsSegmentation",
"params": {
"range": "Last 30 Days",
"events": [{
"event_type": "Purchase Completed",
"filters": [],
"group_by": []
}],
"metric": "uniques",
"countGroup": "User",
"interval": 1,
"segments": [{"conditions": []}]
}
}
}
主要パラメータ:
countGroup:「User」(一意のユーザー)または「Event」(イベント発生数)interval:1(日次)、7(週次)、30(月次)segments:ユーザーのフィルタ・グループ(空配列 = すべてのユーザー)イベントフィルタ(OR ロジック):
"filters": [{
"group_type": "User",
"subprop_key": "country",
"subprop_op": "is",
"subprop_type": "event",
"subprop_value": ["United States", "Canada"]
}]
group_typeはここでカウント対象(「User」または「org id」などのグループ)です。アカウントレベルのプロパティでフィルタするには、subprop_typeを"group"に、group_typeを、そのグループタイプ(アクティブな分類法リーダーのグループプロパティ画面から正確な名前を使う)に設定します。プロパティ名にgrp:をつけません。「Invalid group property … for group type …」というレスポンスが返った場合、そのペアはこのプロジェクトでクエリできません。変更を試さず、ユーザー・またはイベントレベルの同等のものを使用してください。
ユーザーセグメント(条件 AND ロジック):
"segments": [{
"name": "Active Users",
"conditions": [{
"type": "property",
"group_type": "User",
"prop_type": "user",
"prop": "plan",
"op": "is",
"values": ["Pro", "Enterprise"]
}]
}]
コホートセグメント: コホートを検索して ID を取得してから:
"segments": [{
"name": "My Cohort",
"conditions": [{
"type": "cohort",
"group_type": "User",
"cohort_id": "abc123",
"op": "is_in"
}]
}]
Amplitude:get_amplitude_context (projectId を取得するため)
各異なる概念についてAmplitude:search を実行
- 最初は広い検索用語を使用
- 関連するすべてのイベント、カスタムイベント、コホートを探す
- 選択する前に全結果を確認
Amplitude:search entity_types=['CHART'] query="similar concept"
Amplitude:get_charts で定義構造を確認
Create charts from natural language by discovering events, building chart definitions, and verifying results.
Before any tool calls, decompose the request:
1. Identify chart components:
2. Plan event searches:
3. Plan parallel tool calls:
IMPORTANT: Cast a wide net before narrowing down
When the user's request is ambiguous or could map to multiple events:
Search for events:
Amplitude:search with entity_types=['EVENT', 'CUSTOM_EVENT']
Make informed decisions, then explain:
Decision criteria:
Examples:
Verify before use:
Get properties:
Use the connected catalog's taxonomy property reader for exact names and scopes
Find cohorts:
Amplitude:search with entity_types=['COHORT']
Amplitude:get_cohorts to get full definitions
| Chart Type | Use When |
|---|---|
eventsSegmentation |
Counting events/users over time, trends, comparisons, KPIs, distributions, property analytics |
funnels |
Multi-step conversion analysis with a known sequence, drop-off analysis, time between specific events, time-to-convert metrics |
retention |
User return behavior, cohort retention curves, churn analysis |
dataTableV2 |
Tabular comparisons, rankings, multi-dimensional breakdowns |
customerJourney |
Path exploration, discovering unknown paths users take, comparing converted vs dropped-off paths |
sessions |
Session duration, session frequency, time spent per user, session length distributions |
eventsSegmentation - Most versatile. Use for:
uniques metricAggregation Scope (eventsSegmentation):
PROPSUM(A) / metric: "sums" = Global sum across ALL eventsmetric: "frequency" = Distribution of per-user event counts (how many users did it 1x, 2x, 3x)metric: "frequency" for event count distributions, or use dataTableV2 grouped by user_id with PROPSUM, then export for external analysis.funnels - Conversion analysis with predefined steps. Use for:
customerJourney insteadretention - Return behavior. Use for:
dataTableV2 - Tabular data. Use for:
customerJourney - Path exploration and discovery. Use for:
sessions - Session-based engagement metrics. Use for:
Special metrics:
metric: "uniques"metric: "totals"metric: "sums" with property in group_byMeta events:
_active: Any active event (DAU, MAU)_new: New users (first-time event)_any_revenue_event: Revenue eventsCore parameters (all chart types):
{
"name": "Descriptive Chart Title",
"projectId": "12345",
"definition": {
"app": "12345",
"type": "eventsSegmentation",
"params": {
"range": "Last 30 Days",
"events": [{
"event_type": "Purchase Completed",
"filters": [],
"group_by": []
}],
"metric": "uniques",
"countGroup": "User",
"interval": 1,
"segments": [{"conditions": []}]
}
}
}
Key parameters:
countGroup: "User" (unique users) or "Event" (event occurrences)interval: 1 (daily), 7 (weekly), 30 (monthly)segments: User filters/groups (empty array = all users)Event filters (inline OR logic):
"filters": [{
"group_type": "User",
"subprop_key": "country",
"subprop_op": "is",
"subprop_type": "event",
"subprop_value": ["United States", "Canada"]
}]
group_typehere is the counting entity ("User", or a group like "org id") — not the scope of the property. To filter on an account-level property, setsubprop_typeto"group"andgroup_typeto the group type that owns it, using the exact name from the active taxonomy reader's group-property surface. Never prefix the property name withgrp:. If the response isInvalid group property … for group type …, that pair is not queryable in this project — do not retry variants; use a user- or event-level equivalent.
User segments (conditions AND logic):
"segments": [{
"name": "Active Users",
"conditions": [{
"type": "property",
"group_type": "User",
"prop_type": "user",
"prop": "plan",
"op": "is",
"values": ["Pro", "Enterprise"]
}]
}]
Cohort segments: Search for cohort, get ID, then:
"segments": [{
"name": "My Cohort",
"conditions": [{
"type": "cohort",
"group_type": "User",
"cohort_id": "abc123",
"op": "is_in"
}]
}]
Amplitude:get_amplitude_context (for projectId)
Amplitude:search for each distinct concept
- Use broad search terms initially
- Look for all related events, custom events, cohorts
- Review ALL results before selecting
Amplitude:search entity_types=['CHART'] query="similar concept"
Amplitude:get_charts to see definition structure
Use the connected catalog's taxonomy property reader
Amplitude:query_dataset with full definition
Verify results - check data makes sense
Save chart:
Amplitude:save_chart_edits with editId from query_dataset
If query_dataset fails:
If zero results:
Naming:
Time ranges:
Verification:
Comparisons:
Always include:
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。