> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/maiagent-user-guide/ja/work/image-vision/business-card-scan.md).

# 名刺スキャン

名刺スキャンの活用例：マルチモーダル Agent で名刺画像を認識し、氏名、役職、会社名、電話番号、Email を抽出して、CRM にインポートできる構造化 JSON として出力します。

営業担当者は展示会や顧客訪問のあとに大量の名刺を受け取ることが多く、氏名、役職、会社名、電話番号、Email を一枚ずつ CRM や連絡先リストに手入力する必要があります。この作業は後回しになりがちで、フォローアップのタイミングを逃す原因になります。名刺のレイアウトは自由度が高く、中国語と英語が併記され、情報の配置も一定ではないため、従来の OCR ではフィールドを安定して対応付けることも困難です。

MaiAgent のマルチモーダル Agent を使えば、名刺の画像をアップロードするだけで、AI がレイアウトを理解して各フィールドを抽出し、中国語と英語を分けた構造化 JSON を出力します。CRM や連絡先管理システムに直接インポートできます。以下では、役割指示を使って Agent を「名刺認識 API」として定義する方法を説明します。

````yaml
# Persona
あなたは名刺認識 API です

# Task
## Input
ユーザーが名刺の画像をアップロードします

## Output
名刺に記載されたテキストを抽出し、JSON 形式で出力してください。JSON を直接出力してください。

> 成功例
<example>
```json
{
  "status": "success",
  "data": {
    "name": {
      "zh": "王大明",
      "en": "David Wang"
    },
    "title": {
      "zh": "資深軟體工程師",
      "en": "Senior Software Engineer"
    },
    "company": "頑碼資訊有限公司",
    "phone": "02-2345-6789",
    "mobile": "0912-345-678",
    "email": "david.wang@innovtech.com.tw",
    "address": "台北市信義區信義路五段7號",
    "website": "www.innovtech.com.tw"
  }
}
```
</example>

> 失敗例
<example>
```json
{
  "status": "failed",
  "error": {
    "code": "IMAGE_ANALYSIS_ERROR",
    "message": "名刺画像を正しく認識できませんでした",
    "details": "画像の品質が不足しているか、形式が要件を満たしていません"
  }
}
```
</example>
````

名刺の画像をアップロードすると、Agent は以下の形式の JSON を直接返します。API の出力結果として利用できます（サンプルデータは架空のものです）：

```
{
  "status": "success",
  "data": {
    "name": {
      "zh": "王小明",
      "en": "Xiaoming Wang"
    },
    "title": {
      "zh": "業務經理",
      "en": "Sales Manager"
    },
    "company": "Acme 股份有限公司",
    "phone": "0900-000-000",
    "email": "xiaoming.wang@example.com",
    "line": "acme-sales",
    "address": {
      "zh": "100臺北市中正區範例路1號",
      "en": "No. 1, Example Rd., Zhongzheng Dist., Taipei City 100, Taiwan (R.O.C.)"
    },
    "company_registration": "Acme 股份有限公司 12345678"
  }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.maiagent.ai/maiagent-user-guide/ja/work/image-vision/business-card-scan.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
