Carta CRM内の既存の企業レコードを更新します。 **次のような場合に使用:** - ユーザーが「企業を更新してほしい」「企業情報を編集してほしい」「企業の詳細を変更してほしい」「企業名を変更してほしい」「企業ウェブサイトを更新してほしい」「企業のフィールドを更新してほしい」「企業にタグを追加してほしい」と言った場合 - ユーザーが「/update-company」コマンドを使用した場合 **機能:** 企業IDまたは企業名を指定できます。IDが提供されない場合は、名前から検索します。明確に指定されたフィールドのみが変更され、他のフィールドは変わりません。
Updates an existing company record in the Carta CRM. Use this skill when the user says things like "update a company", "edit company", "update company details", "change company name", "update company website", "update company fields", "add a tag to company", or "/update-company". Accepts a company ID or name (will search if no ID provided). Only the fields explicitly provided are changed — all other fields are left untouched.
既存の企業情報を部分的に更新します。指定されたフィールドのみが変更され、全体の置き換えではありません。まず企業IDを確認してから、変更内容を集約し、更新ツールを実行します。
ユーザーが企業IDを直接提供した場合は、それを使用してステップ3にスキップします。
ドメイン(企業のウェブサイトアドレス)が提供された場合は、まず検索します:
crm_call_tool({ "name": "crm:fetch_company_by_domain", "arguments": { domain: "<domain>" } })
企業名またはキーワードが提供された場合は、検索します:
crm_call_tool({ "name": "crm:search_companies", "arguments": { query: "<name>", limit: 10 } })
複数の企業がマッチした場合は、リストを表示して、ユーザーに更新対象を確認します(各企業の名前とIDを表示)。
ユーザーに変更したい項目を確認します:
ユーザーがカスタムフィールドを変更したいが、フィールドIDが不明な場合は、まずスキーマを取得します:
crm_call_tool({ "name": "crm:get_company_custom_fields", "arguments": {} })
ユーザーがメッセージで既に変更内容を指定している場合は、再確認せずに直接抽出してください。
重要: 明示的に変更されるフィールドのみを含めます。その他はすべて省略します。
以下を実行します:
crm_call_tool({
"name": "crm:update_company",
"arguments": {
id: "<company id>",
name: "<updated name>",
image: "<logo url>",
fields: {
"<field_id>": "<value>"
}
}
})
更新されないトップレベルのキーはすべて省略します。
成功時は、変更内容を要約して表示します:
「企業 {name} を更新しました(ID:
{id})。変更項目: [変更されたフィールドのリスト]」
エラー時はエラーメッセージを表示し、以下を提案します:
/search-companies を実行して検索してくださいユーザーが同じ変更を複数の企業に適用したい場合は、各企業についてステップ1とステップ3~4を繰り返します。最後に要約を表示します:
「N社を更新しました: [企業名のリスト]」
<!-- carta:plugin-version --> <carta-plugin>carta-crm:1.15.0</carta-plugin>
Partially update an existing company. Only fields provided are modified — this is a partial update, not a replacement. First resolve the company ID, collect what to change, then call the update tool.
If the user provided a company ID directly, use it and skip to Step 3.
If a domain was given, look it up first:
crm_call_tool({ "name": "crm:fetch_company_by_domain", "arguments": { domain: "<domain>" } })
If a name or keyword was given, search first:
crm_call_tool({ "name": "crm:search_companies", "arguments": { query: "<name>", limit: 10 } })
If multiple companies match, present the list and ask the user to confirm which one to update (show name and ID for each).
Ask the user what they want to change:
If the user wants to update custom fields but isn't sure of field IDs, fetch the schema first:
crm_call_tool({ "name": "crm:get_company_custom_fields", "arguments": {} })
If the user has already specified what to change in their message, extract it directly without re-asking.
Important: Only include fields that are explicitly being changed. Omit everything else.
Call:
crm_call_tool({
"name": "crm:update_company",
"arguments": {
id: "<company id>",
name: "<updated name>",
image: "<logo url>",
fields: {
"<field_id>": "<value>"
}
}
})
Omit any top-level key that is not being updated.
On success, respond with a summary of what changed:
"Company {name} updated (ID:
{id}). Changed: [list of changed fields]"
On error, show the error message and suggest:
/search-companies to find itIf the user wants to apply the same change to multiple companies, repeat Steps 1 and 3–4 for each. Summarize at the end:
"Updated N companies: [list of names]"
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。