Carta CRM(会社が顧客とのやり取りを管理するシステム)に登録されている既存の案件情報を更新します。 **次のような場合に使用:** 「案件を更新して」「案件を〇〇ステージに動かして」「案件のステージを変更して」「案件を編集して」「案件の項目を更新して」「案件にタグを追加して」「案件のリード担当者を割り当てて」「案件の企業情報を更新して」「案件に連絡先をリンクして」といった指示や、「/update-deal」というコマンドが使われたとき **機能:** - 案件IDまたは企業名で対象を指定できます(IDがない場合は企業名で検索されます) - 指定された項目だけが更新され、その他の項目は変更されません
Updates an existing deal record in the Carta CRM. Use this skill when the user says things like "update a deal", "move deal to [stage]", "change deal stage", "edit deal", "update deal fields", "add a tag to deal", "assign deal lead", "update company info on deal", "link contacts to deal", or "/update-deal". Accepts a deal ID or company name (will search if no ID provided). Only the fields explicitly provided are changed — all other fields are left untouched.
バージョン: carta-crm:1.15.0
既存の取引を部分的に更新します。指定されたフィールド(項目)だけが変更され、全体置き換わりではありません。まず取引IDを確定し、変更内容を確認してから、更新ツールを実行します。
ユーザーが取引IDを直接提供した場合は、それを使用してステップ3に進みます。
会社名だけが与えられた場合は、まずget_deal_fieldsを呼び出してから検索します:
crm_call_tool({ "name": "crm:get_deal_fields", "arguments": {} })
crm_call_tool({ "name": "crm:search_deals", "arguments": { query: "<company name>", limit: 10 } })
複数の取引が一致した場合は、一覧を表示し、ユーザーにどれを更新するか確認を求めます。各項目について会社名、段階(ステージ)、IDを表示してください。
ユーザーに何を変更したいか尋ねます:
| フィールド名 | 説明 |
|---|---|
stageId |
取引を別の段階に移動する |
company.name |
関連会社名を更新する |
company.url |
会社のウェブサイトURLを更新する(自動情報補充が起動します) |
comment |
取引のコメント・備考を変更する |
tags |
タグの全体リストを置き換える |
dealLead |
担当者として割り当てるユーザーID |
addedAt |
取引を追加した日時(ISO 8601形式) |
fields |
フィールドIDをキーとするカスタム項目の値 |
people.advisers |
アドバイザーとしてリンクされた連絡先ID |
people.introducer |
紹介者としてリンクされた連絡先ID |
people.management |
管理者としてリンクされた連絡先ID |
ユーザーがステージをステージ名で移動したい場合は、まずパイプライン(営業プロセスの流れ)を取得します:
crm_call_tool({ "name": "crm:get_deal_pipelines_with_stages", "arguments": {} })
カスタム項目をIDではなくラベル名で更新する場合は:
crm_call_tool({ "name": "crm:get_deal_custom_fields", "arguments": {} })
重要: 明確に変更する項目だけを含めてください。それ以外は省略してください。
以下を実行します:
crm_call_tool({
"name": "crm:update_deal",
"arguments": {
id: "<取引ID>",
stageId: "<ステージID>",
company: { name: "<会社名>", url: "<URL>" },
comment: "<更新されたコメント>",
tags: ["<タグ1>", "<タグ2>"],
dealLead: "<ユーザーID>",
addedAt: "<ISO 8601形式の日時>",
fields: { "<フィールドID>": "<値>" },
people: {
advisers: ["<連絡先ID>"],
introducer: ["<連絡先ID>"],
management: ["<連絡先ID>"]
}
}
})
更新しないトップレベルのキーは削除してください。
成功した場合は、変更内容の要約を表示します:
「{会社名} の取引が更新されました(ID:
{ID})。変更項目: [変更されたフィールド一覧]」
エラーの場合は、エラーメッセージを表示し、次を提案します:
/search-dealsで検索してくださいget_deal_pipelines_with_stagesを実行してくださいユーザーが同じ変更を複数の取引に適用したい場合は、各取引について「ステップ1」と「ステップ3~4」を繰り返します。最後に要約します:
「N件の取引が更新されました: [会社名一覧]」
<!-- carta:plugin-version --> <carta-plugin>carta-crm:1.15.0</carta-plugin>
Partially update an existing deal. Only fields provided are modified — this is a partial update, not a replacement. First resolve the deal ID, collect what to change, then call the update tool.
If the user provided a deal ID directly, use it and skip to Step 3.
If only a company name was given, call get_deal_fields first, then search:
crm_call_tool({ "name": "crm:get_deal_fields", "arguments": {} })
crm_call_tool({ "name": "crm:search_deals", "arguments": { query: "<company name>", limit: 10 } })
If multiple deals match, present the list and ask the user to confirm which one to update (show company name, stage, and ID for each).
Ask the user what they want to change:
| Field | Description |
|---|---|
stageId |
Move deal to a different stage |
company.name |
Update the associated company name |
company.url |
Update company URL — triggers auto-enrichment |
comment |
Replace the deal comment/notes |
tags |
Replace the full tags array |
dealLead |
User ID to assign as deal lead |
addedAt |
ISO 8601 date the deal was added |
fields |
Custom field values keyed by field ID |
people.advisers |
Contact IDs linked as advisers |
people.introducer |
Contact IDs linked as introducers |
people.management |
Contact IDs linked as management |
If the user wants to move to a stage by name, fetch pipelines first:
crm_call_tool({ "name": "crm:get_deal_pipelines_with_stages", "arguments": {} })
If updating custom fields by label rather than ID:
crm_call_tool({ "name": "crm:get_deal_custom_fields", "arguments": {} })
Important: Only include fields that are explicitly being changed. Omit everything else.
Call:
crm_call_tool({
"name": "crm:update_deal",
"arguments": {
id: "<deal id>",
stageId: "<stage id>",
company: { name: "<name>", url: "<url>" },
comment: "<updated comment>",
tags: ["<tag1>", "<tag2>"],
dealLead: "<user id>",
addedAt: "<ISO 8601 date>",
fields: { "<field_id>": "<value>" },
people: {
advisers: ["<contact id>"],
introducer: ["<contact id>"],
management: ["<contact id>"]
}
}
})
Omit any top-level key that is not being updated.
On success, respond with a summary of what changed:
"Deal for {company name} updated (ID:
{id}). Changed: [list of changed fields]"
On error, show the error message and suggest:
/search-deals to find itget_deal_pipelines_with_stagesIf the user wants to apply the same change to multiple deals, repeat Steps 1 and 3–4 for each. Summarize at the end:
"Updated N deals: [list of company names]"
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。