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.
<!-- carta:plugin-version --> <carta-plugin>carta-crm:1.14.2</carta-plugin>
既存の企業情報を部分的に更新します。指定されたフィールド(項目)のみが修正され、全体の置き換えではありません。まず企業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.14.5</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 による自動翻訳です。